|
@@ -1,12 +1,13 @@
|
|
|
[[cluster-shard-allocation-settings]]
|
|
|
==== Cluster-level shard allocation settings
|
|
|
|
|
|
-The following _dynamic_ settings may be used to control shard allocation and recovery:
|
|
|
+You can use the following settings to control shard allocation and recovery:
|
|
|
|
|
|
[[cluster-routing-allocation-enable]]
|
|
|
`cluster.routing.allocation.enable`::
|
|
|
+
|
|
|
--
|
|
|
+(<<dynamic-cluster-setting,Dynamic>>)
|
|
|
Enable or disable allocation for specific kinds of shards:
|
|
|
|
|
|
* `all` - (default) Allows shard allocation for all kinds of shards.
|
|
@@ -22,23 +23,23 @@ one of the active allocation ids in the cluster state.
|
|
|
--
|
|
|
|
|
|
`cluster.routing.allocation.node_concurrent_incoming_recoveries`::
|
|
|
-
|
|
|
+ (<<dynamic-cluster-setting,Dynamic>>)
|
|
|
How many concurrent incoming shard recoveries are allowed to happen on a node. Incoming recoveries are the recoveries
|
|
|
where the target shard (most likely the replica unless a shard is relocating) is allocated on the node. Defaults to `2`.
|
|
|
|
|
|
`cluster.routing.allocation.node_concurrent_outgoing_recoveries`::
|
|
|
-
|
|
|
+ (<<dynamic-cluster-setting,Dynamic>>)
|
|
|
How many concurrent outgoing shard recoveries are allowed to happen on a node. Outgoing recoveries are the recoveries
|
|
|
where the source shard (most likely the primary unless a shard is relocating) is allocated on the node. Defaults to `2`.
|
|
|
|
|
|
`cluster.routing.allocation.node_concurrent_recoveries`::
|
|
|
-
|
|
|
+ (<<dynamic-cluster-setting,Dynamic>>)
|
|
|
A shortcut to set both `cluster.routing.allocation.node_concurrent_incoming_recoveries` and
|
|
|
`cluster.routing.allocation.node_concurrent_outgoing_recoveries`.
|
|
|
|
|
|
|
|
|
`cluster.routing.allocation.node_initial_primaries_recoveries`::
|
|
|
-
|
|
|
+ (<<dynamic-cluster-setting,Dynamic>>)
|
|
|
While the recovery of replicas happens over the network, the recovery of
|
|
|
an unassigned primary after node restart uses data from the local disk.
|
|
|
These should be fast so more initial primary recoveries can happen in
|
|
@@ -46,7 +47,7 @@ one of the active allocation ids in the cluster state.
|
|
|
|
|
|
|
|
|
`cluster.routing.allocation.same_shard.host`::
|
|
|
-
|
|
|
+ (<<dynamic-cluster-setting,Dynamic>>)
|
|
|
Allows to perform a check to prevent allocation of multiple instances of
|
|
|
the same shard on a single host, based on host name and host address.
|
|
|
Defaults to `false`, meaning that no check is performed by default. This
|
|
@@ -55,13 +56,14 @@ one of the active allocation ids in the cluster state.
|
|
|
[[shards-rebalancing-settings]]
|
|
|
==== Shard rebalancing settings
|
|
|
|
|
|
-The following _dynamic_ settings may be used to control the rebalancing of
|
|
|
-shards across the cluster:
|
|
|
+You can use the following settings to control the rebalancing of shards across
|
|
|
+the cluster:
|
|
|
|
|
|
|
|
|
`cluster.routing.rebalance.enable`::
|
|
|
+
|
|
|
--
|
|
|
+(<<dynamic-cluster-setting,Dynamic>>)
|
|
|
Enable or disable rebalancing for specific kinds of shards:
|
|
|
|
|
|
* `all` - (default) Allows shard balancing for all kinds of shards.
|
|
@@ -74,6 +76,7 @@ Enable or disable rebalancing for specific kinds of shards:
|
|
|
`cluster.routing.allocation.allow_rebalance`::
|
|
|
+
|
|
|
--
|
|
|
+(<<dynamic-cluster-setting,Dynamic>>)
|
|
|
Specify when shard rebalancing is allowed:
|
|
|
|
|
|
|
|
@@ -83,7 +86,7 @@ Specify when shard rebalancing is allowed:
|
|
|
--
|
|
|
|
|
|
`cluster.routing.allocation.cluster_concurrent_rebalance`::
|
|
|
-
|
|
|
+ (<<dynamic-cluster-setting,Dynamic>>)
|
|
|
Allow to control how many concurrent shard rebalances are
|
|
|
allowed cluster wide. Defaults to `2`. Note that this setting
|
|
|
only controls the number of concurrent shard relocations due
|
|
@@ -99,19 +102,20 @@ shard. The cluster is balanced when no allowed rebalancing operation can bring
|
|
|
of any node closer to the weight of any other node by more than the `balance.threshold`.
|
|
|
|
|
|
`cluster.routing.allocation.balance.shard`::
|
|
|
-
|
|
|
+ (<<dynamic-cluster-setting,Dynamic>>)
|
|
|
Defines the weight factor for the total number of shards allocated on a node
|
|
|
(float). Defaults to `0.45f`. Raising this raises the tendency to
|
|
|
equalize the number of shards across all nodes in the cluster.
|
|
|
|
|
|
`cluster.routing.allocation.balance.index`::
|
|
|
-
|
|
|
+ (<<dynamic-cluster-setting,Dynamic>>)
|
|
|
Defines the weight factor for the number of shards per index allocated
|
|
|
on a specific node (float). Defaults to `0.55f`. Raising this raises the
|
|
|
tendency to equalize the number of shards per index across all nodes in
|
|
|
the cluster.
|
|
|
|
|
|
`cluster.routing.allocation.balance.threshold`::
|
|
|
+ (<<dynamic-cluster-setting,Dynamic>>)
|
|
|
Minimal optimization value of operations that should be performed (non
|
|
|
negative float). Defaults to `1.0f`. Raising this will cause the cluster
|
|
|
to be less aggressive about optimizing the shard balance.
|