Elasticsearch查看节点信息 cat nodes

x33g5p2x  于2021-03-14 发布在 ElasticSearch  
字(6.0k)|赞(0)|评价(0)|浏览(1039)

原文链接 : https://www.elastic.co/guide/en/elasticsearch/reference/5.0/cat-nodes.html

译文链接 : http://www.apache.wiki/display/Elasticsearch/cat+nodes

贡献者 : [那伊抹微笑]

nodes 命令展示了集群拓扑结构。

% GET /_cat/nodes
192.168.56.30 9 78 22 1.80 2.05 2.51 mdi * bGG90GE
192.168.56.10 6 75 14 1.24 2.45 1.37 md  - I8hydUG
192.168.56.20 5 71 12 1.07 1.05 1.11 di  - H5dfFeA

前几列告诉您可用的节点并且描述了一下 heap(堆),memory(内存),cpu,和 load(平均负载)。

ip            heap.percent ram.percent cpu load_1m load_5m load_15m
192.168.56.30            9          78  22    1.80    2.05     2.51
192.168.56.10            6          75  14    1.24    2.45     1.37
192.168.56.20            5          71  12    1.07    1.05     1.11

最后几列提供了在查看整个集群(特别是大集群)时的一些有用的辅助信息。我有多少个 master-eligiblemaster 资格的)节点。

Columns(列)

下面是一个已存在的 header(标题)的详细列表,它可以传递 nodeattrs?h= 以在有序的列中获取更详细的信息。如果没有指定 header(标题),那么这些标记默认情况下就会有。如果指定了 header(标题),将不使用默认值。

为了更简洁,可以使用别名替换完整的标题名称。列的显示是有序的,它们在下面被列出了,除非指定了其它的顺序(例如,h=attr,**value **与 h=valueattr 相反)。

在指定标题时,默认的输出中标题不会被替换。为了使标题可以出现在输出中,使用 verbose(详细的)模式(v)。标题名将匹配提供的值(例如,pid 与 p 相对)。例如 : 

