环境:
OS:Centos 7
es:6.8.5
关闭磁盘告警
curl -X PUT "192.168.1.135:19200/_cluster/settings?pretty" -H 'Content-Type: application/json' -d'
{
"transient": {
"cluster.routing.allocation.disk.watermark.low": null,
"cluster.routing.allocation.disk.watermark.high": null,
"cluster.routing.allocation.disk.watermark.flood_stage": null
}
}
'
设置索引read_only状态
curl -H "Content-Type: application/json" -XPUT 'http://192.168.1.135:19200/.security-6/_settings' -d '{
"index.blocks.read_only_allow_delete" : null
}'