1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
| curl -XGET 'http://local:9200/_cat'
curl -XGET 'http://local:9200/_cat/health?v'
_cat/nodes?v&h=ip,heap.percent,ram.percent,cpu,load_1m,load_5m,load_15m,node.role,master,name,disk.used_percent
http://<yourhost>:9200/_cluster/health/?level=shards
curl -XPUT 'http://local:9200/peer-tran-log-2016-01-21/_settings' -d '{"number_of_replicas":1}'
curl -XGET 'http://localhost:9200/_nodes';
curl -XGET 127.0.0.1:9200/_cat/indices
curl -XGET 'http://local:9200/_cat/thread_pool?v'
curl -XGET 'http:/local:9200/_cat/shards?v'
curl -XGET 'http:/local:9200/_cat/indices?v'
curl -XGET 'http:/local:9200/_cat/recovery?v'
GET _cluster/settings
time curl -XPOST 'http://local:9200/tranjrnl-01000000-2016-10-31/_forcemerge?max_num_segments=1'
curl -XPOST 'http://local:9200/_forcemerge?only_expunge_deletes=true' ;
curl -XGET 'http://local:9200/_cat/indices?v&health=yellow' | wc -l
curl -XPUT 'http://local:9200/_cluster/settings' -H 'Content-Type: application/json' -d ' { "persistent" : { "cluster.routing.allocation.enable" : "primaries" } }'
curl -XPUT 'http://local:9200/_cluster/settings' -H 'Content-Type: application/json' -d ' { "persistent" : { "cluster.routing.allocation.enable" : "none" } }'
|