Scaling Elasticsearch replicas to provide redundant copies of data to protect against hard failure
By default, Elasticsearch indices are configured with one primary shard and one replica at index creation. This configuration can tolerate a failure of at most one host while Elasticsearch migrates shards to rebalance the cluster. You can scale up the default Elasticsearch replicas to increase redundant copies of your data.
Before you begin
- Increasing the replicas also increase the disk usage. For more information about preventing full disk or high watermark issues, see Configuring Elasticsearch disk usage.
- The procedure modifies the index at index creation. The changes will apply to indices created the day after the changes are made as the indices for the current day is created.
- The maximum replicas that can be configured is N-1, where N is the number of hosts in the resource group the Elasticsearch data service is configured to use.