This repository was archived by the owner on Feb 11, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash -ue
2
2
set -eu
3
3
4
- # # HOW TO USE THIS SCRIPT
5
- # # download onto any Prod VPN connected machine
6
- # # set the $cluster_url variable to a url like "http://your-elasticsearch-host:9200" (specifiy port and put http at the front)
7
- # # run with `bash es_diagnostic.sh`
8
- # # optionally: update the old_snapshot_name and new_snapshot_name variables from the output
9
- # # run again, or ideally (on a large monitor) use `watch -n1 bash es_diagnostic.sh`
10
-
11
4
cluster_url=" ${cluster_url:- http:// localhost: 9200} "
12
5
13
6
# # CONFIGURE SCRIPT HERE
14
- old_snapshot_name=" pelias-2016.11.04-000804"
15
- new_snapshot_name=" pelias-2016.10.21-185509"
7
+ index_name=" pelias"
16
8
17
9
# # show basic index information
18
10
echo -e " INDICES"
19
11
curl -s " $cluster_url /_cat/indices/?pretty=1&v" | (for i in $( seq 1) ; do read -r; printf " %s\n" " $REPLY " ; done ; sort -nk2)
20
12
21
13
# Shows counts of queries for each index
22
- # echo -e "\n$old_snapshot_name queries"
23
- # curl -s "$cluster_url/$old_snapshot_name/_stats?pretty=1&v" | grep query_total | head -1
24
- # echo -e "\n$new_snapshot_name queries"
25
- # curl -s "$cluster_url/$new_snapshot_name/_stats?pretty=1&v" | grep query_total | head -1
14
+ echo -e " \n$index_name queries"
15
+ curl -s " $cluster_url /$index_name /_stats?pretty=1&v" | grep query_total | head -1
26
16
27
17
# # Show information about each node, including master and router nodes
28
18
echo -e " \nNODES"
You can’t perform that action at this time.
0 commit comments