elasticsearch系统状态查询
elasticsearch提供了一套cat APIs来展示系统的状态
如GET /_cat/allocation?v
aliases 别名信息
1
2
3
4
5alias index filter routing.index routing.search
alias1 test1 - - -
alias2 test1 * - -
alias3 test1 - 1 1
alias4 test1 - 2 1,2
allocation 数据节点的分片快照以及使用的磁盘空间大小
1
2shards disk.indices disk.used disk.avail disk.total disk.percent host ip node
5 260b 47.3gb 43.4gb 100.7gb 46 127.0.0.1 127.0.0.1 CSUXak2count 节点的文档总数
1
2epoch timestamp count
1475868259 15:24:19 121fielddata 每个数据节点上正在使用的堆内存
1
2
3id host ip node field size
Nqk-6inXQq-OxUfOUI8jNQ 127.0.0.1 127.0.0.1 Nqk-6in body 544b
Nqk-6inXQq-OxUfOUI8jNQ 127.0.0.1 127.0.0.1 Nqk-6in soul 480bhealth 健康情况
1
2epoch timestamp cluster status node.total node.data shards pri relo init unassign pending_tasks max_task_wait_time active_shards_percent
1475871424 16:17:04 elasticsearch green 1 1 5 5 0 0 0 0 - 100.0%indices 节点下的索引信息,可以得到索引的分片、文档、存储大小等信息
1
2
3health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
yellow open twitter u8FNjxh8Rfy_awN11oDKYQ 1 1 1200 0 88.1kb 88.1kb
green open twitter2 nYFWZEO7TUiOjLQXBaYJpA 5 0 0 0 260b 260bmaster 显示master节点的概要信息
1
2id host ip node
YzWoH_2BT-6UjVGDyPdqYg 127.0.0.1 127.0.0.1 YzWoH_2nodeattrs 显示自定义节点属性
1
2
3
4node host ip attr value
...
node-0 127.0.0.1 127.0.0.1 testattr test
...nodes 节点相关信息
1
2ip heap.percent ram.percent cpu load_1m load_5m load_15m node.role master name
127.0.0.1 65 99 42 3.07 mdi * mJw06l1pending tasks 集群任务接口
1
2
3
4
5
6
7
8insertOrder timeInQueue priority source
1685 855ms HIGH update-mapping [foo][t]
1686 843ms HIGH update-mapping [foo][t]
1693 753ms HIGH refresh-mapping [foo][[t]]
1688 816ms HIGH update-mapping [foo][t]
1689 802ms HIGH update-mapping [foo][t]
1690 787ms HIGH update-mapping [foo][t]
1691 773ms HIGH update-mapping [foo][t]plugins 集群中插件安装的信息
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17name component version description
U7321H6 analysis-icu 6.8.23 The ICU Analysis plugin integrates the Lucene ICU module into Elasticsearch, adding ICU-related analysis components.
U7321H6 analysis-kuromoji 6.8.23 The Japanese (kuromoji) Analysis plugin integrates Lucene kuromoji analysis module into elasticsearch.
U7321H6 analysis-nori 6.8.23 The Korean (nori) Analysis plugin integrates Lucene nori analysis module into elasticsearch.
U7321H6 analysis-phonetic 6.8.23 The Phonetic Analysis plugin integrates phonetic token filter analysis with elasticsearch.
U7321H6 analysis-smartcn 6.8.23 Smart Chinese Analysis plugin integrates Lucene Smart Chinese analysis module into elasticsearch.
U7321H6 analysis-stempel 6.8.23 The Stempel (Polish) Analysis plugin integrates Lucene stempel (polish) analysis module into elasticsearch.
U7321H6 analysis-ukrainian 6.8.23 The Ukrainian Analysis plugin integrates the Lucene UkrainianMorfologikAnalyzer into elasticsearch.
U7321H6 discovery-azure-classic 6.8.23 The Azure Classic Discovery plugin allows to use Azure Classic API for the unicast discovery mechanism
U7321H6 discovery-ec2 6.8.23 The EC2 discovery plugin allows to use AWS API for the unicast discovery mechanism.
U7321H6 discovery-file 6.8.23 Discovery file plugin enables unicast discovery from hosts stored in a file.
U7321H6 discovery-gce 6.8.23 The Google Compute Engine (GCE) Discovery plugin allows to use GCE API for the unicast discovery mechanism.
U7321H6 ingest-attachment 6.8.23 Ingest processor that uses Apache Tika to extract contents
U7321H6 mapper-annotated-text 6.8.23 The Mapper Annotated_text plugin adds support for text fields with markup used to inject annotation tokens into the index.
U7321H6 mapper-murmur3 6.8.23 The Mapper Murmur3 plugin allows to compute hashes of a field's values at index-time and to store them in the index.
U7321H6 mapper-size 6.8.23 The Mapper Size plugin allows document to record their uncompressed size at index time.
U7321H6 store-smb 6.8.23 The Store SMB plugin adds support for SMB stores.recovery 正在进行和以前完成的索引分片的回收率
1
2index shard time type stage source_host source_node target_host target_node repository snapshot files files_recovered files_percent files_total bytes bytes_recovered bytes_percent bytes_total translog_ops translog_ops_recovered translog_ops_percent
twitter 0 13ms store done n/a n/a 127.0.0.1 node-0 n/a n/a 0 0 100% 13 0 0 100% 9928 0 0 100.0%repositories 集群中注册的快照库
1
2
3id type
repo1 fs
repo2 s3thread pool 集群节点中的线程池统计
1
2
3
4
5
6
7node-0 analyze 0 0 0
...
node-0 fetch_shard_started 0 0 0
node-0 fetch_shard_store 0 0 0
node-0 flush 0 0 0
...
node-0 write 0 0 0shards 索引分片的使用情况
1
twitter 0 p STARTED 3014 31.1mb 192.168.56.10 H5dfFeA
segments 索引分片中低水平段的信息
1
2
3index shard prirep ip segment generation docs.count docs.deleted size size.memory committed searchable version compound
test 3 p 127.0.0.1 _0 0 1 0 3kb 2042 false true 7.7.3 true
test1 3 p 127.0.0.1 _0 0 1 0 3kb 2042 false true 7.7.3 truesnapshots 仓库的快照信息
1
2
3id status start_epoch start_time end_epoch end_time duration indices successful_shards failed_shards total_shards
snap1 FAILED 1445616705 18:11:45 1445616978 18:16:18 4.6m 1 4 1 5
snap2 SUCCESS 1445634298 23:04:58 1445634672 23:11:12 6.2m 2 10 0 10templates 模板信息
1
2
3
4name index_patterns order version
template0 [te*] 0
template1 [tea*] 1
template2 [teak*] 2 7