Removing transient settings from cluster

Hello,

I've set the following settings into my cluster for a temporatry moment:

PUT _cluster/settings
{
  "transient": {
   
    "cluster.routing.allocation.disk.watermark.low": "90%",
    "cluster.routing.allocation.disk.watermark.high": "95%",
    "cluster.routing.allocation.disk.watermark.flood_stage": "99%",
    "cluster.info.update.interval": "1m"
  }
}

Now I would like to remove them, so I've tried the following:

PUT _cluster/settings
{
  "transient": {
    "cluster.routing.allocation.disk.watermark.low": ""
  }
}

And I got this error:

{
  "error" : {
    "root_cause" : [
      {
        "type" : "illegal_argument_exception",
        "reason" : "failed to parse setting [cluster.routing.allocation.disk.watermark.low] with value [] as a size in bytes: unit is missing or unrecognized"
      }
    ],
    "type" : "illegal_argument_exception",
    "reason" : "failed to parse setting [cluster.routing.allocation.disk.watermark.low] with value [] as a size in bytes: unit is missing or unrecognized",
    "caused_by" : {
      "type" : "parse_exception",
      "reason" : "failed to parse setting [cluster.routing.allocation.disk.watermark.low] with value [] as a size in bytes: unit is missing or unrecognized",
      "suppressed" : [
        {
          "type" : "parse_exception",
          "reason" : "Invalid ratio or percentage []"
        }
      ]
    }
  },
  "status" : 400
}

Any idea how can I get rid of those transient parameters from my cluster?

Regards,
Yanick

I think I found it:

PUT _cluster/settings
{
  "transient": {
   
    "cluster.routing.allocation.disk.watermark.low": null,
    "cluster.routing.allocation.disk.watermark.high": null,
    "cluster.routing.allocation.disk.watermark.flood_stage": null,
    "cluster.info.update.interval": null
  }
}

Now all transient values are gone from the cluster.

Thanks!
Yanick

1 Like

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