% curl 192.168.56.10:9200/_cat/nodes?v&h=id,ip,port,v,m
id   ip            port v           m
pLSN 192.168.56.30 9300 {version} -
k0zy 192.168.56.10 9300 {version} -
6Tyi 192.168.56.20 9300 {version} *
% curl 192.168.56.10:9200/_cat/nodes?h=id,ip,port,v,m
pLSN 192.168.56.30 9300 {version} -
k0zy 192.168.56.10 9300 {version} -
6Tyi 192.168.56.20 9300 {version} *
Header(标题)Alias(别名)Appear by Default(默认显示)Description(描述)Example(示例)
idnodeIdNoUnique node IDk0zy
pidpNoProcess ID13061
ipiYesIP address127.0.1.1
portpoNoBound transport port9300
http_addresshttpNobound http address127.0.0.1:9200
versionvNoElasticsearch version5.0.1
buildbNoElasticsearch Build hash5c03844
jdkjNoRunning Java version1.8.0
disk.availddiskdiskAvailNoAvailable disk space1.8gb
heap.currenthcheapCurrentNoUsed heap311.2mb
heap.percenthpheapPercentYesUsed heap percentage7
heap.maxhmheapMaxNoMaximum configured heap1015.6mb
ram.currentrcramCurrentNoUsed total memory513.4mb
ram.percentrpramPercentYesUsed total memory percentage47
ram.maxrmramMaxNoTotal memory2.9gb
file_desc.currentfdc,fileDescriptorCurrentNoUsed file descriptors123
file_desc.percentfdp,fileDescriptorPercentYesUsed file descriptors percentage1
file_desc.maxfdmfileDescriptorMaxNoMaximum number of file descriptors1024
cpu NoRecent system CPU usage as percent12
load_1mlNoMost recent load average0.22
load_5mlNoLoad average for the last five minutes0.78
load_15mlNoLoad average for the last fifteen minutes1.24
uptimeuNoNode uptime17.3m
node.rolerrolenodeRoleYesMaster eligible node (m); Data node (d); Ingest node (i); Coordinating node only (-)mdi
mastermYesElected master (*); Not elected master (-)*
namenYesNode nameI8hydUG
completion.sizecscompletionSizeNoSize of completion0b
fielddata.memory_sizefmfielddataMemoryNoUsed fielddata cache memory0b
fielddata.evictionsfefielddataEvictionsNoFielddata cache evictions0
query_cache.memory_sizeqcmqueryCacheMemoryNoUsed query cache memory0b
query_cache.evictionsqcequeryCacheEvictionsNoQuery cache evictions0
request_cache.memory_sizercmrequestCacheMemoryNoUsed request cache memory0b
request_cache.evictionsrce,requestCacheEvictionsNoRequest cache evictions0
request_cache.hit_countrchc,requestCacheHitCountNoRequest cache hit count0
request_cache.miss_countrcmc,requestCacheMissCountNoRequest cache miss count0
flush.totalftflushTotalNoNumber of flushes1
flush.total_timefttflushTotalTimeNoTime spent in flush1
get.currentgcgetCurrentNoNumber of current get operations0
get.timegtigetTimeNoTime spent in get14ms
get.totalgtogetTotalNoNumber of get operations2
get.exists_timegetigetExistsTimeNoTime spent in successful gets14ms
get.exists_totalgetogetExistsTotalNoNumber of successful get operations2
get.missing_timegmtigetMissingTimeNoTime spent in failed gets0s
get.missing_totalgmtogetMissingTotalNoNumber of failed get operations1
indexing.delete_currentidc,indexingDeleteCurrentNoNumber of current deletion operations0
indexing.delete_timeidtiindexingDeleteTimeNoTime spent in deletions2ms
indexing.delete_totalidtoindexingDeleteTotalNoNumber of deletion operations2
indexing.index_currentiicindexingIndexCurrentNoNumber of current indexing operations0
indexing.index_timeiitiindexingIndexTimeNoTime spent in indexing134ms
indexing.index_totaliitoindexingIndexTotalNoNumber of indexing operations1
indexing.index_failediifindexingIndexFailedNoNumber of failed indexing operations0
merges.currentmcmergesCurrentNoNumber of current merge operations0
merges.current_docsmcdmergesCurrentDocsNoNumber of current merging documents0
merges.current_sizemcsmergesCurrentSizeNoSize of current merges0b
merges.totalmtmergesTotalNoNumber of completed merge operations0
merges.total_docsmtdmergesTotalDocsNoNumber of merged documents0
merges.total_sizemtsmergesTotalSizeNoSize of current merges0b
merges.total_timemttmergesTotalTimeNoTime spent merging documents0s
refresh.totalrtorefreshTotalNoNumber of refreshes16
refresh.timertirefreshTimeNoTime spent in refreshes91ms
script.compilationsscrccscriptCompilationsNoTotal script compilations17
script.cache_evictionsscrce,scriptCacheEvictionsNoTotal compiled scripts evicted from cache6
search.fetch_currentsfcsearchFetchCurrentNoCurrent fetch phase operations0
search.fetch_timesftisearchFetchTimeNoTime spent in fetch phase37ms
search.fetch_totalsftosearchFetchTotalNoNumber of fetch operations7
search.open_contextssosearchOpenContextsNoOpen search contexts0
search.query_currentsqcsearchFetchCurrentNoCurrent query phase operations0
search.query_timesqtisearchFetchTimeNoTime spent in query phase43ms
search.query_totalsqtosearchFetchTotalNoNumber of query operations9
search.scroll_currentsccsearchScrollCurrentNoOpen scroll contexts2
search.scroll_timesctisearchScrollTimeNoTime scroll contexts held open2m
search.scroll_totalsctosearchScrollTotalNoCompleted scroll contexts1
segments.countscsegmentsCountNoNumber of segments4
segments.memorysmsegmentsMemoryNoMemory used by segments1.4kb
segments.index_writer_memorysiwm,segmentsIndexWriterMemoryNoMemory used by index writer18mb
segments.version_map_memorysvmm,segmentsVersionMapMemoryNoMemory used by version map1.0kb
segments.fixed_bitset_memorysfbmfixedBitsetMemoryNoMemory used by fixed bit sets for nested object field types and type filters for types referred in _parent fields1.0kb
suggest.currentsucsuggestCurrentNoNumber of current suggest operations0
suggest.timesutisuggestTimeNoTime spent in suggest0
suggest.totalsutosuggestTotalNoNumber of suggest operations0

相关文章

微信公众号

最新文章

更多