首页 > 编程语言 >ElasticSearch之cat nodes API

ElasticSearch之cat nodes API

时间:2023-11-28 22:33:35浏览次数:37  
标签:used cache number current API ElasticSearch time nodes total

命令样例如下:

curl -X GET "https://localhost:9200/_cat/nodes?v=true&pretty" --cacert $ES_HOME/config/certs/http_ca.crt -u "elastic:ohCxPH=QBE+s5=*lo7F9"

执行结果输出如下:

ip        heap.percent ram.percent cpu load_1m load_5m load_15m node.role   master name
127.0.0.1           11          90   2    1.40    1.37     1.46 cdfhilmrstw *      jackie-ubuntu

查看帮助,命令如下:

curl -X GET "https://localhost:9200/_cat/nodes?v=true&help=true&pretty" --cacert $ES_HOME/config/certs/http_ca.crt -u "elastic:ohCxPH=QBE+s5=*lo7F9"

执行结果输出如下:

id                                         | id,nodeId                                   | unique node id
pid                                        | p                                           | process id
ip                                         | i                                           | ip address
port                                       | po                                          | bound transport port
http_address                               | http                                        | bound http address
version                                    | v                                           | es version
type                                       | t                                           | es distribution type
build                                      | b                                           | es build hash
jdk                                        | j                                           | jdk version
disk.total                                 | dt,diskTotal                                | total disk space
disk.used                                  | du,diskUsed                                 | used disk space
disk.avail                                 | d,da,disk,diskAvail                         | available disk space
disk.used_percent                          | dup,diskUsedPercent                         | used disk space percentage
heap.current                               | hc,heapCurrent                              | used heap
heap.percent                               | hp,heapPercent                              | used heap ratio
heap.max                                   | hm,heapMax                                  | max configured heap
ram.current                                | rc,ramCurrent                               | used machine memory
ram.percent                                | rp,ramPercent                               | used machine memory ratio
ram.max                                    | rm,ramMax                                   | total machine memory
file_desc.current                          | fdc,fileDescriptorCurrent                   | used file descriptors
file_desc.percent                          | fdp,fileDescriptorPercent                   | used file descriptor ratio
file_desc.max                              | fdm,fileDescriptorMax                       | max file descriptors
cpu                                        | cpu                                         | recent cpu usage
load_1m                                    | l                                           | 1m load avg
load_5m                                    | l                                           | 5m load avg
load_15m                                   | l                                           | 15m load avg
uptime                                     | u                                           | node uptime
node.role                                  | r,role,nodeRole                             | m:master eligible node, d:data node, i:ingest node, -:coordinating node only
master                                     | m                                           | *:current master
name                                       | n                                           | node name
completion.size                            | cs,completionSize                           | size of completion
fielddata.memory_size                      | fm,fielddataMemory                          | used fielddata cache
fielddata.evictions                        | fe,fielddataEvictions                       | fielddata evictions
query_cache.memory_size                    | qcm,queryCacheMemory                        | used query cache
query_cache.evictions                      | qce,queryCacheEvictions                     | query cache evictions
query_cache.hit_count                      | qchc,queryCacheHitCount                     | query cache hit counts
query_cache.miss_count                     | qcmc,queryCacheMissCount                    | query cache miss counts
request_cache.memory_size                  | rcm,requestCacheMemory                      | used request cache
request_cache.evictions                    | rce,requestCacheEvictions                   | request cache evictions
request_cache.hit_count                    | rchc,requestCacheHitCount                   | request cache hit counts
request_cache.miss_count                   | rcmc,requestCacheMissCount                  | request cache miss counts
flush.total                                | ft,flushTotal                               | number of flushes
flush.total_time                           | ftt,flushTotalTime                          | time spent in flush
get.current                                | gc,getCurrent                               | number of current get ops
get.time                                   | gti,getTime                                 | time spent in get
get.total                                  | gto,getTotal                                | number of get ops
get.exists_time                            | geti,getExistsTime                          | time spent in successful gets
get.exists_total                           | geto,getExistsTotal                         | number of successful gets
get.missing_time                           | gmti,getMissingTime                         | time spent in failed gets
get.missing_total                          | gmto,getMissingTotal                        | number of failed gets
indexing.delete_current                    | idc,indexingDeleteCurrent                   | number of current deletions
indexing.delete_time                       | idti,indexingDeleteTime                     | time spent in deletions
indexing.delete_total                      | idto,indexingDeleteTotal                    | number of delete ops
indexing.index_current                     | iic,indexingIndexCurrent                    | number of current indexing ops
indexing.index_time                        | iiti,indexingIndexTime                      | time spent in indexing
indexing.index_total                       | iito,indexingIndexTotal                     | number of indexing ops
indexing.index_failed                      | iif,indexingIndexFailed                     | number of failed indexing ops
merges.current                             | mc,mergesCurrent                            | number of current merges
merges.current_docs                        | mcd,mergesCurrentDocs                       | number of current merging docs
merges.current_size                        | mcs,mergesCurrentSize                       | size of current merges
merges.total                               | mt,mergesTotal                              | number of completed merge ops
merges.total_docs                          | mtd,mergesTotalDocs                         | docs merged
merges.total_size                          | mts,mergesTotalSize                         | size merged
merges.total_time                          | mtt,mergesTotalTime                         | time spent in merges
refresh.total                              | rto,refreshTotal                            | total refreshes
refresh.time                               | rti,refreshTime                             | time spent in refreshes
refresh.external_total                     | rto,refreshTotal                            | total external refreshes
refresh.external_time                      | rti,refreshTime                             | time spent in external refreshes
refresh.listeners                          | rli,refreshListeners                        | number of pending refresh listeners
script.compilations                        | scrcc,scriptCompilations                    | script compilations
script.cache_evictions                     | scrce,scriptCacheEvictions                  | script cache evictions
script.compilation_limit_triggered         | scrclt,scriptCacheCompilationLimitTriggered | script cache compilation limit triggered
search.fetch_current                       | sfc,searchFetchCurrent                      | current fetch phase ops
search.fetch_time                          | sfti,searchFetchTime                        | time spent in fetch phase
search.fetch_total                         | sfto,searchFetchTotal                       | total fetch ops
search.open_contexts                       | so,searchOpenContexts                       | open search contexts
search.query_current                       | sqc,searchQueryCurrent                      | current query phase ops
search.query_time                          | sqti,searchQueryTime                        | time spent in query phase
search.query_total                         | sqto,searchQueryTotal                       | total query phase ops
search.scroll_current                      | scc,searchScrollCurrent                     | open scroll contexts
search.scroll_time                         | scti,searchScrollTime                       | time scroll contexts held open
search.scroll_total                        | scto,searchScrollTotal                      | completed scroll contexts
segments.count                             | sc,segmentsCount                            | number of segments
segments.memory                            | sm,segmentsMemory                           | memory used by segments
segments.index_writer_memory               | siwm,segmentsIndexWriterMemory              | memory used by index writer
segments.version_map_memory                | svmm,segmentsVersionMapMemory               | memory used by version map
segments.fixed_bitset_memory               | sfbm,fixedBitsetMemory                      | memory used by fixed bit sets for nested object field types and type filters for types referred in _parent fields
suggest.current                            | suc,suggestCurrent                          | number of current suggest ops
suggest.time                               | suti,suggestTime                            | time spend in suggest
suggest.total                              | suto,suggestTotal                           | number of suggest ops
bulk.total_operations                      | bto,bulkTotalOperations                     | number of bulk shard ops
bulk.total_time                            | btti,bulkTotalTime                          | time spend in shard bulk
bulk.total_size_in_bytes                   | btsi,bulkTotalSizeInBytes                   | total size in bytes of shard bulk
bulk.avg_time                              | bati,bulkAvgTime                            | average time spend in shard bulk
bulk.avg_size_in_bytes                     | basi,bulkAvgSizeInBytes                     | average size in bytes of shard bulk
shard_stats.total_count                    | sstc,shardStatsTotalCount                   | number of shards assigned
mappings.total_count                       | mtc,mappingsTotalCount                      | number of mappings
mappings.total_estimated_overhead_in_bytes | mteo,mappingsTotalEstimatedOverheadInBytes  | estimated overhead in bytes of mappings

