@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FairsharePolicy extends Object implements Serializable, Cloneable, StructuredPojo
The fair share policy for a scheduling policy.
Constructor and Description |
---|
FairsharePolicy() |
Modifier and Type | Method and Description |
---|---|
FairsharePolicy |
clone() |
boolean |
equals(Object obj) |
Integer |
getComputeReservation()
A value used to reserve some of the available maximum vCPU for fair share identifiers that have not yet been
used.
|
Integer |
getShareDecaySeconds()
The time period to use to calculate a fair share percentage for each fair share identifier in use, in seconds.
|
List<ShareAttributes> |
getShareDistribution()
An array of
SharedIdentifier objects that contain the weights for the fair share identifiers for the
fair share policy. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setComputeReservation(Integer computeReservation)
A value used to reserve some of the available maximum vCPU for fair share identifiers that have not yet been
used.
|
void |
setShareDecaySeconds(Integer shareDecaySeconds)
The time period to use to calculate a fair share percentage for each fair share identifier in use, in seconds.
|
void |
setShareDistribution(Collection<ShareAttributes> shareDistribution)
An array of
SharedIdentifier objects that contain the weights for the fair share identifiers for the
fair share policy. |
String |
toString()
Returns a string representation of this object.
|
FairsharePolicy |
withComputeReservation(Integer computeReservation)
A value used to reserve some of the available maximum vCPU for fair share identifiers that have not yet been
used.
|
FairsharePolicy |
withShareDecaySeconds(Integer shareDecaySeconds)
The time period to use to calculate a fair share percentage for each fair share identifier in use, in seconds.
|
FairsharePolicy |
withShareDistribution(Collection<ShareAttributes> shareDistribution)
An array of
SharedIdentifier objects that contain the weights for the fair share identifiers for the
fair share policy. |
FairsharePolicy |
withShareDistribution(ShareAttributes... shareDistribution)
An array of
SharedIdentifier objects that contain the weights for the fair share identifiers for the
fair share policy. |
public void setShareDecaySeconds(Integer shareDecaySeconds)
The time period to use to calculate a fair share percentage for each fair share identifier in use, in seconds. A value of zero (0) indicates that only current usage should be measured. The decay allows for more recently run jobs to have more weight than jobs that ran earlier. The maximum supported value is 604800 (1 week).
shareDecaySeconds
- The time period to use to calculate a fair share percentage for each fair share identifier in use, in
seconds. A value of zero (0) indicates that only current usage should be measured. The decay allows for
more recently run jobs to have more weight than jobs that ran earlier. The maximum supported value is
604800 (1 week).public Integer getShareDecaySeconds()
The time period to use to calculate a fair share percentage for each fair share identifier in use, in seconds. A value of zero (0) indicates that only current usage should be measured. The decay allows for more recently run jobs to have more weight than jobs that ran earlier. The maximum supported value is 604800 (1 week).
public FairsharePolicy withShareDecaySeconds(Integer shareDecaySeconds)
The time period to use to calculate a fair share percentage for each fair share identifier in use, in seconds. A value of zero (0) indicates that only current usage should be measured. The decay allows for more recently run jobs to have more weight than jobs that ran earlier. The maximum supported value is 604800 (1 week).
shareDecaySeconds
- The time period to use to calculate a fair share percentage for each fair share identifier in use, in
seconds. A value of zero (0) indicates that only current usage should be measured. The decay allows for
more recently run jobs to have more weight than jobs that ran earlier. The maximum supported value is
604800 (1 week).public void setComputeReservation(Integer computeReservation)
A value used to reserve some of the available maximum vCPU for fair share identifiers that have not yet been used.
The reserved ratio is (computeReservation/100)^ActiveFairShares
where
ActiveFairShares
is the number of active fair share identifiers.
For example, a computeReservation
value of 50 indicates that Batch should reserve 50% of the maximum
available vCPU if there is only one fair share identifier, 25% if there are two fair share identifiers, and 12.5%
if there are three fair share identifiers. A computeReservation
value of 25 indicates that Batch
should reserve 25% of the maximum available vCPU if there is 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.
computeReservation
- A value used to reserve some of the available maximum vCPU for fair share identifiers that have not yet
been used.
The reserved ratio is (computeReservation/100)^ActiveFairShares
where
ActiveFairShares
is the number of active fair share identifiers.
For example, a computeReservation
value of 50 indicates that Batch should reserve 50% of the
maximum available vCPU if there is only one fair share identifier, 25% if there are two fair share
identifiers, and 12.5% if there are three fair share identifiers. A computeReservation
value
of 25 indicates that Batch should reserve 25% of the maximum available vCPU if there is 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.
public Integer getComputeReservation()
A value used to reserve some of the available maximum vCPU for fair share identifiers that have not yet been used.
The reserved ratio is (computeReservation/100)^ActiveFairShares
where
ActiveFairShares
is the number of active fair share identifiers.
For example, a computeReservation
value of 50 indicates that Batch should reserve 50% of the maximum
available vCPU if there is only one fair share identifier, 25% if there are two fair share identifiers, and 12.5%
if there are three fair share identifiers. A computeReservation
value of 25 indicates that Batch
should reserve 25% of the maximum available vCPU if there is 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.
The reserved ratio is (computeReservation/100)^ActiveFairShares
where
ActiveFairShares
is the number of active fair share identifiers.
For example, a computeReservation
value of 50 indicates that Batch should reserve 50% of the
maximum available vCPU if there is only one fair share identifier, 25% if there are two fair share
identifiers, and 12.5% if there are three fair share identifiers. A computeReservation
value
of 25 indicates that Batch should reserve 25% of the maximum available vCPU if there is 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.
public FairsharePolicy withComputeReservation(Integer computeReservation)
A value used to reserve some of the available maximum vCPU for fair share identifiers that have not yet been used.
The reserved ratio is (computeReservation/100)^ActiveFairShares
where
ActiveFairShares
is the number of active fair share identifiers.
For example, a computeReservation
value of 50 indicates that Batch should reserve 50% of the maximum
available vCPU if there is only one fair share identifier, 25% if there are two fair share identifiers, and 12.5%
if there are three fair share identifiers. A computeReservation
value of 25 indicates that Batch
should reserve 25% of the maximum available vCPU if there is 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.
computeReservation
- A value used to reserve some of the available maximum vCPU for fair share identifiers that have not yet
been used.
The reserved ratio is (computeReservation/100)^ActiveFairShares
where
ActiveFairShares
is the number of active fair share identifiers.
For example, a computeReservation
value of 50 indicates that Batch should reserve 50% of the
maximum available vCPU if there is only one fair share identifier, 25% if there are two fair share
identifiers, and 12.5% if there are three fair share identifiers. A computeReservation
value
of 25 indicates that Batch should reserve 25% of the maximum available vCPU if there is 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.
public List<ShareAttributes> getShareDistribution()
An array of SharedIdentifier
objects that contain the weights for the fair share identifiers for the
fair share policy. Fair share identifiers that aren't included have a default weight of 1.0
.
SharedIdentifier
objects that contain the weights for the fair share identifiers
for the fair share policy. Fair share identifiers that aren't included have a default weight of
1.0
.public void setShareDistribution(Collection<ShareAttributes> shareDistribution)
An array of SharedIdentifier
objects that contain the weights for the fair share identifiers for the
fair share policy. Fair share identifiers that aren't included have a default weight of 1.0
.
shareDistribution
- An array of SharedIdentifier
objects that contain the weights for the fair share identifiers
for the fair share policy. Fair share identifiers that aren't included have a default weight of
1.0
.public FairsharePolicy withShareDistribution(ShareAttributes... shareDistribution)
An array of SharedIdentifier
objects that contain the weights for the fair share identifiers for the
fair share policy. Fair share identifiers that aren't included have a default weight of 1.0
.
NOTE: This method appends the values to the existing list (if any). Use
setShareDistribution(java.util.Collection)
or withShareDistribution(java.util.Collection)
if
you want to override the existing values.
shareDistribution
- An array of SharedIdentifier
objects that contain the weights for the fair share identifiers
for the fair share policy. Fair share identifiers that aren't included have a default weight of
1.0
.public FairsharePolicy withShareDistribution(Collection<ShareAttributes> shareDistribution)
An array of SharedIdentifier
objects that contain the weights for the fair share identifiers for the
fair share policy. Fair share identifiers that aren't included have a default weight of 1.0
.
shareDistribution
- An array of SharedIdentifier
objects that contain the weights for the fair share identifiers
for the fair share policy. Fair share identifiers that aren't included have a default weight of
1.0
.public String toString()
toString
in class Object
Object.toString()
public FairsharePolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2021. All rights reserved.