Enum InstancePricingPreference
- All Implemented Interfaces:
Serializable, Comparable<InstancePricingPreference>, java.lang.constant.Constable
The preferred
InstancePricing when running a TaskGroup.
This affects upscaling and claiming.
ON_DEMAND_ONLY and SPOT_ONLY are restrictive. They prevent using compute that is not On-Demand and
Spot respectively. These restrictions apply differently in upscaling and claiming. When upscaling, the restriction
applies to the WorkerPool as a whole — a pool mixing Spot and On-Demand sources is not eligible. When
claiming, the restriction applies per Worker — a worker in a mixed pool is still eligible if it individually
satisfies the pricing requirement.
ON_DEMAND_THEN_SPOT and SPOT_THEN_ON_DEMAND alter the priority of WorkerPools when
upscaling, and of Workers when claiming.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWhen upscaling, onlyWorkerPools that exclusively provision On-Demand compute.When upscaling, orderWorkerPools by those that: Only create On-Demand compute Create On-Demand and Spot compute Only create Spot computeWhen upscaling, onlyWorkerPools that exclusively provision Spot compute.When upscaling, orderWorkerPools by those that: Only create Spot compute Create On-Demand and Spot compute Only create On-Demand compute -
Method Summary
Modifier and TypeMethodDescriptionstatic InstancePricingPreferenceReturns the enum constant of this type with the specified name.static InstancePricingPreference[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ON_DEMAND_ONLY
When upscaling, onlyWorkerPools that exclusively provision On-Demand compute. When claiming, only useWorkers running on On-Demand compute. -
SPOT_ONLY
When upscaling, onlyWorkerPools that exclusively provision Spot compute. When claiming, only useWorkers running on Spot compute. -
ON_DEMAND_THEN_SPOT
When upscaling, orderWorkerPools by those that:- Only create On-Demand compute
- Create On-Demand and Spot compute
- Only create Spot compute
When claiming, order
Workers by those running on:- On-Demand compute
- Spot compute
- Configured compute
-
SPOT_THEN_ON_DEMAND
When upscaling, orderWorkerPools by those that:- Only create Spot compute
- Create On-Demand and Spot compute
- Only create On-Demand compute
When claiming, order
Workers by those running on:- Spot compute
- On-Demand compute
- Configured compute
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-