Index of every page on this site: llms.txt
All skills
github avatar

/tenant-scaling

@f10fdb8 official
by githubgithub/awesome-copilot42k stars
5,426
Run it yourself

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.

  • 1 file
  • 2.7 KB
  • Updated 7 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/github/awesome-copilot/tenant-scaling

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈68 tokens for metadata: the name and description. ≈609 when used: this file.

Description uses 3.5% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈281 characters, or 3.5%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

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)

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at f10fdb8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated 7 months ago
  • qdrant
  • multitenancy
  • sharding
  • vector-database
  • scaling
  • payload-filtering
  • tenant-isolation
  • distributed-deployment

README badge

README badge for github/awesome-copilot/tenant-scaling

Guides Qdrant multi-tenant scaling strategies: shared collections with payload filtering for up to 10k tenants, custom sharding for 100k+, tiered multitenancy for uneven tenant sizes, and strict isolation patterns for compliance. Directly addresses anti-patterns like one-collection-per-tenant and explains when each approach applies.

Generated from the current SKILL.md.

Should I create one collection per tenant in Qdrant?
No. One collection per tenant does not scale past a few hundred tenants and wastes resources. Use a shared collection with a tenant key and payload filtering instead.
What multitenancy strategy should I use for around 10k tenants?
Use the default multitenancy strategy via payload filtering with a tenant key. Index the tenant field and calibrate performance according to Qdrant's payload partition guidance.
How do I handle 100k+ tenants in Qdrant?
Use custom sharding to assign tenants to specific shards based on tenant ID hash. This localizes tenant data to specific nodes, reducing broadcast overhead and improving query performance.
What should I do if my tenants vary widely in size?
Use tiered multitenancy to promote large tenants to dedicated shards while keeping small tenants on shared shards. This optimizes resource allocation across tenants of different scales.
When is strict per-tenant isolation necessary?
Only when legal or compliance requirements demand per-tenant encryption or isolation beyond payload filtering. Multiple collections may be needed in that case, but this is an exception, not the default approach.

Generated from the current SKILL.md. These answers refresh after source changes.