qdrant-tenant-scaling
できること
このガイドでは、多くのユーザーやクライアント(「テナント」と呼ばれます)がいる場合に、Qdrantでデータを整理する方法を説明します。それぞれのテナントのデータを効率よく分けて、全体が速く動くようにする方法がわかります。
使う場面
- ✓多くのクライアントがいて、そのデータを整理したいとき。
- ✓あるクライアントのデータが遅く、ほかのクライアントに影響が出ているとき。
- ✓あるクライアントのデータが別のクライアントのデータと混ざらないようにしたいとき。
スキルのリンク
https://github.com/github/awesome-copilot/blob/main/skills/qdrant-scaling/scaling-data-volume/tenant-scaling/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“Qdrantで数千のクライアントのデータを整理して、スムーズに動くようにするにはどうすればよいですか?”
毎週5つの新しいスキル。1分で読めます。
仕組み
Qdrantでは、共有のコレクションの中で、「payload」(追加のデータ情報)へのフィルターを使ってクライアントを分けることを勧めています。クライアントが多い場合は、作業を小さな部分(シャード)に分割することを勧めています。非常に大きなクライアントや、より高いセキュリティが必要なクライアントには、専用の部分を用意することもできます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)を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
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 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=trueon the tenant index (kills sequential read performance) - Do not build global HNSW for multi-tenant collections (wasteful, use
payload_minstead)
よくある質問
クライアントごとに別々のコレクションを作るべきですか?
一般的には、おすすめしません。コレクションを作りすぎると多くのリソースを消費し、数百クライアントを超えるとうまく拡張できません。フィルターを使って共有のコレクションを使うほうが良いです。
「テナント」とは何ですか?
「テナント」とは、システムを利用するクライアント、ユーザー、またはグループのことです。それぞれが持つデータは、互いに分けて保つ必要があります。
テナントを厳密に分離する必要があるのはどんなときですか?
通常のフィルターが提供する以上に、テナントごとの暗号化や非常に強力なデータ分離を求める法律や規制がある場合にのみ、厳密な分離が必要です。
詳細
作者による元の説明
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.
repo: github/awesome-copilot
人気
- GitHubのスター
- 40k
- ランキング
- #7368
- ライセンス
- MIT
- 更新日
- 2026/10/15
コメント
- …
このリポジトリの他のスキル
acquire-codebase-knowledge
40kエージェントが、既存のコードプロジェクトを理解してドキュメント化できるよう支援します。新しく参加するメンバーのオンボーディングや、アーキテクチャの全体像の把握に役立ちます。
acreadiness-assess
40kエージェントが、プロジェクトのAI対応状況を評価してレポートを生成できるよう支援します。プロジェクトがAIツールをどの程度活用できる状態にあるかを把握するのに役立ちます。
acreadiness-generate-instructions
40kエージェントが、評価結果をもとにAIツール向けの指示文を作成できるよう支援します。AIがコードとどのようにやり取りするかを改善し、特定された不足点を解消するのに役立ちます。
acreadiness-policy
40kエージェントが、AIプロジェクトの評価ポリシーの策定や適用を支援できるようにします。プロジェクトの評価方法を標準化し、コンプライアンスを確保するのに役立ちます。
似ているスキル
discrawl
394k保存済みのローカルなDiscordメッセージのアーカイブを検索して要約し、その新しさを確認し、ダイレクトメッセージを読めるようエージェントを支援します。
clickhouse-io
280kエージェントがClickHouseデータベースのクエリとスキーマを最適化できるようにします。高性能な分析処理向けのベストプラクティスを適用します。分析クエリが遅すぎるときに使います。
scientific-db-pubmed-database
280kエージェントが生物医学分野の科学論文を検索するのに役立ちます。特定の医療情報が必要な研究に便利です。