Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Current »

Preconditions

You need access to jumphost with you personal Openssh access key (Access an environment via OpenSSH or Putty). In order to use the Elasticsearch API, it is necessary to access the Elasticsearch API from a server from the application network (e.g. web roles). Following API cli commands you may use to identify utilization of your ElasticSearch cluster.

Cluster Health

Information about the health of the entire cluster.

Command (1):

curl -XGET 'https://ENDPOINT/_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
1491573911     14:05:11    graylog  green   4          2         362    182  0    0    0            0         -                  100.0%

Node information

Information about the utilization, roles and master assignments of the individual nodes.

Command (2): 

curl -XGET 'https://ENDPOINT/_cat/nodes?v'
host              ip                        heap.percent ram.percent     load       node.role  master    name                                        
10.69.57.100      10.69.57.100              76           90              0.04       c          -         graylog-827fd376-d1b5-49f7-8600-dba8338140ae
10.69.57.143      10.69.57.143              65           95              0.72       d          *         root360-logmonitoring-es02-i-e240205f        
10.69.58.21       10.69.58.21               46           96              0.01       c          -         graylog-5bd0bac2-d712-4038-a682-089810196c11
10.69.57.70       10.69.57.70               58           96              0.13       d          m         root360-logmonitoring-es01-i-e4402059

Index Information

Information about status, replication, document count (existing and deleted) and storage size.

Command (3):

curl -XGET 'https://ENDPOINT/_cat/indices?v'
health status index    pri rep docs.count docs.deleted store.size pri.store.size 
green  open   index_1  1   1          0            0       260b           130b 
green  open   index_2  1   1         70            3    572.4kb        286.2kb

Storage allocation

Information about Data Nodes and their HDD utilization, as well as Shard number.

Command (4):

curl -XGET 'https://ENDPOINT/_cat/allocation?v'

shards  disk.indices  disk.used  disk.avail  disk.total  disk.percent   host           ip             node      
181     113gb         216.9gb    275.1gb     492gb       44             10.69.57.143   10.69.57.143   root360-logmonitoring-es02-i-e240205f
181     113.1gb       216.9gb    275gb       492gb       44             10.69.57.70    10.69.57.70    root360-logmonitoring-es01-i-e4402059

Shard distribution

Information about all the shards in the cluster.

Command (5):

curl -XGET 'https://ENDPOINT/_cat/shards?v'

index                          shard   prirep   state      docs       store   ip             node                                  
graylog_125                    1       r        STARTED    7473022    4.4gb   10.69.57.70    root360-logmonitoring-es01-i-e4402059
graylog_125                    1       p        STARTED    7473022    4.4gb   10.69.57.143   root360-logmonitoring-es02-i-e240205f

(1)  https://www.elastic.co/guide/en/elasticsearch/reference/2.3/cat-health.html
(2)  https://www.elastic.co/guide/en/elasticsearch/reference/2.3/cat-nodes.html
(3) https://www.elastic.co/guide/en/elasticsearch/reference/2.3/cat-indices.html
(4)  https://www.elastic.co/guide/en/elasticsearch/reference/2.3/cat-allocation.html
(5)  https://www.elastic.co/guide/en/elasticsearch/reference/2.3/cat-shards.html

Related tutorials

Related components


  • No labels