ESクラスタースライス及びレプリカ調整


スライスshards
ES          ,                ,                  . 
ES         ,                    

レプリカreplicas
                        ,Elasticsearch         replica。     index             ,
                    (primary shard),                    ,          ,
Elasticsearch           ,        。

スライスとコピーの原則を調整する
A:      ,           
B:    ,       

スライスとコピーの調整に関する一般的なコマンド
curl -H "Content-Type: application/json" -XPUT 'http://10.10.10.53:9200/test5/' -d'{"settings":{"number_of_shards":3,"number_of_replicas":0}}'
curl -H "Content-Type: application/json" -XPUT 'http://10.10.10.46:9200/blog' -d'{"settings": {"number_of_shards":3,"number_of_replicas":2}}';
curl -H "Content-Type: application/json" -XPUT 'http://10.10.10.53:9200/test4/_settings' -d'{"index":{"number_of_replicas":3}}'

クラスタnode情報の表示
curl -XGET http://10.10.10.46:9200/_cat/nodes?pretty

クラスタインデックスの表示
curl -XGET http://10.10.10.46:9200/_cat/indices?pretty