本文主要是介绍ElasticSearch之cat segments API,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
命令样例如下:
curl -X GET "https://localhost:9200/_cat/segments?v=true&pretty" --cacert $ES_HOME/config/certs/http_ca.crt -u "elastic:ohCxPH=QBE+s5=*lo7F9"
执行结果输出如下:
index shard prirep ip segment generation docs.count docs.deleted size size.memory committed searchable version compound
test 0 p 127.0.0.1 _0 0 1 0 3kb 0 false true 9.8.0 true
test1 0 p 127.0.0.1 _0 0 1 0 3kb 0 false true 9.8.0 true
查看帮助,命令如下:
curl -X GET "https://localhost:9200/_cat/segments?v=true&help=true&pretty" --cacert $ES_HOME/config/certs/http_ca.crt -u "elastic:ohCxPH=QBE+s5=*lo7F9"
执行结果输出如下:
index | i,idx | index name
shard | s,sh | shard name
prirep | p,pr,primaryOrReplica | primary or replica
ip | | ip of node where it lives
id | | unique id of node where it lives
segment | seg | segment name
generation | g,gen | segment generation
docs.count | dc,docsCount | number of docs in segment
docs.deleted | dd,docsDeleted | number of deleted docs in segment
size | si | segment size in bytes
size.memory | sm,sizeMemory | segment memory in bytes
committed | ic,isCommitted | is segment committed
searchable | is,isSearchable | is segment searched
version | v,ver | version
compound | ico,isCompound | is segment compound
相关资料
- cat segments API
- Index segments API
- API conventions
- HTTP accept header
这篇关于ElasticSearch之cat segments API的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!