I want to understand the implications of drastically increasing ReplicaCount eg:0->5 on Indexing requests.
Since we have only 1 available copy, and the quorum has suddenly changed to 4 (n/2+1)
the indexing requests are bound to fail.
What are the suggested way to increase the replica count such that minimum indexing requests fail?
I keep seeing message of the following type when indexing during a scaleup:
! org.elasticsearch.action.UnavailableShardsException: [indexname][0] Not enough active copies to meet write consistency of [ALL] (have 1, needed Quorum). Timeout: [1m], request: index
! at
Which version of Elasticsearch are you using? If I recall correctly default write quorum kicks in once you reach 2 replicas, at least on older versions. If this is the case you may want to increase the replica count gradually.
I stand corrected Since you didn't mention you were using a very old version I assumed you were asking about something recent. This message comes from a version that is well past the end of its life.
The simplest answer is probably to set write consistency to 1.
The notion of write consistency was removed in 5.0.0 as it doesn't really do what you might expect. IMO the in-sync set mechanism was really the feature that made it unnecessary, although the 6.x series further strengthened the guarantees in this area thanks to sequence numbers.
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.