Skip to content

Commit 982c848

Browse files
committed
[DOCS] Added documentation for SameShardAllocationDecider
Closes elastic#4615
1 parent e623f61 commit 982c848

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

docs/reference/modules/cluster.asciidoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ The following settings may be used:
5656
setting, mainly make sense when using it dynamically using the
5757
cluster update settings API.
5858

59+
`cluster.routing.allocation.same_shard.host`::
60+
Prevents that multiple instances of the same shard are allocated
61+
on a single host. Defaults to `false`. This setting only applies
62+
if multiple nodes are started on the same machine.
5963

6064
`indices.recovery.concurrent_streams`::
6165
The number of streams to open (on a *node* level) to recover a

src/main/java/org/elasticsearch/cluster/routing/allocation/decider/SameShardAllocationDecider.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
import org.elasticsearch.common.settings.Settings;
2828

2929
/**
30-
* An allocation decider that prevents the more than prevents multiple instances
31-
* of the same shard to be allocated on a single <tt>host</tt>. The cluster setting can
32-
* be modified in real-time by updating the {@value #SAME_HOST_SETTING} value of
33-
* cluster setting API. The default is <code>false</code>.
30+
* An allocation decider that prevents multiple instances of the same shard to be
31+
* allocated on a single <tt>host</tt>. The cluster setting can be modified in
32+
* real-time by updating the {@value #SAME_HOST_SETTING} value of cluster setting
33+
* API. The default is <code>false</code>.
3434
* <p>
3535
* Note: this setting only applies if multiple nodes are started on the same
3636
* <tt>host</tt>. Multiple allocations of the same shard on the same <tt>node</tt> are

0 commit comments

Comments
 (0)