2013-08-28 19:24:34 -04:00
|
|
|
[[modules-cluster]]
|
2020-06-01 13:15:08 -04:00
|
|
|
=== Cluster-level shard allocation and routing settings
|
|
|
|
|
|
|
|
_Shard allocation_ is the process of allocating shards to nodes. This can
|
|
|
|
happen during initial recovery, replica allocation, rebalancing, or
|
|
|
|
when nodes are added or removed.
|
2013-08-28 19:24:34 -04:00
|
|
|
|
2015-06-22 17:49:45 -04:00
|
|
|
One of the main roles of the master is to decide which shards to allocate to
|
|
|
|
which nodes, and when to move shards between nodes in order to rebalance the
|
|
|
|
cluster.
|
2013-08-28 19:24:34 -04:00
|
|
|
|
2015-06-22 17:49:45 -04:00
|
|
|
There are a number of settings available to control the shard allocation process:
|
2013-08-28 19:24:34 -04:00
|
|
|
|
2020-06-01 13:15:08 -04:00
|
|
|
* <<cluster-shard-allocation-settings>> control allocation and
|
2015-06-22 17:49:45 -04:00
|
|
|
rebalancing operations.
|
2013-08-28 19:24:34 -04:00
|
|
|
|
2020-06-01 13:15:08 -04:00
|
|
|
* <<disk-based-shard-allocation>> explains how Elasticsearch takes available
|
|
|
|
disk space into account, and the related settings.
|
2013-08-28 19:24:34 -04:00
|
|
|
|
2020-06-01 13:15:08 -04:00
|
|
|
* <<shard-allocation-awareness>> and <<forced-awareness>> control how shards
|
|
|
|
can be distributed across different racks or availability zones.
|
2013-08-28 19:24:34 -04:00
|
|
|
|
2020-06-01 13:15:08 -04:00
|
|
|
* <<cluster-shard-allocation-filtering>> allows certain nodes or groups of
|
|
|
|
nodes excluded from allocation so that they can be decommissioned.
|
2013-08-28 19:24:34 -04:00
|
|
|
|
2020-06-01 13:15:08 -04:00
|
|
|
Besides these, there are a few other <<misc-cluster-settings,miscellaneous cluster-level settings>>.
|
2013-08-28 19:24:34 -04:00
|
|
|
|
2020-06-01 13:15:08 -04:00
|
|
|
All of these settings are _dynamic_ and can be
|
2015-06-22 17:49:45 -04:00
|
|
|
updated on a live cluster with the
|
|
|
|
<<cluster-update-settings,cluster-update-settings>> API.
|
2013-08-28 19:24:34 -04:00
|
|
|
|
2015-06-22 17:49:45 -04:00
|
|
|
include::cluster/shards_allocation.asciidoc[]
|
2013-08-28 19:24:34 -04:00
|
|
|
|
2015-06-22 17:49:45 -04:00
|
|
|
include::cluster/disk_allocator.asciidoc[]
|
2013-08-28 19:24:34 -04:00
|
|
|
|
2015-06-22 17:49:45 -04:00
|
|
|
include::cluster/allocation_awareness.asciidoc[]
|
2014-09-26 15:04:42 -04:00
|
|
|
|
2015-06-22 17:49:45 -04:00
|
|
|
include::cluster/allocation_filtering.asciidoc[]
|
2014-11-04 08:32:05 -05:00
|
|
|
|
2015-06-22 17:49:45 -04:00
|
|
|
include::cluster/misc.asciidoc[]
|