Graceful Scale-In

Last updated: 2021-07-05 10:03:56

    Overview

    After Graceful Scale-In is enabled, if the scale-in action is triggered when a node is executing tasks, the node will not be released immediately. Instead, it will be released after completing the tasks. Graceful Scale-In is available for both automatic scaling and manual scale-in.

    Directions

    Automatic scaling

    Auto Scaling allows you to enable or disable Graceful Scale-In for all scale-in rules. This feature is called Global Graceful Scale-In and is disabled by default. When you add or edit a single scale-in rule, Graceful Scale-In is enabled by default, and the default duration is 60 seconds (valid range: 60-1800 seconds).

    Note:

    When Global Graceful Scale-In and a single rule are enabled, Graceful Scale-In takes effect for the rule.

    1. Log in to the EMR console, click the ID/name of the target cluster to go to the cluster details page, and click Auto Scaling.
    2. In the Scaling Rule Management section on the Auto Scaling page, click Add Rule and add a scale-in rule.

    Manual scale-in

    When you try to manually remove a node, Graceful Scale-In is disabled by default. When you enable this feature, the default duration is 60 seconds (valid range: 60-1800 seconds).

    1. Click the ID/name of the target cluster to go to the cluster details page and click Cluster Resource > Resource Management.
    2. Select the node to remove and click Terminate. In this case, Graceful Scale-In is disabled by default. You can enable it and set a duration.
    3. After finishing your settings, click Next, confirm the node information, and click Start Termination.