记录一下es常用接口,用于快速的排查问题
GET /_cluster/settings?include_defaults=true //查看集群的默认配置信息
GET /_cluster/health //查看集群的健康状态
PUT /_cluster/settings //集群在做分片rebalance的时候,设置并发度,默认为2
{
"transient":{
"cluster.routing.allocation.cluster_concurrent_rebalance": 8
}
}
GET /_cat/indices //查看所有的索引信息
GET /索引名称/_stats //查看单个索引的信息
GET /_nodes/stats //查看节点信息
GET /_nodes/节点ip/stats //查看某个节点的信息
GET /_nodes/节点ip/thread_pool //查看某个节点的线程池相关信息
GET /_nodes/节点ip/stats/breaker? //查看某个节点的熔断器的相关信息
GET /_cat/thread_pool/search //查看所有节点的搜索线程池相关信息
GET /_cat/nodes?v&h=ip,heap.percent //查看所有节点的堆内存使用情况
GET /_tasks?nodes=节点名称 //查看某个节点的后台任务信息