Elasticsearch的一些api随记

来自三线的随记
Admin讨论 | 贡献2021年2月19日 (五) 18:16的版本

health

/_cat/health
/_cluster/health

nodes

/_cat/nodes

cluster allocation explain

/_cluster/allocation/explain

shards

/_cat/shards
/_cat/shards?index=index_name

settings

/_cluster/settings?include_defaults=true
- new version shard allocation config
cluster.routing.allocation.node_concurrent_recoveries
# es 6.8.2
# PUT /_cluster/settings
{
    "persistent": {
        "cluster": {
            "routing": {
                "allocation": {
                    "node_initial_primaries_recoveries": 8
                }
            }
        }
    }
}