/AWS1/CL_BTCCOMPSCALINGPOLICY¶
An object that represents a scaling policy for a compute environment.
CONSTRUCTOR¶
IMPORTING¶
Optional arguments:¶
iv_minscaledowndelayminutes TYPE /AWS1/BTCINTEGER /AWS1/BTCINTEGER¶
The minimum time (in minutes) that Batch keeps instances running in the compute environment after their jobs complete. For each instance, the delay period begins when the last job finishes. If no new jobs are placed on the instance during this delay, Batch terminates the instance once the delay expires.
Valid Range: Minimum value of 20. Maximum value of 10080. Use 0 to unset and disable the scale down delay.
The scale down delay does not apply to:
Instances being replaced during infrastructure updates
Newly launched instances that have not yet run any jobs
Spot instances reclaimed due to interruption
Queryable Attributes¶
minScaleDownDelayMinutes¶
The minimum time (in minutes) that Batch keeps instances running in the compute environment after their jobs complete. For each instance, the delay period begins when the last job finishes. If no new jobs are placed on the instance during this delay, Batch terminates the instance once the delay expires.
Valid Range: Minimum value of 20. Maximum value of 10080. Use 0 to unset and disable the scale down delay.
The scale down delay does not apply to:
Instances being replaced during infrastructure updates
Newly launched instances that have not yet run any jobs
Spot instances reclaimed due to interruption
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_MINSCALEDOWNDELAYMINUTES() |
Getter for MINSCALEDOWNDELAYMINUTES, with configurable defau |
ASK_MINSCALEDOWNDELAYMINUTES() |
Getter for MINSCALEDOWNDELAYMINUTES w/ exceptions if field h |
HAS_MINSCALEDOWNDELAYMINUTES() |
Determine if MINSCALEDOWNDELAYMINUTES has a value |