mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-04-15 20:00:15 +00:00
Remove usage of transient settings to enable allocations in rolling upgrade docs (#29671)
Since we disable allocation using persistent settings, we should be consistent and remove the setting from the persistent storage. Otherwise an accidental restart will lead for shards not being allocated. Relates to #28757
This commit is contained in:
parent
d2ca16b4c7
commit
f4901b8a19
@ -72,21 +72,15 @@ GET _cat/nodes
|
|||||||
+
|
+
|
||||||
--
|
--
|
||||||
|
|
||||||
NOTE: Because <<_precedence_of_settings, transient
|
Once the node has joined the cluster, remove the `cluster.routing.allocation.enable`
|
||||||
settings take precedence over persistent settings>>, this overrides the
|
setting to enable shard allocation and start using the node:
|
||||||
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 the node has joined the cluster, reenable shard allocation to start using
|
|
||||||
the node:
|
|
||||||
|
|
||||||
[source,js]
|
[source,js]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
PUT _cluster/settings
|
PUT _cluster/settings
|
||||||
{
|
{
|
||||||
"transient": {
|
"persistent": {
|
||||||
"cluster.routing.allocation.enable": "all"
|
"cluster.routing.allocation.enable": null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user