Scaling Elasticsearch Capacity on Virtual Appliance
Change the Elasticsearch replica count in a standard Virtual Appliance deployment.
The Virtual Appliance supports Elasticsearch capacity scale up or scale down to optimize system performance. Capacity scale up increases the replica count in your Virtual Appliance. During scaling, Elastic Cloud on Kubernetes (ECK) can redistribute existing shards across the resulting replicas.
Scaling Virtual Appliance can handle higher workloads and reduces performance bottlenecks. Scale the Elasticsearch capacity only after adding worker node to the cluster.
Prerequisites
Complete the following checks before scaling the Elasticsearch capacity:
-
Run the commands as the
appduseruser from a Virtual Appliance node that has access toappdcli, Kubernetes, and the deployment configuration. -
Verify whether the target node has joined the cluster, reports
Ready, and remains schedulable. -
Complete any cluster changes or upgrade.
-
Ensure there are no workloads running on the target node.
- Confirm green ECK health and confirm that no earlier scale operation continues shard relocation or recovery.
- Confirm that the storage class can provision an additional persistent volume for each replica.
-
Verify that you can decrypt the Helm secrets.CODE
helm secrets decrypt /var/appd/config/secrets.yaml.encrypted >/dev/null
Scale Up the Elasticsearch Capacity
- Elasticsearch cluster is healthy.
- No shard relocation or recovery are in progress.
-
There is enough space and CPU available on the target node.
-
The elastic operator and Elasticsearch cluster are healthy
Scale Down the Elasticsearch Capacity
Confirm the following requirements:
- Elasticsearch cluster is healthy.
- No shard relocation or recovery are in progress.
- Back up the or snapshot the node data.
- Capacity reduction is safe for the existing data volume.
- Elasticsearch pod count matches the target replica count.
- Removed pod no longer exists in cluster.
- Stale PVCs with ordinals greater than or equal to target replica count undergo removal.
- Released stale persistent volumes for the removed PVCs.