巡检一组命令
巡检一组命令
GET /_cat/health?v
GET /_cat/indices?v&s=store.size:desc # 索引按容量排序
GET /_cat/nodes?v&h=name,heap.percent,disk.used_percent,cpu
GET /_cat/shards?v&h=index,shard,prirep,state,node
GET /_cat/thread_pool?v&h=node_name,name,active,queue,rejected
# 脚本消费:加 &format=json把这几条封成巡检脚本定时采集,集群异常前通常能先看到容量与队列的变化。