-
Notifications
You must be signed in to change notification settings - Fork 24.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Write Consistency Level for index/delete/delete_by_query/bulk with one/quorum/all. Defaults to quorum. #444
Comments
Write Consistency Level for index/delete/delete_by_query/bulk with one/quorum/all. Defaults to quorum, closed by 5d1d927. |
What happens if a quorum isn't available - will the write hang or throw an error? |
It will wait for the provided timeout parameter for the expected consistency level to be met, and if its not, it will bail with an exception. |
Hey, Not sure if this is completely on topic for this, but when a doc is indexed, it can never fail on one replica and succeed on another, correct? I ask, because I have been and still am seeing minor consistency issues when I test bringing nodes up and down on latest master. Thanks! |
Err... nevermind about the second part... Everything has stayed consistent on 0.13-SNAPSHOT. |
No, its just for writes, it basically allows to control for a write to succeed only if a specific number of shards to be available. |
…e/quorum/all. Defaults to quorum, closes elastic#444.
bump es release version
When performing a "write" operation, allow to control if it can be performed only when
one
shard is active, aquorum
of shards are active (within a replication group), orall
.This can be controlled per API call (REST parameter is
consistency
and can be set toone
,quorum
, orall
. It defaults to a node level setting ofaction.write_consistency
which in turn defaults toquorum
. This basically means that the default isquorum
.What does this means? Basically, in a 1 shard with 2 replicas, there will have to be at least 2 shards active (
quorum
) within the cluster for the operation to be performed.In a 1 shard with 1 replica, at least 1 shard will need to be active (in this case
quorum
andone
is the same).The text was updated successfully, but these errors were encountered: