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

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/github/awesome-copilot/blob/main/skills/qdrant-scaling/scaling-data-volume/tenant-scaling/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“كيف أنظّم بيانات آلاف العملاء في Qdrant حتى يعمل كل شيء بسلاسة؟”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

تقترح Qdrant استخدام الفلاتر على « payload » (معلومات إضافية عن البيانات) لفصل العملاء داخل المجموعات المشتركة. وعند وجود عدد كبير من العملاء، تنصح بتقسيم العمل إلى أجزاء أصغر تسمى الشظايا (shards)، أو بتخصيص أجزاء منفصلة للعملاء الكبار جدًا أو لمن يحتاجون حماية إضافية.

المحتوى التقني (ملف 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
آخر تحديث
15‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة