Hello Elastic Search experts,
Is there an API to configure replica number and refresh interval? And also buffer % for indexing? Thanks.
thanks in advance,
Lin
Hello Elastic Search experts,
Is there an API to configure replica number and refresh interval? And also buffer % for indexing? Thanks.
thanks in advance,
Lin
For configuring the number of replicas see this:
See the following example for refresh_interval:
https://www.elastic.co/guide/en/elasticsearch/guide/current/near-real-time.html#CO36-2
indices.memory.index_buffer_size controls the buffer % for indexing:
https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-indices.html#buffer
However I don't recommend changing this and leaving the default (10%) as its usually a sane default. You can read the following blog which is a bit dated but has some useful information:
Thanks Mike!
Awesome answer. Have a good day.
regards,
Lin
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.