Qdrant Tenant Scaling

作者 qdrant6a03d0ce8f55无许可证收录于 2026年10月8日更新于 2026年10月8日

Guides Qdrant multi-tenant scaling. Use when someone asks 'how to scale tenants', 'one collection per tenant?', 'tenant isolation', 'dedicated shards', or reports tenant performance issues. Also use when multi-tenant workloads outgrow shared infrastructure.

仅含说明DevOps & Cloud
AI 生成的概览

指导 Qdrant 多租户扩展策略,涵盖负载分区、自定义分片和分层多租户。

功能
该技能为多租户 Qdrant 部署的扩展提供指导。它说明何时应使用带负载过滤的共享集合,何时应使用自定义分片或分层多租户,以及何时因合规要求才需要独立集合。它还列出了应避免的做法,例如每个租户一个集合,以及为多租户集合构建全局 HNSW。
适用场景
当有人询问如何扩展租户、是否应为每个租户使用一个集合、租户隔离或专用分片,或报告租户性能问题时使用。它也适用于多租户工作负载超出共享基础设施承载能力的情况。
运行要求
无需脚本或工具,仅为说明性内容。其中引用了外部 Qdrant 文档页面。

What to Do When Scaling Multi-Tenant Qdrant

Do not create one collection per tenant. Does not scale past a few hundred and wastes resources. One company hit the 1000 collection limit after a year of collection-per-repo and had to migrate to payload partitioning. Use a shared collection with a tenant key.

"Isolated" tenant queries — each tenant only ever sees its own data, with good performance — is the default outcome of payload filtering (is_tenant=true) in a single shared collection. It does not require separate collections. Separate collections only apply to the legal/compliance case, not as a way to get isolation.

Here is a short summary of the patterns:

Number of Tenants is around 10k

Use the default multitenancy strategy via payload filtering.

Read about Partition by payload and Calibrate performance for best practices on indexing and query performance.

Number of Tenants is around 100k and more

At this scale, the cluster may consist of several peers. To localize tenant data and improve performance, use custom sharding to assign tenants to specific shards based on tenant ID hash. This will localize tenant requests to specific nodes instead of broadcasting them to all nodes, improving performance and reducing load on each node.

If tenants are unevenly sized

If some tenants are much larger than others, use tiered multitenancy to promote large tenants to dedicated shards while keeping small tenants on shared shards. This optimizes resource allocation and performance for tenants of varying sizes.

Need Per-Tenant Encryption or Legal/Compliance Isolation (Exception, Not the Default)

Use when: legal/compliance requirements demand per-tenant encryption keys or physical data separation — not merely "tenants shouldn't see each other's data," which payload filtering already guarantees on its own.

  • Multiple collections may be necessary for per-tenant encryption keys
  • Limit collection count and use payload filtering within each collection
  • This is the exception, not the default. Only use when compliance requires it.

What NOT to Do

  • Do not create one collection per tenant without compliance justification (does not scale past hundreds)
  • Do not treat "isolated" or "isolation" in a request as a reason to use separate collections — default query isolation comes from payload filtering (is_tenant=true) in a shared collection, not from separate collections
  • Do not skip is_tenant=true on the tenant index (kills sequential read performance)
  • Do not build global HNSW for multi-tenant collections (wasteful, use payload_m instead)

来源与署名

来源:qdrant/skills位于skills/qdrant-scaling/scaling-data-volume/tenant-scaling提交6a03d0c

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架