Interface FairsharePolicy.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<FairsharePolicy.Builder,
,FairsharePolicy> SdkBuilder<FairsharePolicy.Builder,
,FairsharePolicy> SdkPojo
- Enclosing class:
FairsharePolicy
-
Method Summary
Modifier and TypeMethodDescriptioncomputeReservation
(Integer computeReservation) A value used to reserve some of the available maximum vCPU for fair share identifiers that aren't already used.shareDecaySeconds
(Integer shareDecaySeconds) The amount of time (in seconds) to use to calculate a fair share percentage for each fair share identifier in use.shareDistribution
(Collection<ShareAttributes> shareDistribution) An array ofSharedIdentifier
objects that contain the weights for the fair share identifiers for the fair share policy.shareDistribution
(Consumer<ShareAttributes.Builder>... shareDistribution) An array ofSharedIdentifier
objects that contain the weights for the fair share identifiers for the fair share policy.shareDistribution
(ShareAttributes... shareDistribution) An array ofSharedIdentifier
objects that contain the weights for the fair share identifiers for the fair share policy.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
computeReservation
A value used to reserve some of the available maximum vCPU for fair share identifiers that aren't already used.
The reserved ratio is
(computeReservation/100)^ActiveFairShares
whereActiveFairShares
is the number of active fair share identifiers.For example, a
computeReservation
value of 50 indicates that Batch reserves 50% of the maximum available vCPU if there's only one fair share identifier. It reserves 25% if there are two fair share identifiers. It reserves 12.5% if there are three fair share identifiers. AcomputeReservation
value of 25 indicates that Batch should reserve 25% of the maximum available vCPU if there's only one fair share identifier, 6.25% if there are two fair share identifiers, and 1.56% if there are three fair share identifiers.The minimum value is 0 and the maximum value is 99.
- Parameters:
computeReservation
- A value used to reserve some of the available maximum vCPU for fair share identifiers that aren't already used.The reserved ratio is
(computeReservation/100)^ActiveFairShares
whereActiveFairShares
is the number of active fair share identifiers.For example, a
computeReservation
value of 50 indicates that Batch reserves 50% of the maximum available vCPU if there's only one fair share identifier. It reserves 25% if there are two fair share identifiers. It reserves 12.5% if there are three fair share identifiers. AcomputeReservation
value of 25 indicates that Batch should reserve 25% of the maximum available vCPU if there's only one fair share identifier, 6.25% if there are two fair share identifiers, and 1.56% if there are three fair share identifiers.The minimum value is 0 and the maximum value is 99.
- Returns:
- Returns a reference to this object so that method calls can be chained together.