相关资料

标签:used,cache,number,current,API,ElasticSearch,time,nodes,total
From: https://www.cnblogs.com/jackieathome/p/17863292.html

相关文章

  • 新特性之Date API
    ClockClock类提供了访问当前日期和时间的方法,Clock是时区敏感的,可以用来取代System.currentTimeMillis()来获取当前的微秒数。某个特定的时间点也可以使用Instant类来表示,Instant类也可以用来创建老的java.util.Date对象 publicclassTest{publicstaticvoidmain(Stri......
  • ElasticSearch之cat nodeattrs API
    命令样例如下:curl-XGET"https://localhost:9200/_cat/nodeattrs?v=true&pretty"--cacert$ES_HOME/config/certs/http_ca.crt-u"elastic:ohCxPH=QBE+s5=*lo7F9"执行结果输出如下:nodehostipattrvalu......
  • ElasticSearch之cat master API
    命令样例如下:curl-XGET"https://localhost:9200/_cat/master?v=true&pretty"--cacert$ES_HOME/config/certs/http_ca.crt-u"elastic:ohCxPH=QBE+s5=*lo7F9"执行结果输出如下:idhostipnodeaKgBu7LgS9a6iPYH8n2JPw1......
  • ElasticSearch之cat indices API
    命令样例如下:curl-XGET"https://localhost:9200/_cat/indices?v=true&pretty"--cacert$ES_HOME/config/certs/http_ca.crt-u"elastic:ohCxPH=QBE+s5=*lo7F9"执行结果输出如下:healthstatusindexuuidprirepdocs.coun......
  • Apipost也出IDEA插件了?Apipost-Helper!
    IDEA是一款功能强大的集成开发环境(IDE),它可以帮助开发人员更加高效地编写、调试和部署软件应用程序。我们在编写完接口代码后需要进行接口调试等操作,一般需要打开额外的调试工具。今天给大家介绍一款IDEA插件:Apipost-Helper-2.0。代码写完直接编辑器内调试、还支持生成接口文档、接......
  • Apipost也出IDEA插件了?Apipost-Helper!
    IDEA是一款功能强大的集成开发环境(IDE),它可以帮助开发人员更加高效地编写、调试和部署软件应用程序。我们在编写完接口代码后需要进行接口调试等操作,一般需要打开额外的调试工具。今天给大家介绍一款IDEA插件:Apipost-Helper-2.0。代码写完直接编辑器内调试、还支持生成接口文档、......
  • Vue中process.env关键字,process.env.VUE_APP_BASE_API
    Vue中process.env关键字,process.env.VUE_APP_BASE_API:https://blog.csdn.net/coinisi_li/article/details/128547778 vue分环境配置变量及打包:https://blog.csdn.net/weixin_44794123/article/details/121682978?spm=1001.2101.3001.6650.8&utm_medium=distribute.pc_relevant.......
  • 查询表记录API
    <1>all():查询所有结果<2>filter(**kwargs):它包含了与所给筛选条件相匹配的对象<3>get(**kwargs):返回与所给筛选条件相匹配的对象,返回结果有且只有一个,如果符合筛选条件的对象超过一个或者没有都会抛出错误。<4>exclude(**kwargs):它包含了与所给筛......
  • API 接口主流协议有哪些?及WebService和Restful之间的区别和联系?
    API接口主流协议有哪些?如何创建HTTP/HTTPS、WebSocket/WebSockets、TCP/UDP、gRPC、SOAP、Dubbo/HSF等不同协议?RESTFUL:简单来说就是对HTTP请求的方式和路径的一种约束规则,一种思想。只要是符合这种思想的HTTP接口都可以叫做RESTFUL接口即同一个路径,相同的参数,请求方式的不同......
  • Elasticsearch query查询语法 es
    Elasticsearch查询语法1.查询基本语法结构GET/{索引名}/_search{ "from":0,//返回搜索结果的开始位置 "size":10,//分页大小,一次返回多少数据 "_source":[...需要返回的字段数组...], "query":{...query子句...}, "aggs":{..aggs子句..},......