Updated on 2024-09-14 GMT+08:00

Restarting an Elasticsearch Cluster

If a cluster becomes faulty, you can restart it to try to restore it.

Scenario

There are two restart options for a cluster: quick restart and rolling restart. For details, see Table 1. You are advised to perform restart during off-peak hours.

Table 1 Restart options

Restart Option

Description

Details

Quick Restart

  • All clusters support the Quick Restart option.
  • If you select a node type for quick restart, all nodes of the selected type will be restarted together.
  • If you select a node name for quick restart, only the specified node will be restarted.
  • The cluster is unavailable during quick restart.

Quick Restart

Rolling Restart

  • Rolling restart is supported only when a cluster has at least three nodes (including master nodes, client nodes, and cold data nodes).
  • Rolling restart can be performed only by specifying node types. If you select a node type for rolling restart, the nodes of the selected type will be restarted in sequence.
  • During the rolling restart, only the nodes that are being restarted are unavailable and other nodes can run normally.
  • When the data volume is large, rolling restart will take a long time.

Rolling Restart

Prerequisites

  • The target cluster is not frozen and has no task in progress.
  • If a cluster is available, ensure that it has stopped processing service requests (such as importing data and searching for data). Otherwise, data may be lost when the cluster is restarted.

Quick Restart

  1. Log in to the CSS management console.
  2. In the navigation tree on the left, select a cluster type. The cluster management list page is displayed.
  3. In the Operation column of the target cluster, choose More > Restart.
  4. On the Restart Cluster page, select Quick Restart.

    You can quick restart nodes by Node type or Node name. If you select Node type, then you can select multiple node types and perform quick restart at the time. If you select Node name, you can perform quick restart only on one node at a time.

  5. Refresh the page and check the cluster status. During the restart, the cluster status is Processing, and the task status is Restarting. If the cluster status changes to Available, the cluster has been restarted successfully.

Rolling Restart

  1. Log in to the CSS management console.
  2. In the navigation tree on the left, select a cluster type. The cluster management list page is displayed.
  3. In the Operation column of the target cluster, choose More > Restart.
  4. On the Restart Cluster page, select Rolling Restart.

    You can perform rolling restart by Node type. Select specific node types for restart.

  5. Refresh the page and check the cluster status. During the restart, the cluster status is Processing, and the task status is Restarting. If the cluster status changes to Available, the cluster has been restarted successfully.