DevOps & Cloudlow risk
qdrant-tenant-scaling
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.
github/awesome-copilot·skills/qdrant-scaling/scaling-data-volume/tenant-scaling/SKILL.md
100/ 100质量分
导入这个 Skill
选择你的 coding agent,复制项目级或个人级安装命令。
导入当前项目.agents/skills/tenant-scaling
npx skills add https://github.com/github/awesome-copilot/tree/0aaced533251f5b86c69dfbc5e55db74c4b4d1af/skills/qdrant-scaling/scaling-data-volume/tenant-scaling -a codex -y导入个人环境~/.agents/skills/tenant-scaling
npx skills add https://github.com/github/awesome-copilot/tree/0aaced533251f5b86c69dfbc5e55db74c4b4d1af/skills/qdrant-scaling/scaling-data-volume/tenant-scaling -a codex -g -y导入当前项目.claude/skills/tenant-scaling
npx skills add https://github.com/github/awesome-copilot/tree/0aaced533251f5b86c69dfbc5e55db74c4b4d1af/skills/qdrant-scaling/scaling-data-volume/tenant-scaling -a claude-code -y导入个人环境~/.claude/skills/tenant-scaling
npx skills add https://github.com/github/awesome-copilot/tree/0aaced533251f5b86c69dfbc5e55db74c4b4d1af/skills/qdrant-scaling/scaling-data-volume/tenant-scaling -a claude-code -g -y导入当前项目.agents/skills/tenant-scaling
npx skills add https://github.com/github/awesome-copilot/tree/0aaced533251f5b86c69dfbc5e55db74c4b4d1af/skills/qdrant-scaling/scaling-data-volume/tenant-scaling -a github-copilot -y导入个人环境~/.copilot/skills/tenant-scaling
npx skills add https://github.com/github/awesome-copilot/tree/0aaced533251f5b86c69dfbc5e55db74c4b4d1af/skills/qdrant-scaling/scaling-data-volume/tenant-scaling -a github-copilot -g -y导入当前项目.agents/skills/tenant-scaling
npx skills add https://github.com/github/awesome-copilot/tree/0aaced533251f5b86c69dfbc5e55db74c4b4d1af/skills/qdrant-scaling/scaling-data-volume/tenant-scaling -a cursor -y导入个人环境~/.cursor/skills/tenant-scaling
npx skills add https://github.com/github/awesome-copilot/tree/0aaced533251f5b86c69dfbc5e55db74c4b4d1af/skills/qdrant-scaling/scaling-data-volume/tenant-scaling -a cursor -g -y导入当前项目.agents/skills/tenant-scaling
npx skills add https://github.com/github/awesome-copilot/tree/0aaced533251f5b86c69dfbc5e55db74c4b4d1af/skills/qdrant-scaling/scaling-data-volume/tenant-scaling -a gemini-cli -y导入个人环境~/.gemini/skills/tenant-scaling
npx skills add https://github.com/github/awesome-copilot/tree/0aaced533251f5b86c69dfbc5e55db74c4b4d1af/skills/qdrant-scaling/scaling-data-volume/tenant-scaling -a gemini-cli -g -yNative Gemini CLI
gemini skills install https://github.com/github/awesome-copilot.git --scope workspace --path skills/qdrant-scaling/scaling-data-volume/tenant-scaling⚠ 安装命令使用开源 skills CLI。执行前请检查来源、脚本和权限。
Skill 指令
在 GitHub 查看原始文件 ↗# 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. - Understand multitenancy patterns [Multitenancy](https://search.qdrant.tech/md/documentation/manage-data/multitenancy/) 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](https://search.qdrant.tech/md/documentation/manage-data/multitenancy/?s=partition-by-payload) and [Calibrate performance](https://search.qdrant.tech/md/documentation/manage-data/multitenancy/?s=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](https://search.qdrant.tech/md/documentation/operations/distributed_deployment/?s=user-defined-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](https://search.qdrant.tech/md/documentation/manage-data/multitenancy/?s=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 Strict Tenant Isolation Use when: legal/compliance requirements demand per-tenant encryption or strict isolation beyond what payload filtering provides. - 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 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)