Interface InstanceFlexibilityPolicy.ProvisioningModelMixOrBuilder (4.52.0)

public static interface InstanceFlexibilityPolicy.ProvisioningModelMixOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getStandardCapacityBase()

public abstract int getStandardCapacityBase()

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.

optional int32 standard_capacity_base = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The standardCapacityBase.

getStandardCapacityPercentAboveBase()

public abstract int getStandardCapacityPercentAboveBase()

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.

optional int32 standard_capacity_percent_above_base = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The standardCapacityPercentAboveBase.

hasStandardCapacityBase()

public abstract boolean hasStandardCapacityBase()

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.

optional int32 standard_capacity_base = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the standardCapacityBase field is set.

hasStandardCapacityPercentAboveBase()

public abstract boolean hasStandardCapacityPercentAboveBase()

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.

optional int32 standard_capacity_percent_above_base = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the standardCapacityPercentAboveBase field is set.