Hi,
I got some exceptions in my logfiles:
Caused by: java.lang.IllegalArgumentException: unable to consistently parse [cluster.routing.allocation.disk.watermark.low=20gb], [cluster.routing.allocation.disk.watermark.high=10gb], and [cluster.routing.allocation.disk.watermark.flood_stage=95%] as percentage or bytes
at org.elasticsearch.cluster.routing.allocation.DiskThresholdSettings.doValidate(DiskThresholdSettings.java:170) ~[elasticsearch-6.3.0.jar:6.3.0]
at org.elasticsearch.cluster.routing.allocation.DiskThresholdSettings.access$000(DiskThresholdSettings.java:38) ~[elasticsearch-6.3.0.jar:6.3.0]
at org.elasticsearch.cluster.routing.allocation.DiskThresholdSettings$LowDiskWatermarkValidator.validate(DiskThresholdSettings.java:101) ~[elasticsearch-6.3.0.jar:6.3.0]
at org.elasticsearch.cluster.routing.allocation.DiskThresholdSettings$LowDiskWatermarkValidator.validate(DiskThresholdSettings.java:95) ~[elasticsearch-6.3.0.jar:6.3.0]
at org.elasticsearch.common.settings.Setting.get(Setting.java:362) ~[elasticsearch-6.3.0.jar:6.3.0]
at org.elasticsearch.common.settings.Setting.get(Setting.java:343) ~[elasticsearch-6.3.0.jar:6.3.0]
at org.elasticsearch.common.settings.Setting$Updater.getValue(Setting.java:934) ~[elasticsearch-6.3.0.jar:6.3.0]
... 11 more
Caused by: org.elasticsearch.ElasticsearchParseException: failed to parse setting [cluster.routing.allocation.disk.watermark.flood_stage] with value [95%] as a size in bytes: unit is missing or unrecognized
at org.elasticsearch.common.unit.ByteSizeValue.parseBytesSizeValue(ByteSizeValue.java:225) ~[elasticsearch-6.3.0.jar:6.3.0]
at org.elasticsearch.common.unit.ByteSizeValue.parseBytesSizeValue(ByteSizeValue.java:185) ~[elasticsearch-6.3.0.jar:6.3.0]
at org.elasticsearch.cluster.routing.allocation.DiskThresholdSettings.thresholdBytesFromWatermark(DiskThresholdSettings.java:343) ~[elasticsearch-6.3.0.jar:6.3.0]
at org.elasticsearch.cluster.routing.allocation.DiskThresholdSettings.doValidateAsBytes(DiskThresholdSettings.java:194) ~[elasticsearch-6.3.0.jar:6.3.0]
at org.elasticsearch.cluster.routing.allocation.DiskThresholdSettings.doValidate(DiskThresholdSettings.java:159) ~[elasticsearch-6.3.0.jar:6.3.0]
at org.elasticsearch.cluster.routing.allocation.DiskThresholdSettings.access$000(DiskThresholdSettings.java:38) ~[elasticsearch-6.3.0.jar:6.3.0]
at org.elasticsearch.cluster.routing.allocation.DiskThresholdSettings$LowDiskWatermarkValidator.validate(DiskThresholdSettings.java:101) ~[elasticsearch-6.3.0.jar:6.3.0]
at org.elasticsearch.cluster.routing.allocation.DiskThresholdSettings$LowDiskWatermarkValidator.validate(DiskThresholdSettings.java:95) ~[elasticsearch-6.3.0.jar:6.3.0]
at org.elasticsearch.common.settings.Setting.get(Setting.java:362) ~[elasticsearch-6.3.0.jar:6.3.0]
at org.elasticsearch.common.settings.Setting.get(Setting.java:343) ~[elasticsearch-6.3.0.jar:6.3.0]
at org.elasticsearch.common.settings.Setting$Updater.getValue(Setting.java:934) ~[elasticsearch-6.3.0.jar:6.3.0]
If I try to update the watermarks, I get an error message:
curl -X PUT "localhost:9200/_cluster/settings" -H 'Content-Type: application/json' -d'
> {
> "transient": {
> "cluster.routing.allocation.disk.watermark.low": "20gb",
> "cluster.routing.allocation.disk.watermark.high": "10gb"
> }
> }
> '
{"error":{"root_cause":[{"type":"remote_transport_exception","reason":"[hostihost][xxx.xxx.xxx.xxx:9300][cluster:admin/settings/update]"}],"type":"illegal_argument_exception","reason":"unable to consistently parse [cluster.routing.allocation.disk.watermark.low=20gb], [cluster.routing.allocation.disk.watermark.high=10gb], and [cluster.routing.allocation.disk.watermark.flood_stage=95%] as percentage or bytes","caused_by":{"type":"parse_exception","reason":"failed to parse setting [cluster.routing.allocation.disk.watermark.flood_stage] with value [95%] as a size in bytes: unit is missing or unrecognized"}},"status":400}
Any help is appreciated.