If an Elasticsearch cluster struggles to maintain performance in the face of rapid data growth or sustained high memory usage, you may scale it horizontally by adding more nodes and more node types, or do so vertically by increasing the storage capacity of existing nodes.
Type | Scenario | Change Process |
|---|---|---|
Adding new nodes | If a cluster experiences rapid data growth or sustained high memory usage, you may add more nodes to it to improve cluster availability. | Procedure for adding data nodes or cold data nodes:
Adding master or client nodes does not trigger data migration. During the capacity expansion, the system ensures that each shard has at least one available replica to ensure service continuity. |
Adding master nodes | As your cluster's data volume grows, you can improve its stability and reliability by adding dedicated master nodes for more effective cluster node management. | Procedure for adding a new node type: Add new nodes and modify cluster configuration. Adding master nodes does not trigger data migration, and therefore does not interrupt services. |
Adding client nodes | To handle increased query and write loads as your cluster's data volume grows, you can add dedicated client nodes. This offloads request processing from your data nodes, improving overall cluster scalability. | Procedure for adding a new node type: Add new nodes and modify cluster configuration. Adding client nodes does not trigger data migration, and therefore does not interrupt services. However, when client nodes are added, the cluster's address changes from the data node address to the client node address. You must update the client configuration to use this new address. Otherwise, the client nodes cannot function. |
Adding cold data nodes | As your cluster's data volume keeps growing, you may have large quantities of historical data that is infrequently accessed but still useful for analytical purposes. To optimize both storage costs and query performance, you can add cold data nodes to store such data. | Procedure for adding a new node type: Add new nodes and modify cluster configuration. Adding cold data nodes does not trigger data migration, and therefore does not interrupt services. |
Increasing node storage capacity |
|
The disk capacity expansion will not interrupt ongoing services. |
For a pay-per-use cluster, you can see its new price when confirming the scale-out or scale-up on the console. After the change is complete, the cluster will be billed based on the new price.
Node Type | Value Range |
|---|---|
Data nodes |
|
Master nodes | 3, 5, 7, or 9 (must be an odd number from 3 to 9) |
Client nodes | 1~64 |
Cold data nodes | 1–32 |
Before the change, learn about possible impacts and operation suggestions, and develop a plan to minimize these impacts.
Expanding the storage capacity of cluster nodes (vertical scaling) does not impact services, whereas adding new nodes or new node types (horizontal scaling) may have the following impacts:
Adding new nodes does not interrupt services. However, after new nodes are added, data shards need to be redistributed to these nodes to balance the load, and this process will consume I/O performance. This is why you are advised to perform the operation during off-peak hours.
To minimize this impact, it is advisable to adjust the data migration rate based on the cluster's traffic cycle: increase the data migration rate during off-peak hours to shorten the task duration, and decrease it before peak hours arrive to ensure optimal cluster performance. The data migration rate is determined by the indices.recovery.max_bytes_per_sec parameter. The default value of this parameter is the number of vCPUs multiplied by 8 MB. For example, for four vCPUs, the data migration rate is 32 MB/s. You can adjust it based on the service requirements.
Once started, a scaling task cannot be stopped until it succeeds or fails.
If a cluster experiences rapid data growth or sustained high memory usage, you may add more nodes to it or increase the cluster nodes' storage capacity. This helps to improve service and data availability and durability.
Parameter | Description |
|---|---|
Action | Select Scale out. |
Resources | Quantities of resources added. |
Nodes | Increase the number of nodes and node storage capacity in the Nodes and Node Storage Type columns. You can change multiple node types at the same time.
|
For a cluster that has no dedicated master, client, or cold data nodes, as the load on its data plane increases, you may dynamically add such nodes to it to share the load of the data nodes.
If a cluster already has dedicated master, client, and cold data nodes, the Add Node Types tab is unavailable.
Parameter | Description |
|---|---|
Node types | Select the type of nodes you want to add.
|
Node Specifications | Select node specifications based on site requirements. |
Nodes | Set the number of nodes to add. For the value range, see Constraints. |
Node Storage Type | Set the node storage type. The storage capacity per master or client node is fixed to 40 GB. |
Return to the cluster list page. The Task Status of the cluster is Scaling out. When Cluster Status changes to Available, nodes have been added successfully.
For details about the restart operation, see Restarting a Cluster.