本文へスキップ
Skillpedia
データベース40k · #7368

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がスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/github/awesome-copilot/blob/main/skills/qdrant-scaling/scaling-data-volume/tenant-scaling/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

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.

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=true on the tenant index (kills sequential read performance)
  • Do not build global HNSW for multi-tenant collections (wasteful, use payload_m instead)
よくある質問

クライアントごとに別々のコレクションを作るべきですか?

一般的には、おすすめしません。コレクションを作りすぎると多くのリソースを消費し、数百クライアントを超えるとうまく拡張できません。フィルターを使って共有のコレクションを使うほうが良いです。

「テナント」とは何ですか?

「テナント」とは、システムを利用するクライアント、ユーザー、またはグループのことです。それぞれが持つデータは、互いに分けて保つ必要があります。

テナントを厳密に分離する必要があるのはどんなときですか?

通常のフィルターが提供する以上に、テナントごとの暗号化や非常に強力なデータ分離を求める法律や規制がある場合にのみ、厳密な分離が必要です。

詳細

作者による元の説明

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

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル