Skip to content

Removing Remote Cluster from Cluster Settings requires array format #25953

@pickypg

Description

@pickypg

When trying to remove a cluster from my cross-cluster search list, I kept failing to remove the cluster by using the documented approach:

PUT /_cluster/settings
{
  "persistent": {
    "search.remote.local_cluster.seeds": null
  }
}

even though it claims to successfully use the settings:

{
  "acknowledged": true,
  "persistent": {},
  "transient": {}
}

However, to actually remove the seeds (and therefore the remote cluster), you need to wrap the null in [] brackets.

PUT /_cluster/settings
{
  "persistent": {
    "search": {
      "remote": {
        "my_cluster": {
          "seeds": ["127.0.0.1:9300"] 
        }
      }
    }
  }
}

PUT /_cluster/settings
{
  "persistent": {
    "search.remote.my_cluster.seeds": [ null ]
  }
}

For what it's worth, simply passing [] does not work.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions