Choosing a Qdrant write consistency factor and read consistency for a replicated cluster
If you run a replicated self-hosted Qdrant cluster, a lost write or a search result that changes between identical requests is a real operational problem, and two settings decide how much of it you accept. The write consistency factor (write_consistency_factor) sets how many replicas of a shard must confirm a write before Qdrant reports success. Read consistency sets how many replicas must answer a search before Qdrant returns results, and it can be all, majority, quorum, or a specific number of nodes. Both default to 1. At the default, a write is acknowledged once one replica holds it, and a read may be served by a single replica that has not yet received the latest update. Teams raise these values when a write that was acknowledged must survive the loss of a node, or when users notice results that appear and disappear between requests.
The trade-off is latency and availability against safety. Each higher write factor makes every write wait for more replicas, so write latency grows and a write fails when too few replicas are reachable. Each higher read level means more replicas are queried and compared, which costs time on every search. Lower values keep the cluster responsive during a node failure but accept a window in which a confirmed write is missing from a read. Before changing either value, confirm your replication factor, since the write factor can be raised only up to that count, and test how writes and searches behave with one node stopped. Also confirm whether your client SDK exposes these settings per request or only per collection, because that determines whether you can apply stricter reads to a few critical queries instead of the whole workload.
If the stricter setting is still not enough for a user-facing search, read affinity is the next option to evaluate. Available from Qdrant v1.19.0, the X-Qdrant-Route-Affinity header pins a client's reads to one replica on a best-effort basis, which keeps a single user from seeing results jump between replicas that hold slightly different data. It does not guarantee the same answer across replicas, so it complements rather than replaces the consistency settings. Document which collections use which values, test a deliberately lagging replica, and confirm the exact behavior for your client in the Qdrant consistency guarantees documentation before you commit to a design.
How the write consistency factor decides when a write is confirmed
The write consistency factor sets how many replicas must apply a write before the client receives success. Each card below covers one part of that decision, from the default and its ceiling to what clients see when replicas are unavailable.
The default factor of one
The write_consistency_factor defaults to 1, so a write is acknowledged once a single replica of the target shard has applied it. That keeps latency low but means a node failure right after acknowledgment can leave the newest data on only one copy. Check the default on each collection you create, because it is not changed for you when a cluster grows. Decide per collection whether a single-copy acknowledgment is acceptable for that data.
The ceiling at the replica count
The factor can be raised only up to the replication factor of the collection. A collection with a replication factor of 2 can require at most two replicas to confirm a write, and a higher value is not accepted. Because the ceiling follows the replica count, a factor that works today can become unreachable if the replication factor is lowered. Confirm both values together when you review a collection's settings.
Waiting for more replicas
A higher factor makes the cluster hold the client's response until the required number of replicas has applied the write. Each extra replica adds a round trip that the client waits on, so write latency rises with the factor. In exchange, a confirmed write exists on more copies before a node can fail. Measure write latency at your expected batch sizes before you pick a value for a production collection.
When replicas are down
If fewer replicas are available than the factor requires, the write is not confirmed, and the client receives an error instead of success. The client must retry or queue the write, and it should not assume the data was stored. Confirm with your client SDK how it reports this failure, and whether its retry logic can resubmit the same points without creating conflicting duplicates.
Choosing a factor per collection
Set the factor on each collection based on what a lost write would cost, not on a single cluster-wide rule. A catalog of rebuildable embeddings may accept the default, while records that feed user-visible decisions may justify a higher factor. The trade-off is availability: a higher factor means writes stop sooner during a node outage. Document the chosen value with the reason, so reviewers can test the failure behavior against it.
Read consistency values and when each fits
This table compares the read consistency values Qdrant defines: all, majority, quorum, a specific number of nodes, and the default of 1. Read each row as a trade between response latency and the risk of stale or disagreeing results, then match it to how much disagreement your workload can tolerate. Choose the lowest level that keeps your results consistent enough for the use case.
| Read consistency value | Latency cost | Staleness or disagreement risk removed | Workload where it fits |
|---|---|---|---|
| 1 (default) | Lowest, one replica answers | Removes almost none; the answer may come from a replica that missed recent writes | Search where slightly stale or briefly inconsistent results are acceptable |
| A specific number of nodes | Grows with the number chosen, since more replicas are queried | Lets you choose a set size between 1 and the replica count | Balancing a known freshness need against response time without majority overhead |
| Majority | Moderate, queries a majority of replicas and waits for them | Removes most disagreement from a single lagging replica | Catalogs and recommendations where freshness matters more than the lowest latency |
| Quorum | Moderate, similar to majority in replica count terms | Requires agreement from a quorum of replicas before answering | Workloads that need agreement on the same data across replicas, confirmed against the docs |
| All | Highest, every replica must answer before the result returns | Removes all replica disagreement at query time | Low-volume reads where correctness outweighs latency; a single unavailable replica can slow or block reads |
| Read affinity (header-based) | Low, pins reads to one replica on a best-effort basis | Stops result flicker between calls, not replica staleness | Interactive sessions where the same user should see stable ordering across requests |
What happens when replicas disagree on a point
A default read of 1 can return a stale version of a point. With read consistency set to 1, Qdrant answers from a single replica of each shard. If the most recent write reached only some replicas, because the write consistency factor was left at its default of 1 or because a replica was briefly unavailable during the write, the replica chosen for the read may still hold the older version. The client receives a valid response with no error, which makes this failure easy to miss in testing. Two different reads of the same point can return different results, and the difference can persist until the replicas converge.
Reads that query several replicas handle the disagreement differently, and the setting you choose determines which version wins. With majority or quorum, Qdrant asks more than one replica and returns the answer that the required number of replicas agree on, so a single replica holding an old version cannot decide the result alone. Read consistency values are set per request, so the choice can differ between a search that tolerates staleness and a lookup that must reflect the latest write. Confirm the exact resolution rules for your Qdrant version in the consistency guarantees documentation before you rely on them.
Test this behavior in your own cluster rather than assume it. Write a point with the write consistency factor you plan to use, stop one replica or simulate a partial write where your environment allows it, then read the same point repeatedly with each read consistency value and record which versions come back. Run the same check after a node restart to see how long divergence lasts. Put the results in your runbook so application teams know which reads can tolerate a stale version and which must use a stronger setting.
How a write and a read move through replicas under consistency settings
A write starts at the client, reaches the node that owns the shard, and fans out to the replicas of that shard. The write consistency factor decides how many replicas must confirm before the write is acknowledged, so the diagram's gate sits between the replica confirmations and the client's response. A read follows the read consistency setting, which decides how many replicas are queried and how their answers are combined. The branch for X-Qdrant-Route-Affinity shows a read pinned to one replica on a best-effort basis. Check the factor and read setting against the replica count before go-live.
Write acknowledgement and read paths across shard replicas.
Setting and verifying consistency values in a cluster
This sequence sets the write and read consistency values for a replicated Qdrant collection, enables read affinity where clients need stable results, and confirms with a stopped node that writes and reads behave as intended. The output is a tested configuration your team can explain to auditors and on-call engineers.
Confirm the replica count for each collection
Before changing any consistency value, check how many replicas each collection has. Query the collection info through the REST API or the Web UI and record the replication factor for every collection that will receive writes. The write consistency factor can only be raised up to the replica count, so this number sets the ceiling for every later step. Done is a written list of collections with their replica counts, reviewed by the team that owns the data. Note that replication factor is set at collection creation, so a collection with a factor of 1 needs a different fix than the settings described here.
Set the write consistency factor
Set write_consistency_factor for each collection, keeping the value at or below the replica count from the previous step. The default is 1, which acknowledges a write once one replica confirms it. Raising the value makes writes wait for more replicas, which costs latency and reduces availability when replicas are down. Confirm the parameter name, placement (collection creation, collection update, or configuration) and the required API call against the documentation for your deployed version. Done is a collection info response that shows the new value on each collection.
Set read consistency in client calls
Choose the read consistency value your application needs: all, majority, quorum, a fixed number of nodes, or the default of 1. Majority and quorum read more replicas per query, which trades latency for a higher chance of returning the latest acknowledged data. Pass the value in the search, scroll or retrieve calls your application makes, or in the client configuration where the SDK supports it. Check the exact parameter for your client library version. Done is a test query from each application path that logs the consistency value it sends, so you can see that no path silently uses the default.
Enable read affinity for stable results
Enable read affinity only for clients that see results change between identical queries. Read affinity is available from Qdrant v1.19.0 and sends the X-Qdrant-Route-Affinity header so that a client's reads go to one replica. It works on a best-effort basis, so it reduces flicker but does not guarantee the same replica after a failover. Confirm that your load balancer and proxies pass the header through unchanged. Done is two repeated searches from the same client returning the same ordering while the cluster is healthy.
Record the expected behavior before the failure test
Write down what each collection should do when one node is stopped. For example, in an illustrative three-node cluster with a replica count of 2 and a write consistency factor of 2, a write may fail while one replica is down, while a read at default consistency still succeeds. Have the owner of the data sign off on which outcome is acceptable. Done is a short table of operation, consistency value, node state and expected result, which becomes the pass criteria for the next step.
Stop a node and test writes and reads
In a non-production copy of the cluster, stop one node and run the writes and reads from your expected-behavior table. Record the response for each call, including errors, timeouts and the number of replicas that acknowledged the write. Repeat the reads with majority or quorum settings and compare results against a write that was just acknowledged. Done is a test log where every row matches the expected result. Any mismatch means the configuration or the client path needs correction before production use.
Restore the node and confirm replica health
Start the stopped node, wait for it to rejoin, and check that every replica returns to an active state before closing the test. Compare point counts across replicas for a sample of writes made during the outage. If a replica disagrees, review the recovery steps for node failures before relying on the data. Done is a replica status check showing all shards active and matching counts, saved with the test log as evidence for your change record.
Security and operational considerations for consistency settings
Stronger consistency settings make each write and read depend on more healthy replicas, so the chosen values shape both data safety and availability. The cards below cover the security baseline to set first, the availability cost, monitoring, and the change record that keeps those values reviewable.
Secure the cluster before tuning
A self-deployed Qdrant instance listens on all network interfaces and has no authentication configured by default. Before you raise the write consistency factor or change read settings, confirm that API keys, TLS and network restrictions are in place on every node, so that consistency tuning does not sit on an open endpoint. Ask your team to verify the bind address and API key settings on each node, not only on the load balancer in front of them.
Qdrant security docsHigher settings raise outage exposure
A write that must reach more replicas can only succeed while that many replicas are healthy, so a higher write consistency factor trades availability for durability. Read settings such as majority or quorum behave the same way: when enough nodes are down, reads fail instead of returning possibly stale results. Document the number of nodes each setting requires and check whether your cluster can meet it during a planned node restart.
Alert on unmet write factors
Monitor replica health continuously and alert when a shard has fewer healthy replicas than your configured write consistency factor. Without that alert, writes may start failing or the cluster may run with reduced redundancy and nobody notices until a client reports errors. Pair the alert with dashboards for node and replica state so on-call engineers can see which shards are affected.
Test failure behavior before go-live
Run a planned node stop in a non-production cluster with your chosen values and record which writes and reads fail, how long clients wait, and whether retries succeed after recovery. Use the result to set client timeouts and retry rules. Illustrative example: a team with three nodes may find that a setting requiring all replicas blocks writes during any single restart, which is a decision to record before production use.
Record values for change control
Write down the write consistency factor, read consistency value, and any read affinity header used by each application, with the reason for each choice. Store the record in your change management system so that a later change to a collection or client is reviewed against the availability and audit impact. Auditors and security reviewers often ask for this kind of evidence, and the record also helps your team explain why a value was chosen.
Review client and access changes
Consistency values are often set in several places, including collection configuration, client SDK code and load balancer routing. Confirm who can change each one and how changes are logged. Qdrant's JSON audit logging of authenticated API operations, available since v1.17.0, can show who issued collection updates, which supports the review of consistency changes after the fact.
Questions teams ask before changing consistency settings
Are the default consistency settings safe for production Qdrant?
The defaults are a starting point, not a production design. Qdrant's write consistency factor defaults to 1 and read consistency defaults to 1, so a write can be acknowledged by a single replica and a read can be served by a single replica. That keeps latency low, but it means a replica that has not yet received a write can answer a read with stale data. Whether that is acceptable depends on how your application uses the results. Review the consistency guarantees documentation against your workload, then decide on the factor and read level for each collection instead of accepting the default across the board.
What does raising the write consistency factor cost in latency and availability?
Raising the factor makes each write wait for more replicas to confirm it, so write latency rises with the factor and the slowest confirming replica sets the pace. Availability falls at the same time: with a higher factor, writes fail when too few replicas are reachable, even though the cluster is still serving reads. The cost is driven by replica count, network distance between nodes, disk speed on each node, and how often nodes restart. Measure write latency and error rates at the factor you plan to use under realistic load before you commit to it, and ask your team to write down which failures writes should survive.
Does read affinity replace quorum reads?
No. Read affinity uses the X-Qdrant-Route-Affinity header to pin a client's reads to one replica, which helps stop results from flickering between replicas that hold slightly different data. It is available from Qdrant v1.19.0 and works on a best-effort basis, so it does not guarantee that a read reflects the latest write. A majority or quorum read level checks more than one replica and gives a stronger answer, at the cost of extra work per query. Many teams use affinity for user-facing consistency within a session and a stronger read level for workloads where stale answers cause real harm.
How much effort does it take to test failure scenarios?
Expect the effort to scale with the number of collections, replica layouts and failure cases you test, not with the size of the data alone. A useful test set covers a single node restart, a node that never returns, a network partition between nodes, and a write issued while a replica is down, followed by a read from each replica. Each case needs a scripted setup, a measured outcome and a repeatable cleanup. DeployOpen can plan and run this testing as part of a fixed-scope engagement, with the scope and timeline agreed in writing before work starts. Ask any provider to name the scenarios they will run and what evidence they will deliver.
What must our team provide before consistency testing starts?
Your team needs to provide access to a non-production cluster that matches the production topology as closely as possible, including node count, replica factor, network paths and storage type. Qdrant needs block storage with a POSIX-compatible file system, not NFS or S3, so confirm that the test environment uses the same class of disks. You should also provide the collection definitions, the client applications and their query patterns, the latency and error targets your business accepts, and a named owner who can approve failure injection and decide which results matter. Without these inputs, test results will describe a different system from the one you run.
Can our own team configure write and read consistency without outside help?
Yes, if your team already operates a Qdrant cluster and can run controlled failure tests. The settings themselves are a collection-level choice applied through the Qdrant API, so the change is small. The harder work is deciding the right values for each workload, proving the behavior under node loss and partitions, and wiring client retries and error handling so that a failed write is not silently lost. Many teams keep the configuration in their own hands and bring in a partner for the design review or the failure test plan. Confirm with your own engineers which parts they can own before you agree on scope.
How DeployOpen scopes consistency work
Consistency tuning is part of the cluster design, not a setting to change after go-live. DeployOpen treats the write_consistency_factor and the read consistency value for each collection as design decisions that follow from the workload, the replica count and the failure cases the client has to survive. The scope is agreed in writing before work starts, so the client knows which collections, which settings and which failure scenarios are covered, and what evidence will come out of the work.
In practice, the written scope lists the decisions to be made and the tests that prove them. For each collection, DeployOpen works with the client to record the chosen write consistency factor, the read consistency value, and whether read affinity through the X-Qdrant-Route-Affinity header is needed for user-facing results that must not flicker between replicas. The scope also names the planned failure scenarios, such as a node stopping during writes, a replica falling behind, and a node that never returns, along with the expected behavior for each. Client engineers and DeployOpen then run those scenarios on the client's own infrastructure and record what the cluster returned.
The client should confirm a few items before signing. Ask who on the client side owns the decision on acceptable write latency and on how many replicas may be unavailable before writes are refused. Confirm that the test environment matches the production node count and storage type, because results on a different topology do not transfer. Ask for the test results and the settings baseline to be delivered with the documentation, so operations staff can reproduce them later. Any follow-on support or retesting after a version upgrade is a separate written scope that DeployOpen quotes from the agreed work.
How DeployOpen designs and tests Qdrant consistency settings
DeployOpen treats the write consistency factor and read consistency as application-level decisions made together with your data owners, then checks them against your cluster before go-live. We set the values in writing, build them into a self-hosted Qdrant cluster in your infrastructure, and document how each setting behaves under node failure.
How we scope
- Engagements are fixed-scope, so the written scope names the write consistency factor and read consistency values you need.
- We record which operations must survive a node loss and which can tolerate stale or briefly unavailable reads.
- The scope lists the client SDK calls, collections and replica counts that the consistency settings will apply to.
How we build
- We configure the write consistency factor per collection, capped by the replica count your cluster is built with.
- We set read consistency per client path and test whether majority or quorum reads fit the latency budget you state.
- Where result flicker matters, we configure read affinity through the X-Qdrant-Route-Affinity header and confirm the behavior is best-effort.
How we hand over
- You receive a written consistency matrix mapping each workload to its write and read settings and the reason for each.
- The handover documents what happens when replicas disagree, how to read failure states, and which settings to revisit after a change.
- We walk your platform and application teams through the runbook so they can change settings through a controlled process.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer, so consistency settings can be rechecked as the cluster grows.
- We can retest failure scenarios after topology changes, such as adding nodes or changing replica counts.
- Support covers reviewing new workloads and recommending consistency values before they reach production.

