We are running into some problems with autoconfiguration of ElasticSearch. Mainly, the low disk watermark never gets logged and the high disk watermark seems to be ignored! This only seems to be a problem when we are using a single-node cluster. The re-allocation seems to work just fine when we add another system into the cluster.
We can freely delete extrenous shards (sub 1mb) using kopf/sense and they will prompty get recreated (against the documentation that new shards cannot be allocated).
The strangest part of the whole process is that we are properly logging the high watermark breach:
[2017-02-22 15:28:02,129][WARN ][cluster.routing.allocation.decider] [es-1] high disk watermark [2%] exceeded on [cVPjveSMQeS6d0oxq8axZA][es-1][/opt/evertz/insite/parasite/applications/es-1/data/Development-cluster/nodes/0] free: 27.1gb[49.3%], shards will be relocated away from this node
Does anyone have some information regarding the expected behavior of the settings mentioned at https://www.elastic.co/guide/en/elasticsearch/reference/2.3/disk-allocator.html and how they are supposed to interact with a single node cluster?
We have tried this for both absolute watermarks (in mb) and percentage watermarks.
Our _cluster/settings:
{
"persistent": {
"cluster": {
"routing": {
"allocation": {
"disk": {
"include_relocations": "true",
"threshold_enabled": "true",
"watermark": {
"low": "1%",
"high": "2%"
}
}
}
},
"info": {
"update": {
"interval": "10s"
}
}
}
},
"transient": {}
}