pub struct AuthoredPool {
pub cpu: CpuAmount,
pub memory: String,
pub ephemeral_storage: Option<String>,
pub architecture: Option<Architecture>,
pub nested_virtualization: Option<bool>,
pub gpu: Option<GpuSpec>,
pub data_disk: Option<DataDiskSize>,
pub machines: Option<ComputeChoice>,
pub autoscaling: Option<AuthoredAutoscaling>,
pub failure_domain_spread: Option<i64>,
}Expand description
A pool of machines: what each needs, and how many run.
Set machines for a fixed count or autoscaling for a range, not both.
Fields§
§cpu: CpuAmountCPU cores per machine: a number, or a quantity such as "500m".
memory: StringMemory per machine, for example "16Gi".
ephemeral_storage: Option<String>Size of the disk holding the operating system. "20Gi" when unset.
architecture: Option<Architecture>CPU architecture the machines must have.
nested_virtualization: Option<bool>Whether the machines must support nested virtualization.
gpu: Option<GpuSpec>GPUs each machine must have.
data_disk: Option<DataDiskSize>An extra empty data disk each machine must provide.
machines: Option<ComputeChoice>A fixed number of machines, or a range a deployment chooses from.
autoscaling: Option<AuthoredAutoscaling>Machines scale between a minimum and a maximum.
failure_domain_spread: Option<i64>How many failure domains the pool spreads across, 1 to 255.
Implementations§
Source§impl AuthoredPool
impl AuthoredPool
Sourcepub fn to_compute_pool(&self) -> Result<ComputePool>
pub fn to_compute_pool(&self) -> Result<ComputePool>
The pool, once its scale is known to be one of the two forms.
Sourcepub fn failure_domain_spread(&self) -> Result<Option<u8>>
pub fn failure_domain_spread(&self) -> Result<Option<u8>>
The failure-domain spread, validated.
Trait Implementations§
Source§impl Clone for AuthoredPool
impl Clone for AuthoredPool
Source§impl Debug for AuthoredPool
impl Debug for AuthoredPool
Source§impl<'de> Deserialize<'de> for AuthoredPool
impl<'de> Deserialize<'de> for AuthoredPool
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AuthoredPool
impl PartialEq for AuthoredPool
Source§impl Serialize for AuthoredPool
impl Serialize for AuthoredPool
impl StructuralPartialEq for AuthoredPool
Auto Trait Implementations§
impl Forget for AuthoredPool
impl Freeze for AuthoredPool
impl Move for AuthoredPool
impl RefUnwindSafe for AuthoredPool
impl Send for AuthoredPool
impl Sync for AuthoredPool
impl Unpin for AuthoredPool
impl UnsafeUnpin for AuthoredPool
impl UnwindSafe for AuthoredPool
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more