Choosing the Qdrant shard number

How to set shard_number for a self-hosted Qdrant collection so it spreads across your nodes and grows without a resharding project, and where the overhead and per-user collection costs come from.

On this page

Choosing the Qdrant shard number before the first collection exists

Pick a shard_number that is a multiple of your planned node count and leaves room for growth, because a self-hosted cluster cannot change the shard count of an existing collection in place. For a three-node production cluster, a count such as 6 or 12 keeps shards divisible across nodes today and when you add nodes later, as long as the multiple you choose still divides evenly into the node count you expect to reach. Make this decision before the collection is created and before any data is loaded, because the value is fixed at creation time and changing it later means building a new collection and copying data across.

A shard is a partition of a collection. Qdrant splits each collection into shards and places them across the nodes in the cluster, while Raft consensus manages the cluster topology and the collection structure, so every node agrees on which shards exist and where they live. A replication factor then keeps extra copies of each shard on other nodes. The shard count therefore sets how evenly data and search work can spread across the cluster. Too few shards leave some nodes idle or overloaded, and too many add per-shard overhead that matters most on small clusters. Ask your team to confirm the expected node count for the next two years, the replication factor, and the data volume per shard before you fix the number.

Confirm the decision with a short test before production. Create a throwaway collection on the same cluster topology, load a representative sample, and check how points and shard placement are distributed across nodes. Record the shard count in your runbook next to the collection name, since the value is hard to recover from later. Teams that expect many collections, such as one per customer, should size the shard count per collection with that multiplication in mind, because the total number of shards across the cluster grows with every collection.

Shard count options and when each fits

This table compares shard count options that are multiples of the node count, from one shard per node to a 12-shard starting point. Read each row against your node count, expected growth and tolerance for overhead on a small cluster. The main takeaway is that the shard count is fixed for a self-hosted collection, so the option you choose should cover the node count you expect in two or three years.

OptionWhat it suitsOverhead and trade-offConfirm before choosing
One shard per nodeA cluster that will stay at its current node count and has a small, predictable datasetLeast spread of work per node, but adding nodes later forces a new collection with more shardsWhether node count is fixed for the planned life of the collection
Several shards per nodeClusters expecting to add nodes over time while keeping shards evenly spreadMore shards means more per-shard overhead, which is noticeable on small clustersThe node count at which you expect to scale and whether shards can move evenly at each step
12 shards as a starting pointClusters of 2, 3, 4 or 6 nodes that want headroom for later growth without reshardingEach node holds more shards than it needs at launch, adding some memory and file overhead on a three-node clusterThat 12 divides evenly by the node counts you plan to reach, and that the Qdrant docs still recommend a multiple of the node count
Shard count equal to the node count after large growthTeams that already know their final node countTies the layout to one node count, so any later change needs a new collectionThe final node count and the date the cluster reaches it
Per-user or per-tenant collectionsDesigns that create one collection per customer or teamEach collection carries its own shards, so shard counts multiply across the cluster quicklyWhether tenants can share one collection with payload partitioning or shard keys instead
Disk headroom for a new collectionAny plan that will later move to a higher shard count by copying dataA second copy of the data is needed while both collections existFree disk space needed for the migration and whether snapshots can run on your storage

Where shard planning goes wrong as the cluster grows

Most shard count mistakes show up months after the first deployment, when the cluster needs a new node or the team adds a tenant. Each pitfall below changes the operator's next decision, so check the count against the growth plan before the first collection is created.

Matching today's node count

Setting shard_number equal to the current node count leaves no room to spread shards onto a fourth or fifth node later. Every shard then sits on a fixed node, and adding capacity means moving shards by hand or planning a new collection. Before creating the collection, write down the node count you expect in the next one or two years and choose a shard count that divides cleanly across that number. Ask whether your planned growth would require a second collection.

Assuming new nodes receive shards

A node that joins the cluster does not take over existing shards automatically. Until you move shards onto it, it adds disk and CPU that the cluster does not use for this collection. Your next decision is whether to move shards by hand with the right transfer method, and who on the team owns that step during a scale-out. Include the manual move in your runbook and test it on a staging cluster before production growth.

