Chuyển đến nội dung
Skillpedia
Cơ sở dữ liệu40k · #7368

qdrant-tenant-scaling

Skill này làm gì

Hướng dẫn này giúp bạn sắp xếp dữ liệu trong Qdrant khi có nhiều người dùng hoặc khách hàng (gọi là “tenant”). Nó giải thích cách tách dữ liệu của từng người một cách hiệu quả để mọi thứ chạy nhanh.

Khi nào nên dùng

  • ✓Khi bạn có nhiều khách hàng và muốn sắp xếp dữ liệu của họ.
  • ✓Khi dữ liệu của một khách hàng chạy chậm hoặc gây lỗi cho những khách hàng khác.
  • ✓Khi bạn cần đảm bảo dữ liệu của một khách hàng không bị lẫn với dữ liệu của khách hàng khác.

Liên kết skill

https://github.com/github/awesome-copilot/blob/main/skills/qdrant-scaling/scaling-data-volume/tenant-scaling/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/github/awesome-copilot/blob/main/skills/qdrant-scaling/scaling-data-volume/tenant-scaling/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Làm thế nào để sắp xếp dữ liệu cho hàng nghìn khách hàng trong Qdrant để mọi thứ chạy trơn tru?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Qdrant gợi ý dùng bộ lọc trên “payload” (thông tin bổ sung của dữ liệu) để tách khách hàng trong các collection dùng chung. Với nhiều khách hàng, Qdrant khuyên chia công việc thành các phần nhỏ hơn (shard), hoặc thậm chí có phần riêng cho những khách hàng rất lớn hoặc cần bảo mật thêm.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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)
Câu hỏi thường gặp

Có nên tạo một collection riêng cho mỗi khách hàng không?

Nói chung là không. Tạo quá nhiều collection sẽ tốn nhiều tài nguyên và không mở rộng tốt khi có hơn vài trăm khách hàng. Tốt hơn là dùng một collection chung kèm bộ lọc.

“Tenant” là gì?

“Tenant” là khách hàng, người dùng hoặc nhóm đang sử dụng hệ thống của bạn. Mỗi tenant có dữ liệu riêng cần được giữ tách biệt.

Khi nào tôi cần cách ly tenant nghiêm ngặt?

Bạn chỉ cần cách ly nghiêm ngặt khi có yêu cầu pháp lý hoặc tuân thủ đòi hỏi mã hóa riêng cho từng tenant, hoặc tách dữ liệu mạnh hơn mức bộ lọc thông thường có thể làm được.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
40k
Vị trí xếp hạng
#7368
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự