elasticsearch

Отключение read only на индексе:

curl -X PUT http://localhost:9200/_all/_settings \
 -H "Content-Type: application/json" \
 -d '{"index.blocks.read_only_allow_delete": null}'

Смена пароля

curl -X POST "http://localhost:9200/_security/user/some_user/_password?pretty" \
 -H "Content-Type: application/json" \
 -d'{ "password" : "zabbix" }'

Распределение дискового пространства По умолчанию пороги 15, 10 и 5%%

переопределение на лету:

curl -X PUT "10.126.171.200:9200/_cluster/settings?pretty" \
 -H "Content-Type: application/json" \
 -d'
{
  "transient": {
    "cluster.routing.allocation.disk.watermark.low": "100gb",
    "cluster.routing.allocation.disk.watermark.high": "50gb",
    "cluster.routing.allocation.disk.watermark.flood_stage": "10gb"
  }
}
'

переопределение в конфигурации:

cluster.routing.allocation.disk.threshold_enabled: true
cluster.routing.allocation.disk.watermark.low: 100gb
cluster.routing.allocation.disk.watermark.high: 50gb
cluster.routing.allocation.disk.watermark.flood_stage: 10gb