When a Qdrant shard per tenant fits a Qdrant multitenancy design
A Qdrant shard per tenant fits when a few large customers or teams share one cluster and need their vectors physically separated, but the number of tenants stays small enough that each one can own shards. In that case, user-defined sharding is the right tool. It lets you assign each tenant's points to a named shard key, so upserts and queries for that tenant land on its own shards instead of being mixed with everyone else's. Qdrant's distributed deployment docs describe this as a way to control where data lives within a collection, and the open-source engine that provides it is licensed under Apache-2.0 and free to self-host.
The three common multitenancy designs differ in where isolation happens. With payload partitioning, all tenants share the same shards and a tenant field with a keyword index separates them at query time, so isolation depends on your API layer always applying the filter. With a collection per tenant, each tenant gets its own collection, which gives the strongest separation and the most operational overhead. A shard per tenant sits between them: tenants share one collection's configuration, but a tenant's data sits on shards you can place and reason about. Before you commit, confirm with your Qdrant version and Qdrant distributed deployment docs how shard keys are created, how many shards each key uses, and whether your client SDK routes requests by key.
The design stops scaling well before you reach thousands of tenants. Every shard key adds shards, shards consume memory and file handles on the nodes that host them, and the number of shards you can run is bounded by your cluster size and replication factor. Ask your architect to map each planned tenant to shard count, replicas and node placement, and to run a load test with your largest tenant before you accept the layout. If the tenant count is expected to grow into the hundreds or thousands, plan for payload partitioning or a tiered design from the start.
Sharding options for isolating large tenants
This table compares four ways to separate tenants in Qdrant across isolation, placement, routing and access effort, and the tenant count each one suits. Read the last column first: custom shard keys fit a handful of large tenants, while payload partitioning and tiered designs are the options for thousands of smaller ones.
| Option | Isolation and placement | Routing and access effort | Tenant count fit |
|---|---|---|---|
| Shard per tenant (custom shard keys) | Each tenant gets its own shards, placed on chosen nodes. Each copy follows the replication factor, which doubles storage at a factor of 2. | Every upsert and query must send the shard key. JWT permissions stop at collection level, not shard level. | A handful of large tenants. Each tenant adds shards and placement to manage, so it does not suit thousands. |
| Payload partitioning | Logical separation only: one shared collection with a tenant field filtered on every query. | The API layer must apply the tenant filter on every request. JWT cannot restrict tenants inside the collection. | Thousands of small tenants. This is the default pattern for many tenants in one deployment. |
| Tiered multitenancy | Large tenants get dedicated shards, and small tenants share a fallback shard. | Routing and promoting a tenant between shards must be designed and tested. Confirm the supported version in the Qdrant docs. | A mixed population: a few large tenants plus a long tail of small ones. |
| Collection per tenant | Each tenant has its own collection, so access, snapshots and deletion can be handled per tenant. | Per-collection JWT and snapshots map cleanly to tenants. Each collection adds its own structure to the cluster. | Tens of tenants with strong isolation needs. A poor default at thousands. |
How to set up custom shard keys on a Qdrant cluster
This sequence builds a distributed Qdrant cluster with custom sharding, gives each large tenant its own shard key, and confirms that data for each tenant lands on the intended nodes and stays isolated at query time.
Confirm a production-capable topology
Before creating anything, confirm the cluster runs in distributed mode on at least three nodes so quorum survives a node failure, and choose a shard count that is a multiple of the node count. The platform team owns this decision, and DeployOpen can review it as part of the design. Done means you have a written node list, a chosen shard count, and a storage check confirming each node uses block storage with a POSIX-compatible file system, not NFS or object storage. The Qdrant distributed deployment documentation sets these requirements, so check the current version of that page before you build.
Create the collection with custom sharding enabled
Create the collection with custom sharding turned on, which tells Qdrant that you, not the default hash, will decide which shard receives each point. Set the vector size, distance metric, and replication factor in the same request, since the replication factor determines how many copies of each shard exist and roughly how much storage you need. Done means the collection info response shows custom sharding enabled, the expected vector configuration, and the replication factor you planned. Confirm the exact request format against the Qdrant version you run.
Create one shard key per large tenant
Create a shard key for each large tenant you want isolated, and assign each key to specific nodes when you need explicit placement. Keep the list short: this pattern is for a handful of large tenants, and every key adds shards that the cluster must manage. Record which key belongs to which tenant in your API layer's configuration. Done means the collection lists every planned key, each with its shards on the nodes you assigned, and the mapping from tenant ID to shard key is stored where your application reads it.
Route upserts by shard key
Update the ingestion path so every upsert sends the shard key for the tenant that owns the points. Reject writes that arrive without a known tenant key rather than letting them fall into a default location. Run a test batch for two tenants with distinct test vectors, then count the points each key holds. Done means each test batch appears only under its own shard key and the counts match what you sent, with no points in an unexpected key.
Route queries by shard key
Send every query with the shard key of the requesting tenant, so Qdrant searches only that tenant's shards. Keep the tenant key derived from the authenticated session, not from a client-supplied field. Done means a query for tenant A returns only tenant A's test points, and a query against a key with no data returns nothing. Also test an empty or missing key, which should fail rather than search all shards.
Verify placement on the intended nodes
Check the cluster info endpoint to confirm each shard for each key sits on the node you assigned, and that shards are distributed across the cluster rather than concentrated on one node. Note any imbalance, because uneven placement is the most common reason a large tenant slows down a shared node. Done means you have a saved snapshot of the cluster layout showing every shard location, and every location matches the placement plan.
Verify replica health and cross-tenant isolation
Confirm every replica reports an active state, and test a node restart or stop in a non-production cluster to see whether queries still succeed for each tenant. Then run a final isolation test: query each tenant's key with vectors from other tenants and confirm no foreign IDs appear in results. Done means all replicas are active, queries survive the controlled node failure, and the isolation test returns only the expected tenant's points for every key.
Placing tenant shards on nodes and sizing each one
Each dedicated tenant shard consumes memory, disk and replica capacity on specific nodes, so placement and sizing are decided together. The cards below cover the parallel decisions that determine whether a shard-per-tenant layout fits your hardware and stays available when a node fails.
Shard placement across nodes
Each custom shard key maps to shards that Qdrant places on cluster nodes, so a large tenant's shards can concentrate load on a few machines. Check how many shards each tenant gets, how many nodes the cluster has, and whether the shard count is a multiple of the node count so that load spreads evenly. Record the placement plan per tenant before loading production data.
- Recommended minimum nodes
- 3
Replica placement for quorum
Replicas of a tenant's shard should sit on different nodes so that quorum survives the loss of one machine. With fewer than three nodes, a single failure can take a tenant's data offline or leave it without a majority. Confirm which nodes hold each replica and test a node stop against a staging copy of your largest tenant.
- Nodes for quorum
- 3
Memory and disk per large tenant
Memory and disk needs scale with each large tenant's vector count, vector dimensions, payload size and index settings, and the sum is multiplied by the replication factor. Measure one representative tenant with its real embeddings and payloads, then extrapolate across shards. Ask your Qdrant contact or review the sizing guidance for your own figures rather than relying on a generic estimate.
Installation docsBlock storage requirement
Qdrant needs block-level storage with a POSIX-compatible file system and cannot run on NFS or S3-style object storage. SSD or NVMe drives are recommended for each node that holds tenant shards. Confirm that your Kubernetes storage class, virtual disks or data center volumes meet this rule before any tenant is migrated, because a network file system will not be fixed by tuning.
Storage requirementsReplication factor and storage
The replication factor sets how many copies of each shard the cluster keeps, and a factor of 2 doubles the storage needed for that data. A large tenant on a higher factor can exhaust disks sooner than expected. Budget storage per tenant after replication, and keep headroom on each node for snapshots and optimizer work during growth.
- Storage at factor 2
- 2x
Manual rebalancing on self-hosted clusters
Self-hosted clusters that use the community Helm chart do not get automatic shard rebalancing, so adding nodes or moving a growing tenant may require manual shard moves. Plan who runs those steps, how long they take in your environment, and what happens to queries during a move. Confirm the procedure against the version you run, and decide whether an enterprise operator path is needed.
Compare deployment pathsWhy custom shard keys do not scale to thousands of tenants
Custom shard keys stop scaling because every tenant that gets its own shard adds a unit the cluster must place, replicate, monitor and back up. The topology grows with the tenant count, not with the data volume. A cluster that holds a handful of large tenants on dedicated shards is manageable. The same design applied to thousands of tenants turns shard placement, rebalancing, health checks and recovery planning into work that grows with every customer you sign. Qdrant's distributed mode uses Raft consensus to manage cluster topology and collection structure, so each additional shard is part of the state the cluster coordinates, and the shard count becomes a capacity question long before storage is full.
Small tenants suffer most from this model. A shard that holds a few thousand vectors still carries the same placement, replication and operational footprint as a shard built for a large tenant, so the overhead per customer is high relative to the value that tenant contributes. The replication factor multiplies this further, because the docs note that a factor of 2 doubles storage. Before you commit to a per-tenant shard design, ask your Qdrant contact or check the current distributed deployment documentation for the shard and node limits that apply to your version, and count your real tenant distribution, including how many tenants will stay small for years.
The two patterns that exist for this reason are payload partitioning, where tenants share a collection and are separated by a tenant field with an indexed filter, and tiered multitenancy, where small tenants share a fallback shard and large tenants move to dedicated shards. Choosing between them is a decision about your tenant mix, isolation requirements and growth rate, not only about Qdrant features. The sibling pages on those patterns and on sizing for thousands of tenants cover the trade-offs in detail. Treat the custom shard key design as the right tool for a small set of large, isolated tenants, and plan the migration path to a tiered or partitioned design before the shard count reaches the level your cluster can operate comfortably.
Security controls for shard-level tenant isolation
A shard per tenant changes where a tenant's vectors live, not who can read them. The controls below sit around the cluster: authentication, transport encryption, scoped tokens, network exposure and audit records. Each one closes a gap that shard placement leaves open.
Default exposure of self-deployed Qdrant
A self-deployed Qdrant instance listens on all network interfaces and has no authentication configured by default. Any host that can reach the port can create, read and delete collections, including the shard that holds a large tenant's data. Before any tenant data is loaded, confirm that authentication is enabled, the API is bound only to the addresses your services use, and the ports are closed at the network boundary.
Qdrant security docsAdmin and read-only API keys
Qdrant supports an admin key and a read-only key, which separates the credential your deployment tooling uses to change collections from the one your query services use to search. Keep the admin key out of application configuration and out of routine services. Rotate both keys through your secrets manager, and record which service holds each one so a leaked key can be traced to its owner.
TLS for REST and gRPC
Qdrant supports TLS for both REST and gRPC endpoints, so API keys and tenant payloads are not sent in clear text between your services and the database. Apply TLS to client traffic and, where your design requires it, between cluster nodes. Confirm that every client SDK in your stack is configured to verify the server certificate rather than skipping verification in test setups that later reach production.
JWT per-collection permissions
JWT-based access control lets you issue tokens that grant read or write permission on named collections. This works well when each tenant or service has its own collection. Inside a shared collection, however, a token cannot restrict access to one tenant's points, because the permission applies to the whole collection. For shard-per-tenant designs, the tenant boundary is enforced by which shard a query targets, so the token scope and the shard key must be designed and tested together.
Shard placement is not access control
Routing a tenant to its own shard keeps its data physically separate and helps with placement and performance, but it does not stop a caller with collection access from querying another tenant's shard key. The application layer must still derive the shard key from the authenticated identity, reject requests that name another tenant's key, and log the decision. Test this with requests that deliberately use a foreign shard key.
JSON audit logging
Since v1.17.0, Qdrant writes JSON audit logs of authenticated API operations. Use them to answer which key or token performed an upsert, query or delete, and against which collection. Ship these logs to a store your security team controls, set a retention period that matches your policy, and test that a deletion for one tenant appears in the trail with the caller identity attached.
Questions buyers ask about shard-per-tenant Qdrant
What drives the cost of a shard-per-tenant Qdrant build?
The cost depends mostly on how many tenants get a dedicated shard, how much data each one holds, and how many nodes the cluster needs to place those shards and keep replicas. Qdrant's open-source engine is free to self-host under Apache-2.0, so the spend is in infrastructure (nodes with block storage, memory and backups), in the people who design and operate the cluster, and in the work to build routing and access controls in your application. Ask a quote to separate one-time items (design, routing code, migration, hardening, initial load testing) from recurring items (infrastructure, upgrades, on-call, retesting after changes).
How long does it take to implement shard-per-tenant routing?
Timelines depend on how many tenants will get dedicated shards, how much existing data must be migrated, whether the cluster is new, and how mature your deployment and monitoring pipelines are. A written scope should set the duration after it lists the deliverables: cluster build, shard-key design, upsert and query routing, access controls, backups and load tests. No duration is given here because none is supplied for this design; ask any partner for a phased plan with the milestones that gate each step.
What does the client team need to provide for this work?
You need a named owner for the data model, someone who can run Kubernetes or your chosen host, and an application engineer who will own the tenant-routing layer. Security and compliance staff should review network exposure, key handling and audit logging early, because a self-deployed Qdrant instance is not secure by default: it listens on all network interfaces and has no authentication configured. Expect to supply the tenant list with expected sizes, storage locations that meet Qdrant's block-storage requirement, and access to your identity provider if you want SSO-linked administration.
Can an internal team build a shard-per-tenant Qdrant deployment alone?
A capable platform team can build it alone if it has time to test distributed behavior before production. The hard parts are not the API calls but the operating model: a distributed cluster needs at least three nodes for production so quorum survives a node failure, shard counts should be a multiple of the node count, and placement must be checked as tenants grow. Qdrant's enterprise Kubernetes operator includes features that the community Helm chart lacks, such as zero-downtime upgrades and automatic shard rebalancing, so check which path you use before you commit to a manual procedure.
What does the open-source engine cost compared with Qdrant Cloud?
The open-source engine is free to self-host under the Apache-2.0 license, so you pay for compute, storage, networking and staff. Qdrant Cloud has a free single-node tier with 0.5 vCPU, 1 GB RAM and 4 GB disk, a usage-priced Standard tier with a 99.5% uptime SLA, and a Premium tier with a minimum spend that adds SSO, private VPC links and a 99.9% uptime SLA, according to Qdrant's pricing page. Those figures are the published ones. Compare them with your own infrastructure and staffing cost, and check whether the cloud tiers support the shard placement and data location your tenants require.
How is Hybrid Cloud and Private Cloud pricing set?
Qdrant Hybrid Cloud runs managed clusters on your own infrastructure, and Qdrant Private Cloud is a dedicated, fully isolated enterprise deployment. Both are priced through Qdrant sales rather than a public list, so the quote follows the scope you give them. Ask for the node count, storage class, support level, upgrade handling, and which features (such as the enterprise operator) are included, and ask which costs recur annually or monthly versus which are one-time onboarding.
When should a tenant design move to tiered or collection-per-tenant?
Move to a tiered design when a few large tenants need dedicated shards but most tenants are small and can share a fallback shard, which Qdrant supports in version 1.16 and later. Consider a separate collection per tenant only when isolation, encryption or deletion rules require it, because each collection adds shard, memory and operational overhead. Shard-per-tenant does not scale to thousands of tenants, so when the tenant count grows past what your nodes can place, plan the tiered or sizing work before the cluster becomes hard to change.
How tenant requests reach their shard
A request starts in the client application and passes through the tenant API layer, which attaches the shard key and the tenant filter before anything reaches Qdrant. The trust boundary sits between that API layer and the Qdrant cluster, so the API layer is where tenant identity is enforced and where the API key or JWT is presented to the database. Inside the cluster, Qdrant routes each request to the shard for its key on the node that holds it, and replicas on other nodes serve the same shard. Check that every hand-off carries the key, that the Qdrant credential is scoped correctly, and that no path reaches the cluster without the API layer.
Tenant request path from client to the shard that holds its data.
How DeployOpen scopes and delivers Qdrant tenant isolation
DeployOpen approaches a Qdrant shard per tenant with custom shard keys as a scoped piece of work: we first confirm which tenants genuinely need dedicated shards and which belong in a shared design. We then build, test and document the routing, placement and access controls inside infrastructure you control.
How we scope
- Confirm which tenants justify dedicated shards and which stay in a shared collection
- Record the shard key scheme, the expected tenant count and how upserts and queries route by key
- Agree in writing the node count, replication factor and storage placement for the cluster
- Define who calls Qdrant directly and how the API layer enforces tenant boundaries
How we build
- Deploy a multi-node Qdrant cluster with the storage and filesystem rules from the official docs
- Create custom-sharded collections and wire upserts and queries to the shard key in your services
- Enable API keys, TLS and per-collection JWT access before any tenant data is loaded
- Test cross-tenant reads, placement after node failure and resharding steps against the written plan
How we hand over
- Deliver architecture notes covering shard keys, placement, replication and the limits we found
- Provide runbooks for adding tenants, snapshots, restores and version-matched upgrades
- Document access rules, audit log settings and the evidence your compliance team can review
- Walk your platform and security teams through the cluster and record open decisions
How we support
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing first
- Ongoing support, upgrades and continuous testing are available as a retainer
- Retesting of tenant isolation can follow changes to shard layout or access settings
- Ask for a written quote that lists each deliverable, the environment it runs in and who operates it

