managed_scaling_policies
Creates, updates, deletes, gets or lists a managed_scaling_policies resource.
Overview
| Name | managed_scaling_policies |
| Type | Resource |
| Id | aws.emr.managed_scaling_policies |
Fields
The following fields are returned by SELECT queries:
- get_managed_scaling_policy
| Name | Datatype | Description |
|---|---|---|
compute_limits | object | The Amazon EC2 unit limits for a managed scaling policy. The managed scaling activity of a cluster is not allowed to go above or below these limits. The limit only applies to the core and task nodes. The master node cannot be scaled after initial configuration. |
scaling_strategy | string | Determines whether a custom scaling utilization performance index can be set. Possible values include ADVANCED or DEFAULT. (DEFAULT, ADVANCED) |
utilization_performance_index | integer | An integer value that represents an advanced scaling strategy. Setting a higher value optimizes for performance. Setting a lower value optimizes for resource conservation. Setting the value to 50 balances performance and resource conservation. Possible values are 1, 25, 50, 75, and 100. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_managed_scaling_policy | select | region | Fetches the attached managed scaling policy for an Amazon EMR cluster. | |
remove_managed_scaling_policy | update | region, ClusterId | Removes a managed scaling policy from a specified Amazon EMR cluster. | |
put_managed_scaling_policy | replace | region, ClusterId, ManagedScalingPolicy | Creates or updates a managed scaling policy for an Amazon EMR cluster. The managed scaling policy defines the limits for resources, such as Amazon EC2 instances that can be added or terminated from a cluster. The policy only applies to the core and task nodes. The master node cannot be scaled after initial configuration. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_managed_scaling_policy
Fetches the attached managed scaling policy for an Amazon EMR cluster.
SELECT
compute_limits,
scaling_strategy,
utilization_performance_index
FROM aws.emr.managed_scaling_policies
WHERE region = '{{ region }}' -- required
;
UPDATE examples
- remove_managed_scaling_policy
Removes a managed scaling policy from a specified Amazon EMR cluster.
UPDATE aws.emr.managed_scaling_policies
SET
ClusterId = '{{ ClusterId }}'
WHERE
region = '{{ region }}' --required
AND ClusterId = '{{ ClusterId }}' --required;
REPLACE examples
- put_managed_scaling_policy
Creates or updates a managed scaling policy for an Amazon EMR cluster. The managed scaling policy defines the limits for resources, such as Amazon EC2 instances that can be added or terminated from a cluster. The policy only applies to the core and task nodes. The master node cannot be scaled after initial configuration.
REPLACE aws.emr.managed_scaling_policies
SET
ClusterId = '{{ ClusterId }}',
ManagedScalingPolicy = '{{ ManagedScalingPolicy }}'
WHERE
region = '{{ region }}' --required
AND ClusterId = '{{ ClusterId }}' --required
AND ManagedScalingPolicy = '{{ ManagedScalingPolicy }}' --required;