|
@@ -94,13 +94,19 @@ reenable allocation.
|
|
|
------------------------------------------------------
|
|
------------------------------------------------------
|
|
|
PUT _cluster/settings
|
|
PUT _cluster/settings
|
|
|
{
|
|
{
|
|
|
- "persistent": {
|
|
|
|
|
|
|
+ "transient": {
|
|
|
"cluster.routing.allocation.enable": "all"
|
|
"cluster.routing.allocation.enable": "all"
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
------------------------------------------------------
|
|
------------------------------------------------------
|
|
|
// CONSOLE
|
|
// CONSOLE
|
|
|
|
|
|
|
|
|
|
+NOTE: Because <<cluster-update-settings.html#_precedence_of_settings, transient
|
|
|
|
|
+settings take precedence over persistent settings>>, this overrides the
|
|
|
|
|
+persistent setting used to disable shard allocation in the first step. If you
|
|
|
|
|
+don't explicitly reenable shard allocation after a full cluster restart, the
|
|
|
|
|
+persistent setting is used and shard allocation remains disabled.
|
|
|
|
|
+
|
|
|
Once allocation is reenabled, the cluster starts allocating replica shards to
|
|
Once allocation is reenabled, the cluster starts allocating replica shards to
|
|
|
the data nodes. At this point it is safe to resume indexing and searching,
|
|
the data nodes. At this point it is safe to resume indexing and searching,
|
|
|
but your cluster will recover more quickly if you can wait until all primary
|
|
but your cluster will recover more quickly if you can wait until all primary
|