es错误排查命令

删除索引
curl -u elastic:w33AKwVH8vYT1MkUuRkI -XDELETE http://localhost:9200/index_name

查看集群状态
curl -u elastic:w33AKwVH8vYT1MkUuRkI -XGET 'http://localhost:9200/_cluster/health?pretty=true'

查看索引状态
curl -u elastic:w33AKwVH8vYT1MkUuRkI 'http://localhost:9200/_cat/indices?v'

查看分片情况
curl -u elastic:w33AKwVH8vYT1MkUuRkI -XGET 'http://localhost:9200/_cat/shards'

查看分片分配失败原因
curl -u elastic:w33AKwVH8vYT1MkUuRkI -XGET 'http://localhost:9200/_cluster/allocation/explain?pretty'

分配失败的索引再次进行分配
curl -u elastic:w33AKwVH8vYT1MkUuRkI -XPOST 'http://localhost:9200/_cluster/reroute?retry_failed=true'

posted @ 2023-08-06 13:58  哈喽哈喽111111  阅读(78)  评论(0)    收藏  举报