Elasticsearch dynamically modify replica configuration, additions and deletions replica

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.