Too many shards on a small cluster

Each shard is a separate unit with its own index and optimizer work, so a high count on two or three nodes adds overhead without adding capacity. Small clusters can slow down under this load while still holding little data. Ask whether the shard count matches the data volume and node count you run today, not only the count you might need in five years. If the count is high for your size, plan the trade-off explicitly rather than accepting it by default.

Uneven distribution across nodes

When the shard count is not a multiple of the node count, some nodes hold one more shard than others. The heavier nodes then carry more disk, memory and query work, and they set the performance ceiling for the whole cluster. Check the shard layout after each change, especially after a node is added or removed. Choose a shard count that is a multiple of the node count you plan to run, and confirm the distribution in the cluster status view before you accept it.

Distributed deployment docs

Planning shards for each user

Creating a collection per user or per customer multiplies shard counts across the whole deployment, because each collection carries its own shards and replicas. The overhead grows with every tenant, not with the data they store. Your decision is whether tenants belong in one collection with payload partitioning or shard keys, or in separate collections with their own counts. Ask the design team to estimate total shard count across all tenants before approving the model.

Why per-user collections multiply shard counts

Every Qdrant collection carries its own shard_number, so a design that creates one collection per user or tenant multiplies the shard count across the whole cluster. A collection with 12 shards on a three-node cluster is already 12 shard units that each need storage, indexing work, and replica placement. Ten thousand such collections means 120,000 shard units before any replicas are counted. Each shard also holds its own index structures and optimizer state, so the fixed cost of a small collection is paid again for every collection, even when the collection holds only a few points. The shard count you chose for one collection is therefore not a local decision. It sets the load each node carries once the total collection count grows.

The practical question is when a per-tenant design stops being the right shape. Shard-key routing with sharding_method set to custom, or payload partitioning with a tenant field and a payload index, keeps one collection and places tenants inside it, so the shard count is set once for the whole workload. Evaluate those options before the collection count reaches a level that strains your nodes. The exact threshold depends on your collection count, vector size, point counts per tenant, replication factor, and node memory and disk, so it cannot be read from a general rule. Measure per-node memory use, open file handles, and collection load time with a realistic number of collections on hardware that matches your production nodes. Ask your vendor or the Qdrant documentation for current guidance on collection limits for your version before you commit to the design. The Qdrant distributed deployment documentation is the natural next read for how shards and replicas are placed.

How to set shard_number on a new self-hosted collection

