Scaling In an Elasticsearch Cluster

If a cluster can process current traffic without fully utilizing its resources, you can scale in the cluster to cut costs.

Scenario

CSS supports multiple scale-in methods, as described in Table 1.

Table 1 Scaling in an Elasticsearch cluster

Scenario

Description

Details

Reducing nodes randomly

Randomly removes some of the nodes of a cluster, so that it is less costly to keep it running.

Reducing Nodes Randomly

Removing specified nodes

Removes specified nodes of a cluster, so that it is less costly to keep it running.

Removing Specified Nodes

Constraints

Prerequisites

Reducing Nodes Randomly

  1. Log in to the CSS management console.
  2. In the navigation pane, choose a cluster type. The cluster management page is displayed.
  3. In the cluster list, select the target cluster, and choose More > Modify Configuration in the Operation column. The Modify Configuration page is displayed.
  4. Click the Scale Cluster tab.
  5. Click Scale in to set parameters.
    Table 3 Reducing nodes randomly

    Parameter

    Description

    Action

    Select Scale in.

    Resources

    Shows the change of resources for this scale-in operation.

    Nodes

    Reduce the number of nodes in the Nodes column. You can change multiple node types at the same time.

    For the value range of node quantity for each node type, see Table 2.

  6. Click Next.
  7. Confirm the information and click Submit.
  8. Click Back to Cluster List to switch to the Clusters page. The Task Status is Scaling in. When Cluster Status changes to Available, the cluster has been successfully scaled in.

Removing Specified Nodes

  1. Log in to the CSS management console.
  2. In the navigation pane, choose a cluster type. The cluster management page is displayed.
  3. In the cluster list, select the target cluster, and choose More > Modify Configuration in the Operation column. The Modify Configuration page is displayed.
  4. On the Modify Configuration page, click the Scale In tab.
  5. Set scale-in parameters.
    Table 4 Removing specified nodes

    Parameter

    Description

    Node Type

    Expand the node type that needs be changed to show all nodes under it. Select the nodes you want to remove.

  6. Click Next.
  7. Confirm the change information and click Submit. In the confirm dialog box, choose to migrate data, which helps to prevent data loss, and click OK.

    During data migration, the system migrates all data from the to-be-removed nodes to the remaining nodes, and removes these nodes upon completion of the data migration. If the data on the to-be-removed nodes has replicas on other nodes, data migration can be skipped and the cluster change can be completed faster.

  8. Click Back to Cluster List to switch to the Clusters page. The Task Status is Scaling in. When Cluster Status changes to Available, the cluster has been successfully scaled in.