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 從公開儲存庫中收錄這些內容。

檢舉或申請下架