查看集群监控状态
[ops@dis-algo34 ~]$ curl -X GET 'http://xxxxx.bigdata.mw.xxxxx.cn:9200/_cat/health?v'
epoch timestamp cluster status node.total node.data shards pri relo init unassign pending_tasks max_task_wait_time active_shards_percent
1628927872 07:57:52 bigdata-search green 13 10 474 225 0 0 0 0 - 100.0%
[ops@dis-algo34 ~]$
查看索引状态信息
[ops@dis-algo34 ~]$ curl -X GET 'http://xxxxx.bigdata.mw.xxxxx.cn:9200/_cat/indices?v'
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
green open .siem-signals-default-000001 vn-5GRuXRuiWUMQ6IOmkLg 1 1 0 0 416b 208b
green open automated_test1 HJ0a-OsNQIy4ZjCQi9SNzw 3 0 0 0 624b 624b
green open .siem-signals-default-000002 sDUWPeHEQZahokFZHrRN9g 1 1 0 0 416b 208b
green open .siem-signals-default-000003 GZlwPbNZSgywCJ6VctlGWQ 1 1 0 0 416b 208b
green open automated_keyword_alias_1627888980254 SV9mqCzVTqihnv7cjKaOFA 3 2 34025 0 53.9mb 20mb
green open product_sku_idx_20210720 VUAw0DsnRp2qm8Xl7mbyTQ 16 1 0 0 6.5kb 3.2kb
green open .items-default-000001 nyhjy5U-RgWLXQNvMmANOg 1 1 0 0 416b 208b
green open automated_keyword_alias_1628004660261 bP84BQJaRniTwDoyw_sFJA 3 2 34041 0 54.9mb 20mb
查看具体索引信息
[ops@dis-algo34 ~]$ curl -X GET http://xxxxx.bigdata.mw.xxxxx.cn:9200/indexName/_stats
查看集群节点信息
[ops@dis-algo34 ~]$ curl -X GET 'http://xxxxx.bigdata.mw.xxxxx.cn:9200/_cat/nodes?v'
ip heap.percent ram.percent cpu load_1m load_5m load_15m node.role master name
123.17.105.222 33 98 40 5.50 6.16 5.38 dilt - bigdata-search-es-data-7
123.17.41.2 51 99 48 5.89 7.03 6.79 dilt - bigdata-search-es-data-1
123.17.105.218 21 63 6 0.78 0.52 0.47 m * bigdata-search-es-master-0
123.17.105.219 39 61 5 0.30 0.43 0.45 m - bigdata-search-es-master-1
123.17.41.1 78 99 40 3.39 3.88 3.89 dilt - bigdata-search-es-data-0
123.17.41.8 70 100 45 4.85 5.84 5.64 dilt - bigdata-search-es-data-9
123.17.105.220 72 98 46 7.21 6.45 6.07 dilt - bigdata-search-es-data-3
123.17.105.221 60 100 46 5.91 6.02 5.57 dilt - bigdata-search-es-data-6
123.17.41.4 82 99 42 6.71 5.80 4.99 dilt - bigdata-search-es-data-4
123.17.41.3 63 98 45 4.87 6.32 5.82 dilt - bigdata-search-es-data-2
123.17.41.5 33 100 38 5.53 5.49 4.85 dilt - bigdata-search-es-data-5
123.17.41.0 36 61 5 1.36 1.64 1.69 m - bigdata-search-es-master-2
123.17.41.6 81 100 41 7.58 7.27 6.97 dilt - bigdata-search-es-data-8
查看集群状态
[ops@dis-algo34 ~]$ curl -X GET http://xxxxx.bigdata.mw.xxxxx.cn:9200/_cluster/stats
查看分段信息
[ops@dis-algo34 ~]$ curl -X GET http://xxxxx.bigdata.mw.xxxxx.cn:9200/_cat/segments?v
查看分片信息
[ops@dis-algo34 ~]$ curl -X GET http://xxxxx.bigdata.mw.xxxxx.cn:9200/_cat/shards?v
参考文档: https://www.elastic.co/guide/cn/elasticsearch/guide/current/_cat_api.html https://www.elastic.co/guide/cn/elasticsearch/guide/current/_monitoring_individual_nodes.html https://www.elastic.co/guide/cn/elasticsearch/guide/current/_index_stats.html 压测参考: https://www.elastic.co/guide/cn/elasticsearch/guide/current/indexing-performance.html
|