Configuring Elasticsearch disk usage
You can configure Elasticsearch to control disk-based allocation for Elasticsearch to consider available disk space on a node before you determine whether to allocate new shards to that node or to actively relocate shards away from that node.
By default, the cluster.routing.allocation.disk.threshold_enabled
configuration is set to true to enable shard allocation based on disk usage and
the cluster.routing.allocation.disk.watermark.low watermark is set to 85
percent that controls the low watermark for disk usage. Preventing Elasticsearch from allocating new
shards to a host, when disk usage on the host exceeds 85 percent. For more information on these
parameters, see the Elastic documentation: Disk-based shard allocation settings.
Follow these steps to modify Elasticsearch disk-based allocation:
| Option | Steps |
|---|---|
| Modify settings in the configuration file to manage shard allocation based on disk usage. |
|
| Disable shard allocation based on disk usage. |
|