Qdrant multitenancy with payload partitioning: when one collection serves many tenants
Payload partitioning is the right default when a platform team serves many customers or teams from one Qdrant deployment and each tenant's data is small enough to share collections. Each vector point carries a tenant identifier in its payload, and every query and write filters on that field. This keeps the number of collections fixed no matter how many tenants you onboard, which is the main reason it scales better than creating a collection per customer. Qdrant is licensed under Apache-2.0 and the engine is free to self-host, so the decision rests on architecture and operations, not on licensing cost.
The pattern depends on the tenant field being declared as a tenant index. In Qdrant this is a payload index of type keyword with is_tenant: true, applied to a field such as tenant_id. The flag tells Qdrant to group the storage of points by tenant so that filtered searches for one tenant touch only that tenant's data, which keeps latency predictable as the number of tenants grows. Create the index before loading large volumes, and confirm the exact index parameters against the Qdrant security documentation and the current API reference for your client version, since index behavior is version-dependent.
Be clear about what this isolation is. It is logical, not physical: all tenants share the same collection, shards, memory and disks, and a single misconfigured query or missing filter can expose another tenant's vectors. Qdrant does not enforce the tenant filter for you on its own, so your API layer must inject the tenant condition on every request and never accept a client-supplied filter that replaces it. Confirm with your security team whether logical separation meets your data classification and contractual commitments before you commit to this design.
Which multitenancy pattern fits your tenant mix
Payload partitioning keeps every tenant in one collection and marks each point with a tenant field, such as a tenant_id value in the payload. Queries carry a filter on that field, so one set of indexes and one set of segments serve all tenants. This design fits large numbers of tenants that are similar in size and have no contractual need for separate storage. Routing stays simple because your API layer adds the tenant filter to every request, and placement stays simple because the whole collection shares the same nodes.
- Routing: every upsert and query goes to the same collection, and the tenant filter is the only thing separating tenants.
- Placement: all tenants share the same shards, so one large tenant can add load to neighbors on the same nodes.
- Deletion: removing a tenant means deleting points by filter, which is slower than dropping a collection and leaves optimizer work behind.
- Isolation: the boundary is enforced by your application code, not by the database, unless you add per-collection access controls.
- Operations: one collection to back up, upgrade and monitor, with the tenant field indexed as a keyword tenant index.
Confirm with your Qdrant client version how the tenant index is declared and how filtered deletes behave under your load before you rely on this pattern for offboarding.
Tiered multitenancy combines a shared fallback shard for small tenants with dedicated shards for large ones. Small tenants share the default layout, while a tenant that outgrows it is moved onto its own shard. This suits a tenant mix with a long tail of small accounts and a few heavy accounts whose traffic or data volume would otherwise affect everyone. The design changes routing, because the query layer must know which shard a tenant lives on, and it changes placement, because dedicated shards can be spread across nodes.
- Routing: the application keeps a tenant-to-shard map and sends each request to the shard that holds that tenant.
- Placement: large tenants can be placed on separate nodes, which limits noisy-neighbor effects for them.
- Promotion: moving a tenant to a dedicated shard is a planned data move, so it needs a maintenance window and a verified copy.
- Deletion: a small tenant still uses delete-by-filter on the shared shard, while a dedicated tenant can be removed with its shard.
- Limits: shard counts and node fit constrain how many dedicated shards a cluster can hold.
Confirm the Qdrant version you need for this pattern and the shard limits for your node count before you design the tenant map. The sibling topic on tiered multitenancy covers the routing and promotion steps in detail.
Shard-per-tenant uses Qdrant user-defined sharding so that each tenant, or a small set of large tenants, maps to its own shard key. Routing is explicit: upserts and queries include the shard key, so data for one tenant stays on its assigned shards. This gives you control over where a large tenant's data sits on the cluster. The trade-off is that shard counts grow with tenant count, so the pattern suits a handful of large tenants rather than thousands of small ones.
- Routing: each request names the shard key, so the API layer must map every tenant to a key correctly.
- Placement: you can pin shards for large tenants to specific nodes and manage their replicas separately.
- Deletion: removing a tenant can drop its shard, which is cleaner than deleting points by filter.
- Scale: every additional shard adds cluster overhead, which is why the design does not scale to thousands of tenants.
- Isolation: data separation is stronger than payload filters, but access control still depends on your API layer or JWT scoping.
Ask your Qdrant administrator to confirm the shard count your cluster can hold for the number of tenants you expect. The sibling topic on shard-per-tenant designs with custom shard keys covers placement and routing details.
Collection-per-tenant gives each tenant its own Qdrant collection. This is the strongest logical separation Qdrant offers within one cluster, and it makes per-tenant access control, encryption decisions and deletion straightforward. The cost is overhead: each collection carries its own indexes, segments, configuration and operational tasks, so the pattern is usually justified only for a small number of tenants with strict isolation, encryption or erasure requirements. Routing is the simplest of the four, since the collection name identifies the tenant.
- Routing: the collection name identifies the tenant, so the application only needs a name mapping.
- Deletion: dropping a collection removes the tenant's vectors and payloads in one operation.
- Access: per-collection JWT permissions can restrict a tenant's credentials to its own collection.
- Overhead: memory, shard and operational costs grow with each collection, which makes this a poor default for many tenants.
- Backups: each tenant's collection is snapshotted separately, which affects backup schedules and restore planning.
Before choosing this pattern, confirm the per-collection overhead for your Qdrant version and your expected tenant count with your team. The sibling topic on collection per tenant covers when the approach is justified.
How to set up payload partitioning in Qdrant
This sequence takes an empty Qdrant deployment to a collection where every point carries a tenant value, the tenant field is indexed as a tenant key, and a filtered query provably returns only one tenant's data. Run it in a non-production environment first so you can check each result before it reaches customer data.
Confirm the deployment is secured before creating data
Before any collection exists, confirm that the Qdrant instance is not reachable without authentication. The security documentation states that self-deployed instances listen on all network interfaces and have no authentication configured by default, so set an admin API key, restrict network exposure and enable TLS first. Your platform engineer does this, and the check is a request without a key that returns an authentication error.
Create the collection with vector settings
Create one shared collection with the vector size and distance metric that match your embedding model. Your ML or search engineer chooses these values, and the vector size must equal the output dimension of the model you use. The check is that the collection info endpoint reports the expected vector size and distance, and that the point count is zero.
Add a tenant keyword field to every point
Decide the name of the tenant field, for example a single keyword field such as tenant_id, and make it mandatory in your ingestion code. Every point written to the collection must carry this field with a stable, opaque identifier for the tenant rather than a display name that can change. Your application team owns this rule, and the check is a code review or test that rejects an upsert without the field.
Create the keyword payload index with is_tenant set
Create a payload index on the tenant field with the keyword type and the is_tenant flag set to true. This tells Qdrant to organize storage around tenants so that filtered searches on one tenant stay efficient as the number of tenants grows. Verify the result by listing the collection's payload indexes and confirming that the tenant field appears as a keyword index with the tenant flag.
Write test points for at least two tenants
Upsert a small, labeled test set with at least two tenants, using vectors that you can tell apart, such as points that share a topic within one tenant. Include the tenant field on every point and keep the total small enough to inspect by hand. The check is that the point count matches what you wrote and that each point's payload shows exactly one tenant value.
Verify that filtered queries return only one tenant
Run similarity queries with a filter on the tenant field for each test tenant, and compare the returned point IDs and payloads against your labeled set. Every result should carry the requested tenant value, and no point from another tenant should appear, even when the other tenant's points are closer in vector space. Repeat this check with an unfiltered query to confirm the filter is what isolates the data.
Record the result as a repeatable test
Turn the checks into an automated test that runs against every environment before release, covering the index, the required field and cross-tenant leakage. Your engineering team owns the test, and it is done when a failing isolation check blocks the deployment pipeline. Note that this test confirms the filter works; enforcement in the API layer and the use of JWT access controls are separate controls that the rest of this page covers.
HNSW and index settings for partitioned data
This table compares the index settings that change how a partitioned Qdrant collection behaves, from the tenant flag on the keyword index to graph construction and storage placement. Read each row as a decision to confirm against the Qdrant docs for your version, since exact parameter names and defaults can change between releases. The main takeaway is that the tenant index and the graph layout should be chosen together, before the collection holds production data.
| Setting | What it controls | Trade-off to weigh | Confirm before choosing |
|---|---|---|---|
| is_tenant on the keyword index | Marks the tenant payload field so Qdrant can organize data around each tenant and speed up tenant-scoped filters | Suits a high-cardinality tenant key; a poor fit for fields that are not tenant boundaries | Exact flag name and the index type it requires in your version |
| Global HNSW graph | One graph covers all tenants, and filters are applied during search | Simple to operate; tenant-filtered queries depend on filter selectivity and index quality | Whether global graph is the default and how filtered search is tuned |
| Per-tenant HNSW graph layout | Builds graph structure around tenant groups so tenant queries touch less of the index | Better isolation of query work; more configuration to validate and test under load | Whether your version exposes per-tenant graph options and their settings |
| Keyword indexes on other filter fields | Speeds up filters such as region, document type or status used alongside the tenant key | Each index adds memory and write cost; index only fields your queries filter on | Supported index types for each field type and how indexes are created |
| Vectors and payload on disk | Moves vector data or payload storage off RAM to disk | Lower memory use, with slower reads on cold data and more sensitivity to SSD or NVMe speed | Which storage options apply to vectors, payload and index in your version |
| Vectors and index in memory | Keeps vector data and index structures in RAM for fast search | Fastest queries; memory grows with total tenant data, not only active tenants | Memory sizing for your expected vector count and tenant count |
How a tenant request flows through the API layer to Qdrant
The request starts at the client, which presents a credential to your API layer. That layer resolves the tenant from the authenticated identity and adds the tenant filter to every Qdrant search, upsert and delete before the call leaves your trust boundary. Qdrant then searches one shared collection, and its audit log and access controls record the authenticated operation. Check that no code path reaches Qdrant without the filter, because Qdrant enforces only what the credential allows, not which tenant's points a request may touch.
Tenant filter is applied in your code before any request reaches the shared Qdrant collection.
Where tenant isolation can fail
In a shared Qdrant collection, isolation is a property of your application and your deployment, not of the database alone. The risks below cover where a tenant boundary can break and which documented Qdrant control closes each gap. Check each one before any tenant data is loaded.
Missing or wrong tenant filter
Payload partitioning only isolates tenants if every search, scroll, update and delete carries the tenant condition. A single query path that omits the filter, or builds it from a client-supplied value without checking it against the authenticated user, returns another tenant's vectors and payloads. Check that the API layer derives the tenant ID from the verified session, applies the filter on every Qdrant call, and has tests that try cross-tenant IDs on each endpoint.
Unauthenticated self-hosted instances
The Qdrant security docs state that self-deployed instances are not secure by default: they listen on all network interfaces and have no authentication configured. An instance reachable from a shared network without an API key exposes every tenant to anyone who can reach the port. Before go-live, configure an API key, restrict the listening interface and network path, and confirm that a request without a key is rejected on both REST and gRPC.
Qdrant security docsJWT rules that stop at the collection
Qdrant JWT access control grants read or write permissions per collection, which is a coarse boundary when all tenants share one collection. A token scoped to the shared collection can read every tenant's points, so the tenant boundary still depends on the filter your API applies. Use JWT to separate services and admin roles from application traffic, and confirm with your own tests which operations a restricted token can still perform.
- JWT access control
- v1.9.0
Snapshots holding every tenant
A collection snapshot is a tar archive of the whole collection on one node, so it contains every tenant's vectors and payloads in one file. Restoring a snapshot for one customer means restoring the shared data, and a backup copy stored in S3-compatible storage becomes a single high-value target. Decide who may create, download and restore snapshots, encrypt the storage location, and document how a tenant's data is removed from backups that outlive a deletion request.
- S3 snapshot storage
- v1.10.0
Audit logs that prove access
When a customer or auditor asks who read a tenant's data, the answer must come from logs the database produced, not from memory of the application. JSON audit logging of authenticated API operations was added in v1.17.0, so confirm that your deployed version records the calls you need, including the API key or token identity. Route the logs to storage your security team controls, and test that a sample tenant lookup can be traced from the log entry back to the request.
Qdrant security docsHow to delete one tenant by filter without touching the rest
Deleting one tenant is a filtered bulk delete, and its scope is only as safe as the filter. In a payload-partitioned collection, offboarding a customer means deleting every point whose tenant field, such as tenant_id, equals that customer's value. Qdrant's point deletion accepts a filter, so the same is_tenant keyword index used for search also narrows the delete. Before running it, confirm that the tenant value is an exact, unique identifier that your API layer controls, and that no other tenant can share it through a typo, an empty string or a missing value. A filter with a null or unset tenant field can match more points than intended. Run a dry count with the same filter first, and compare the count against what your own records say the tenant holds.
This is a bulk operation, so test it on a copy before it touches production. Restore a recent snapshot or a copy of the collection into a non-production cluster, run the filtered delete with the exact request your offboarding job will send, and then check that the remaining tenants return the same point counts and sample query results as before. Confirm the behavior of your deployment's version against the Qdrant snapshots documentation and record the request, the count before and after, and who approved it. Delete operations also trigger background optimization on the collection, so measure how long the run takes and how query latency behaves while it finishes.
Deletion in the live collection does not remove data from existing snapshots or backups. Any snapshot or volume backup taken before the delete still holds the tenant's vectors and payloads, and restoring it would bring that data back. Your offboarding runbook should state how long those backups are retained, who can restore them, and how restored copies are handled if a tenant is later re-added or a restore is needed for another reason. Ask legal or privacy owners to confirm that this retention matches the customer's erasure terms, and document that check as your own decision. A successful filtered delete is evidence of an operation, not a compliance outcome, so record the runbook steps, the filter used, the counts and the backup policy together, and let your auditors or counsel decide whether that meets the contract.
Limits to confirm before you commit to one collection
Payload partitioning puts every tenant in one collection, so the shared limits of that collection become your limits. The cards below are the checks to run in your own environment before you commit, because the answers depend on your tenant count, query patterns and hardware.
Total tenant count and active-tenant memory
Confirm how many tenants the collection must hold and how many are active at peak, since the memory needed to serve queries follows the active set more than the total. Ask Qdrant and your partner to model RAM against your real vector counts, quantization choice and payload index settings. Do not extrapolate from a small pilot without checking how many tenants it actually covered.
Qdrant installation docsNoisy-neighbor query load
One tenant running heavy searches or bulk uploads shares CPU, memory and optimizer time with every other tenant in the collection. Decide which per-tenant rate limits and queueing your API layer enforces, and load test a skewed workload where one tenant produces most of the traffic. Measure p95 latency for the small tenants during that test.
Shard and replica layout on three nodes
Your collection is split into shards and copied by a replication factor, so every tenant's points sit in the same layout. Confirm the shard count is a multiple of the node count, the replication factor you need to survive one node failure, and how storage roughly doubles at a factor of 2. Test a node stop during a write load and confirm the cluster keeps serving.
- Recommended minimum nodes
- 3
Block-level SSD or NVMe storage
Qdrant needs block-level storage with a POSIX-compatible file system, and it cannot run on network file systems or object storage. Confirm that every node in your design, including any cloud volume type, meets this requirement before you size the cluster. Ask your infrastructure team to verify the disk class and its write performance under indexing load.
Storage requirementsRestoring one tenant from snapshots
Collection snapshots restore the whole collection, not a single tenant, so a per-tenant restore needs a tested procedure. Confirm how you would export one tenant's points, rebuild its data into a target cluster, and verify it against the tenant filter. Also confirm that the target runs the same minor version or the next one, as snapshot restores require.
Snapshots docsQuestions teams ask about payload partitioning
What does a payload partitioning project cost, and what drives the price?
The open-source Qdrant engine has no license fee for self-hosting, so the cost is the work and the infrastructure. The engagement is paid for design, build, testing and handover, and the cost moves with the number of tenant-aware APIs, the volume and shape of your payloads, the number of environments, and how many systems must consume the tenant filter. Infrastructure is separate: you pay for the nodes, block storage and backups in your own cloud or data center, and that bill recurs. Ask for a quote built from a written scope that lists each component, its deliverable and what is one-time versus recurring.
Is the open-source Qdrant engine free to use?
Yes, the Qdrant engine is open source under the Apache-2.0 license and is free to self-host. What costs money is everything around it: servers or Kubernetes capacity, block storage on SSD or NVMe, backups, monitoring, and staff time. Qdrant Cloud and the Hybrid and Private Cloud offerings are separate paid products with their own pricing from Qdrant. Confirm with your legal team what the Apache-2.0 license allows for your planned use, and check the Qdrant pricing page before assuming any paid feature is required for payload partitioning.
How long does a payload partitioning pilot usually take?
Duration depends on how much of the application already assumes one collection per customer, how many services query Qdrant, and how clean your tenant identifiers are. A pilot usually covers one collection, a tenant field with its keyword index, search and upsert paths behind your API layer, and a tested tenant delete. The main timeline drivers are the number of query paths to change, whether historical data must be re-indexed, and how quickly your team can agree on tenant identifiers and the authorization model. Ask for a timeline in the written scope with a named milestone for each of these items.
What do we need from our own team to run this work?
Plan for access and decisions more than hours. You need someone who owns the application's tenant model, an engineer who can change the API layer so every search, upsert and delete carries the tenant filter, and an infrastructure owner who can provision nodes, block storage and network rules. Security and compliance staff should review the authentication setup, because a default self-hosted instance has no authentication configured. You will also need a test dataset that reflects real tenant sizes and a sign-off owner for the tenant deletion procedure.
Can our internal team build payload partitioning without outside help?
Yes, a team with strong Qdrant and API experience can build it alone, and many do. The areas where internal teams most often need support are HNSW and payload index settings for partitioned data, a verified tenant-filter enforcement pattern in the API layer, and a repeatable tenant deletion process that is tested before go-live. Also consider whether the same engineers can keep up with Qdrant upgrades and cluster operations. A partner is most useful when you need a fixed-scope delivery with written deliverables, a tested result and a handover document your team can run.
Why does a tenant filter in the API layer matter for security?
Payload partitioning puts many tenants in one collection, so the tenant filter is the boundary between them. If any code path omits the filter, one tenant can read another tenant's vectors and payloads. Qdrant JWT access control works per collection, so it cannot by itself separate tenants inside a shared collection. Your API layer should always add the tenant condition from the authenticated identity, and tests should try cross-tenant queries on every endpoint. Review this design with your security team before the first production tenant is loaded.
When should we move a large tenant to its own dedicated design?
Move a tenant when its size, performance needs or isolation requirements no longer fit the shared collection. Common triggers are a contractual requirement for separate data, a need to delete or encrypt that tenant's data independently, or a volume that dominates the shared index and slows other tenants. Dedicated designs include a shard per tenant with custom shard keys or a collection per tenant, each with its own memory and operational overhead. Set the trigger thresholds in writing before launch, and test the migration path with a real tenant so the move does not become an emergency.
How many nodes should a production payload partitioning cluster start with?
The Qdrant distributed deployment documentation recommends at least three nodes for production clusters so quorum survives a node failure. A replication factor of 2 doubles storage, so storage sizing must account for every copy of every shard. Shard count should be a multiple of the node count. Confirm these settings against your own availability target and data volume, and ask your infrastructure owner to validate block storage performance, because Qdrant cannot run on NFS or S3-style object storage.
How DeployOpen scopes and delivers tenant partitioning
DeployOpen agrees the scope of a payload partitioning build in writing before any work starts. For this pattern, the written scope normally covers four parts: the tenant model (how a tenant is identified, which payload field carries the tenant key, and how tenants are created, suspended and deleted), the API-layer filter design (which service adds the tenant condition to every query, upsert and delete, and how that code path is tested), security testing of the tenant boundary, and the handover documentation. Because a shared collection cannot be split by JWT permissions alone, the scope should state clearly which controls live in the API layer and which live in Qdrant, including the is_tenant keyword index on the tenant field and the admin and JWT settings described in the security documentation.
DeployOpen deploys and configures the platform inside your own infrastructure, whether that is your cloud accounts, data centers or an air-gapped network, so tenant data and the Qdrant cluster stay under your control. Before the build, confirm with your team which storage class, node count and replication factor you will run, since these change how the partitioned collection is laid out and how it is restored. The written scope should also name who approves changes to the tenant filter, because a single missing condition in one service is the most common path to cross-tenant reads.
Handover documentation covers the tenant data model, the filter rules each service must apply, the runbooks for tenant onboarding and deletion by filter, the test cases used to verify tenant isolation, and the settings a future engineer must not change without a retest. Ongoing support, upgrades and continuous testing of the tenant boundary are available as a DeployOpen retainer, which suits teams that add tenants or Qdrant releases after the first build. Ask for the written scope, the deliverables list and the retest terms in any proposal, and confirm how each item maps to your own environment before you sign.

