Elasticsearch persistent cluster settings not apply?

Hi, i have a question on Cluster Update Settings

i create a 2-node cluster and write some data to it. The shards of index is distributed across two nodes.
then i put the setting below to the cluster to exclude one node.

curl -XPUT http://1.1.1.1:18437/_cluster/settings?pretty -d '
{
  "persistent" : {
    "cluster.routing.allocation.exclude._ip": "1.1.1.1"
  }
}'

and i got acknowledge response. but it doesn't takes effect. the shard of the node 1.1.1.1 is still working and not being reallocated.

but it works well like settings below

curl -XPUT http://1.1.1.1:18437/_cluster/settings?pretty -d '
{
  "transient" : {
    "cluster.routing.allocation.exclude._ip": "1.1.1.1"
  }
}'

i am afraid of losing my settings in case that the cluster restart so i want to put my settings in persistent module. why doesn't persistent cluster setting working like transient settings?

my elasticsearch version is 5.0.0

and above is all my settings

I meet the same question.

Any suggestions would be appreciated : )

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.