欢迎投稿

今日深度:

elasticsearch 常用接口,elasticsearch接口

elasticsearch 常用接口,elasticsearch接口


elasticsearch 2.3.4-常用命令

功能 命令
查看集群状态 curl -XGET ‘http://localhost:9200/_cluster/health?pretty’
列出节点信息 curl -XGET ‘http://localhost:9200/_cat/nodes?v’
列出索引信息 curl -XGET ‘http://localhost:9200/_cat/indices?v’
列出分片信息 curl -XGET ‘http://localhost:9200/_cat/shards?v’
查看进程信息 curl -XGET ‘http://localhost:9200/_nodes/process?pretty’
获取统计信息 curl -XGET ‘http://localhost:9200/_stats?pretty’
获取统计信息-执行索引 curl -XGET ‘http://localhost:9200/productindex/_stats?pretty’
热点线程 curl -XGET ‘http://localhost:9200/_nodes/hot_threads?pretty’
每10sdump热点线程 curl -XGET ‘http://localhost:9200/_nodes/hot_threads?type=cpu&interval=10s’
获取索引信息 curl -XGET ‘http://localhost:9200/productindex/_mapping?pretty’
获取JVM信息 curl -XGET “http://localhost:9200/_nodes/stats/jvm?pretty”
获取JVM信息-指定节点 curl -XGET “http://localhost:9200/_nodes/yoho.node.114/stats/jvm?pretty”
删除全部索引 curl -XDELETE ‘http://localhost:9200/*?pretty’
删除指定索引 curl -XDELETE ‘http://localhost:9200/storagesku?pretty’
查看段信息 curl -XGET ‘http://localhost:9200/productindex/_segments’
执行段合并 curl -XPOST ‘http://localhost:9200/productindex/_forcemerge?max_num_segments=1’
查看线程池配置 curl -XGET “http://localhost:9200/_nodes/thread_pool/”

www.htsjk.Com true http://www.htsjk.com/Elasticsearch/27770.html NewsArticle elasticsearch 常用接口,elasticsearch接口 elasticsearch 2.3.4-常用命令 功能 命令 查看集群状态 curl -XGET ‘http://localhost:9200/_cluster/health?pretty’ 列出节点信息 curl -XGET ‘http://localhost:9200/_cat/nod...
相关文章
    暂无相关文章
评论暂时关闭