This sequence takes a self-hosted Qdrant cluster from a confirmed node count to a collection whose shard_number fits the expected growth, with placement and balance checked before real data arrives.

  1. Confirm the node count and production baseline

    The platform or Qdrant owner confirms how many nodes the cluster will run in production and whether the design follows the documented baseline of at least three nodes for production clusters, so quorum can survive a node failure. Record the node count, the Qdrant version on every node, and the replication factor you plan to use. If the cluster has fewer nodes, stop here and decide whether to add nodes first, because the shard count should be chosen against the node count you will actually run. Done when the node list and version are written down and every node reports the same minor version in its cluster status.

  2. Estimate data volume and growth

    The data owner estimates the number of vectors, the vector dimensions, the payload size and the growth rate over the planning horizon, then uses the Qdrant sizing and performance guidance to convert those figures into RAM and disk per node. Shard count is a planning decision that is expensive to change later on self-hosted clusters, so this estimate should cover the volume you expect in the next few years, not only launch day. Ask the vendor or your solution architect to confirm the memory and disk formulas for your vector size and index settings. Done when you have a per-node storage figure that fits your hardware and a written growth assumption the team agrees on.

  3. Choose a shard count that is a multiple of the node count

    The architect selects a shard_number that is a multiple of the node count so shards divide evenly across peers, and adds headroom so each node can later hold more shards when nodes are added. The common starting point in the planning guidance is 12 shards, which divides evenly across three, four and six nodes. Check that the chosen number gives each node a reasonable number of shards at your planned node count, and record the reasoning, including what happens if you add nodes later. Done when the chosen shard_number, the per-node shard count and the growth reasoning are in the design record and signed off by the owner.

  4. Create the collection with shard_number and replication factor

    An operator creates the collection through the REST or gRPC API with the agreed shard_number and replication_factor, and the request is made against a node that is part of the cluster. Qdrant keeps the shard count fixed for the life of the collection on self-hosted clusters, so the values in the request must match the design record exactly. Keep the request body in version control with the rest of the infrastructure configuration. Done when the collection creation call returns success and the collection info response shows the expected shard count and replication factor.

  5. Verify shard placement across peers

    The operator reads the cluster information and the collection's cluster details to confirm which peer holds each shard and each replica. Shards should spread across all nodes, with the number of local shards on each peer matching the expected share from the design. Confirm the replicas sit on different nodes from their primaries so a single node loss does not remove every copy. If any node holds no shards or holds an uneven share, record the placement and resolve it before loading data, since moving shards later is manual on self-hosted clusters. Done when the placement output shows an even spread and no shard has all copies on one peer.

  6. Load a test batch and check balance

    The team loads a representative test batch of points through the same client path the application will use, then checks the points count per shard and per node, along with memory and disk use on each peer. Points should be distributed close to evenly across shards, and no node should show disproportionate growth. Run a few search queries during the load to confirm results and latency are in line with expectations. Remove the test data or keep it in a separate collection once the check passes. Done when the per-shard counts are close to even, the per-node resource use matches the sizing estimate, and the test results are recorded in the design record.

How shards, replicas and nodes fit together

The diagram starts with one collection, which Qdrant splits into shards spread across three nodes. Each shard has a second copy placed on a different node, because the replication factor of 2 doubles the storage each shard uses. A separate Raft layer holds the cluster topology and collection structure, so every node agrees on where shards live. Check two inputs before you pick a shard number: the node count, which sets how shards divide evenly, and the storage multiplier, which sets how much disk each copy costs.

Shards, replicas and the Raft layer across a three-node cluster, with the two decision inputs.

Operational considerations that shape the shard choice

A shard count is cheap to set at creation and expensive to change later on self-hosted clusters. The four considerations below are the operational costs that follow from that choice, and each one should be checked before the first collection is created.

Disk headroom before any change

Changing shard count on a self-hosted cluster means building a new collection and copying data into it, so the old and new copies exist side by side for a while. Plan free disk for the full collection before you start, not just the current data size. Also confirm that your snapshot storage has room, since snapshots are another full copy. Ask your team to measure the collection size on a representative node before setting a budget for this work.

Snapshots docs

Protect the API from day one

A self-deployed Qdrant instance listens on all network interfaces and has no authentication configured by default. Every node you add to a cluster widens that exposure, so set an admin API key and a read-only key, or JWT-based access, before any node receives traffic. Keep the peer port inside the cluster network and confirm that no node is reachable from untrusted networks. Test the setup with an unauthenticated request before go-live.

Security docs

Manual rebalancing when nodes join

A node added to a self-hosted cluster does not receive shards automatically, so the shard layout stays uneven until someone moves shards by hand. Each move is an operator task with its own verification and rollback steps, and it repeats every time the cluster grows. The shard count you choose sets how many moves that work involves. Ask whether your team has a runbook for moving shards, and who is on call for it.

Distributed deployment docs

Per-node shard balance monitoring

A shard count that divides evenly across nodes can still drift out of balance after failures, restarts or manual moves. Track how many shards and replicas each node holds, and alert when one node carries noticeably more data or traffic than its peers. Uneven nodes hit disk and memory limits first, which can stop writes on that node. Add per-node metrics to your monitoring stack, and confirm the dashboards show shard placement, not just cluster totals.

Questions teams ask before setting the shard count

What does choosing a shard count cost, and what drives the effort?

