Elasticsearch
1. API
滚动升级集群
# 首先关闭 shard 的分配
PUT _cluster/settings
{
"persistent": {
"cluster.routing.allocation.enable": "none"
}
}
# 然后写入硬盘
POST _flush/synced
# 升级完成后打开
PUT _cluster/settings
{
"persistent": {
"cluster.routing.allocation.enable": null
}
}Query API
Cat API
Index API
Cluster API
Shard Allocation
2. Tuning
Last updated
