/
Shard allocation status

Shard allocation status

It is recommended to disable shard allocation during a rolling reboot of an Elasticsearch cluster. See here: Rolling Restart of Elasticsearch

If you want to check shard allocation status in your Elasticsearch cluster during such times, you can use the following procedure.

 Check shard allocation

  1. Install jq for ease of parsing json output.

  2. Collect the IP address of an Elasticsearch node. Importantly, this must be an interface that is listening for port 9200 requests. Not all interfaces on an Elasticsearch node may be listening on that port.

  3. Run this command:

    curl -s "<ES IP>:9200/_cluster/settings?pretty" | jq '.persistent.cluster.routing.allocation.enable'
  4. If the response is primaries then allocation is disabled, if it's null then it's enabled.

 Related articles

Related content

Using the elasticsearch api to split large shards
Using the elasticsearch api to split large shards
Read with this
Monitoring Elasticsearch
Monitoring Elasticsearch
More like this
Renaming and merging elasticsearch clusters
Renaming and merging elasticsearch clusters
Read with this
Rolling Restart of Elasticsearch
Rolling Restart of Elasticsearch
More like this
Veeam Backup and Replication Direct to S3 mode Design
Veeam Backup and Replication Direct to S3 mode Design
Read with this
Troubleshooting Gateway and Elasticsearch
Troubleshooting Gateway and Elasticsearch
More like this

© DataCore Software Corporation. · https://www.datacore.com · All rights reserved.