查看ES健康状态
curl localhost:9200/_cluster/health?pretty
curl localhost:9200/_cluster/state?pretty
查看ES集群的设置
curl localhost:9200/_cluster/settings?pretty
查看ES在线的节点
curl localhost:9200/_cat/nodes?v
#查看主节点
curl localhost:9200/_cat/master
查看索引
curl localhost:9200/_cat/indices?v
#具体索引
curl localhost:9200/_cat/indices/{index}
查看分片
curl localhost:9200/_cat/shards
curl localhost:9200/_cat/shards/{index}
动态修改副本数(单节点可设置为0)
curl -H "Content-Type: application/json" -XPUT 'http://localhost:9200/_settings' -d '
{
"index" : {
"number_of_rep
Elasticsearch管理与维护

本文介绍了Elasticsearch的基本管理和维护操作,包括查看集群健康状态、集群设置、在线节点及主节点信息,以及如何查看和管理索引和分片等。还提供了动态调整副本数、复制重建索引的方法,并展示了如何查询插件信息。
最低0.47元/天 解锁文章
1853

被折叠的 条评论
为什么被折叠?