The planning work itself is modest, but the cost of getting it wrong is high because the count is fixed at collection creation on self-hosted clusters. Effort is driven by the node count you plan to run, the data volume you expect to store, how many collections you will create, and who operates the cluster afterward. More nodes, larger datasets and many collections (for example, one per customer) each add sizing and testing work. Ask any partner for a written quote that lists the node inventory review, the sizing model, the test plan for a reshard path, and the handover of runbooks. Recurring costs are the infrastructure you run and the staff time to operate it, not the choice of number itself.

How long does shard planning take in a self-hosted environment?

Duration depends on how much of the environment is already documented and how many decisions are open. A team with a defined node inventory, a known data volume and a single collection can settle the count in a short working session. Air-gapped networks, Kubernetes platforms that need storage review, or multiple tenant models take longer because each adds constraints to test. Ask for a timeline tied to the written scope, and confirm which inputs you must supply before the clock starts. Any date should come from the agreed plan rather than a general estimate.

What must our team provide before shard planning starts?

Plan to supply three inputs: a node inventory (how many Qdrant nodes you will run, their CPU, memory and disk, and their failure domains), a data estimate (expected vector count, vector dimensions, payload size and growth over time), and access to the cluster or a staging environment where the count can be tested. You should also share the collection layout you expect, including whether you plan one collection per tenant, and any constraints from your platform team, such as storage class rules. Without these inputs, the count is a guess, so ask the provider to confirm each one in writing.

Can an in-house engineer set the shard count without outside help?

Yes, if the engineer understands the Qdrant distributed model and can run tests in a staging cluster. The official distributed deployment documentation explains that collections are split into shards across nodes, that a shard count should be a multiple of the node count, and that Raft consensus manages cluster topology. A capable engineer can work from those rules, load representative data, and measure disk and memory use. Outside help is most useful for reviewing the decision against production constraints, checking the rollback path, and documenting the result so the next engineer can follow it.

How do we change the shard count on a self-hosted cluster later?

Resharding is a Qdrant Cloud capability, so self-hosted teams change the count by creating a new collection with the target shard number, copying the data, and switching an alias so the application reads from the new collection. The copy can use the Qdrant Migration Tool or collection snapshots. Snapshots can only be restored to clusters running the same minor version or the next minor version, so check versions before you start. Plan disk headroom for both collections during the copy, and rehearse the alias switch and rollback in staging. Confirm these steps against the current Qdrant documentation before you commit to a date.

What should a quote for shard planning include?

A quote should follow directly from a written scope and list each deliverable. Ask for the inputs the provider needs from you, the sizing and shard-count recommendation with its assumptions, the test plan in a staging cluster, the reshard and alias-switch runbook, and the handover items. It should also state what is excluded, such as production changes, data migration or ongoing support, and who performs each step. DeployOpen does not publish a price list, and its engagements are typically fixed-scope with scope, deliverables and timelines agreed in writing before work starts, so compare quotes on those written items rather than on headline figures.

How DeployOpen plans Qdrant shard layouts

DeployOpen plans the shard count for each self-hosted Qdrant collection in writing before any cluster is built, so the layout fits the nodes you run, the growth you expect and the tenancy model you choose. The work runs inside your own infrastructure and ends with a handover your team can operate and review.

How we scope

  • The written scope lists each collection, expected point counts, node count and planned growth for shard number planning.
  • We record whether tenants will get their own collections, since per-user collections multiply shard counts across the cluster.
  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.

How we build

  • We set shard_number as a multiple of the planned node count and document the shards per node for each collection.
  • We test the layout on a cluster that matches your topology, including the overhead it adds on small clusters.
  • We confirm storage needs on block-level SSD or NVMe volumes, since network file systems and object storage are not supported.

How we hand over

  • You receive the shard plan, the collection creation settings and the reasoning behind each shard count.
  • We document the steps your team would follow to change shard count later, including building a new collection and switching an alias.
  • We walk your platform and security teams through the layout so they can review it against their own standards.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after the handover is complete.
  • We can review the shard layout again when node counts change, tenants are added or collection sizes grow.
  • Retainer scope is agreed in writing, so you know which reviews and changes are covered before they are needed.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.