“indices.memory.index_buffer_size”: “20%”
 }}’
curl -XPOST ‘127.0.0.1:9200/_cluster/settings’ -d '{
 “transient” :
 {
 “index.search.slowlog.threshold.query.warn”: “10s”,
 “”: “5s”,
 “index.search.slowlog.threshold.query.debug”: “2s”,
 “index.search.slowlog.threshold.query.trace”: “500ms”,
 “index.search.slowlog.threshold.fetch.warn”: “1s”,
 “”: “800ms”,
 “index.search.slowlog.threshold.fetch.debug”: “500ms”,
 “index.search.slowlog.threshold.fetch.trace”: “200ms”
 }}’
–节点下线时,把所有后缀为 -2的从集群中排除
curl -XPUT http://127.0.0.1:9200/_cluster/settings
 { “transient” :
 {“cluster.routing.allocation.enable” : “all”, “cluster.routing.allocation.exclude._name”:“.*-2”}
 }curl -XPUT ip:9200/_cluster/settings -d
 ‘{
 “transient”: {
 “logger.discover”: “DEBUG”
 }
 “persistent”: {
 “discovery.zen.minimum_master_nodes”: 2
 }
 }’—批量指定节点下线
curl -XPUT 127.0.0.1:9200/_cluster/settings -d '{
 “transient”: {
 “cluster.routing.allocation.exclude._name”: “atest11-2,atest12-2,anatest13-2,antest14-2”
 }}’
curl -XPUT 127.0.0.1:9200/_cluster/settings -d '{
 “transient”: {
 “cluster.routing.allocation.exclude._name”: “test_aa73_2,test_aa73”
 }}’
curl -XPUT 127.0.0.1:9200/_cluster/settings -d '{
 “transient”: {
 “cluster.routing.allocation.exclude._name”: “”
 }}’
curl -XPUT 127.0.0.1:9200/_cluster/settings -d '{
 “transient”: {
 “cluster.routing.allocation.cluster_concurrent_rebalance”: 10
 }}’
curl -XPUT 127.0.0.1:9200/_cluster/settings -d '{
 “transient”: {
 “indices.store.throttle.type”: “none”,
 “index.store.type”: “niofs”,
 “index.cache.field.type”: “soft”,
 “indices.store.throttle.max_bytes_per_sec”: “500mb”,
 “index.translog.flush_threshold_size”: “600MB”,
 “threadpool.flush.type”: “fixed”,
 “threadpool.flush.size”: 32,
 “threadpool.flush.queue_size”: 1000
 }}’
curl -XPUT 127.0.0.1:9200/_cluster/settings -d '{
 “transient”: {
 “index.indexing.slowlog.level”: “warn”
 }}’
curl -XGET 127.0.0.1:9200/_cluster/health?level=shards
curl -XGET 127.0.0.1:9200/_cluster/settings?pretty
curl -XGET 127.0.0.1:9200/_cluster/pending_tasks?pretty
curl -XGET 127.0.0.1:9200/_cat/aliases
curl -XGET 127.0.0.1:9200/_cat/plugins
curl -XGET 127.0.0.1:9200/_cat/nodes
/_cat/allocation
 /_cat/shards
 /_cat/shards/{index}
 /_cat/master
 /_cat/nodes
 /_cat/indices
 /_cat/indices/{index}
 /_cat/segments
 /_cat/segments/{index}
 /_cat/count
 /_cat/count/{index}
 /_cat/recovery
 /_cat/recovery/{index}
 /_cat/health
 /_cat/pending_tasks
 /_cat/aliases
 /_cat/aliases/{alias}
 /_cat/thread_pool
 /_cat/plugins
 /_cat/fielddata
 /_cat/fielddata/{fields}shard的移动
 curl -XPOST ‘localhost:9200/_cluster/reroute’ -d ‘{
 “commands” : [ {
 “move” :
 {
 “index” : “test_aa_20160529”, “shard” : 4,
 “from_node” : “node1”, “to_node” : “node2”
 }
 },
 {
 “allocate” : {
 “index” : “test”, “shard” : 1, “node” : “node3”
 }
 }
 ]
 }’curl -XPUT 127.0.0.1:9200/_cluster/settings -d ’
 {
 “transient”: {
 “logger.indices.recovery”: “DEBUG”
 }
 }’curl -XPUT 127.0.0.1:9200/_cluster/settings -d ’
 {
 “transient”: {
 “cluster.routing.allocation.node_initial_primaries_recoveries”: “100”
 }
 }’curl -XPOST ‘127.0.0.1:9200/_cluster/settings’ -d '{
 “transient” :
 {
 “indices.memory.index_buffer_size”: “20%”
 }}’
curl -XPOST ‘127.0.0.1:9200/_cluster/settings’ -d '{
 “transient” :
 {
 “index.indexing.slowlog.level” : “info”
 }}’