#[non_exhaustive]pub struct ProvisioningModelMix {
pub standard_capacity_base: Option<i32>,
pub standard_capacity_percent_above_base: Option<i32>,
/* private fields */
}Expand description
Defines how Dataproc should create VMs with a mixture of provisioning models.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.standard_capacity_base: Option<i32>Optional. The base capacity that will always use Standard VMs to avoid risk of more preemption than the minimum capacity you need. Dataproc will create only standard VMs until it reaches standard_capacity_base, then it will start using standard_capacity_percent_above_base to mix Spot with Standard VMs. eg. If 15 instances are requested and standard_capacity_base is 5, Dataproc will create 5 standard VMs and then start mixing spot and standard VMs for remaining 10 instances.
standard_capacity_percent_above_base: Option<i32>Optional. The percentage of target capacity that should use Standard VM. The remaining percentage will use Spot VMs. The percentage applies only to the capacity above standard_capacity_base. eg. If 15 instances are requested and standard_capacity_base is 5 and standard_capacity_percent_above_base is 30, Dataproc will create 5 standard VMs and then start mixing spot and standard VMs for remaining 10 instances. The mix will be 30% standard and 70% spot.
Implementations§
Source§impl ProvisioningModelMix
impl ProvisioningModelMix
pub fn new() -> Self
Sourcepub fn set_standard_capacity_base<T>(self, v: T) -> Self
pub fn set_standard_capacity_base<T>(self, v: T) -> Self
Sets the value of standard_capacity_base.
Sourcepub fn set_or_clear_standard_capacity_base<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_standard_capacity_base<T>(self, v: Option<T>) -> Self
Sets or clears the value of standard_capacity_base.
Sourcepub fn set_standard_capacity_percent_above_base<T>(self, v: T) -> Self
pub fn set_standard_capacity_percent_above_base<T>(self, v: T) -> Self
Sets the value of standard_capacity_percent_above_base.
Sourcepub fn set_or_clear_standard_capacity_percent_above_base<T>(
self,
v: Option<T>,
) -> Self
pub fn set_or_clear_standard_capacity_percent_above_base<T>( self, v: Option<T>, ) -> Self
Sets or clears the value of standard_capacity_percent_above_base.
Trait Implementations§
Source§impl Clone for ProvisioningModelMix
impl Clone for ProvisioningModelMix
Source§fn clone(&self) -> ProvisioningModelMix
fn clone(&self) -> ProvisioningModelMix
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more