1. Get all Current index configurations
Curl-xget http://localhost:9200/_settings
2. Get the configuration of some index
Curl-xget http://localhost:9200/test-*/_settings
3. Dynamically modify some index configurations to increase replica
Curl-xput http://localhost:9200/test-*/_settings-d ' {"Replicas": 1} '
4. Dynamically modify some index configuration, delete replica
Curl-xput http://localhost:9200/test-*/_settings-d ' {"Replicas": 0} '
Measured new replica speed quickly, CPU accounted for is not high, far below the re-index data, basically close to the speed of remote copy files. After replica, logstash or ES will have cluster load balancing, such as Replica 1, basic primary and replica CPU account balance, performance of ES overall consumption of more than 20%CPU, disk space consumption 1 time times.
Elasticsearch dynamically modify replica configuration, additions and deletions replica