Elasticsearch 常用命令8

2022-06-30 00:02:06 浏览数 (1)

查询段信息

代码语言:javascript复制
curl 'http://localhost:9200/_cat/segments?v'

太长就不列出来了


关掉一个节点

代码语言:javascript复制
curl -XPOST 'http://localhost:9200/_cluster/nodes/_local/_shutdown'
curl -XPOST 'http://localhost:9200/_cluster/nodes/nodeId1,nodeId2/_shutdown'
curl -XPOST 'http://localhost:9200/_cluster/nodes/_master/_shutdown'

关掉所有节点

代码语言:javascript复制
curl -XPOST 'http://localhost:9200/_shutdown'
curl -XPOST 'http://localhost:9200/_cluster/nodes/_shutdown'
curl -XPOST 'http://localhost:9200/_cluster/nodes/_all/_shutdown'

命令汇总

  • curl localhost:9200/_cat/health?v
  • curl localhost:9200/_cat/nodes?v
  • curl 'localhost:9200/_cat/allocation?v'
  • curl localhost:9200/_cat/indices?v
  • curl 'localhost:9200/_cat/fielddata?v'
  • curl 'localhost:9200/_cat/master?v'
  • curl 'localhost:9200/_cat/pending_tasks?v'
  • curl 'localhost:9200/_cat/plugins?v'
  • curl 'localhost:9200/_cat/recovery?v'
  • curl localhost:9200/_cat/thread_pool?v
  • curl localhost:9200/_cat/shards?v

原文地址http://soft.dog/2015/09/08/elasticsearch-command/

0 人点赞