Skillpedia
قواعد البيانات40k · #7366

qdrant-horizontal-scaling

ما الذي تفعله

يساعدك على تحديد ما إذا كنت تحتاج إلى توسيع قاعدة بيانات Qdrant بإضافة أجهزة أخرى (أفقياً) أو بتحسين الجهاز الحالي (رأسياً). ويرشدك إلى عدد العقد والشرائح المناسب لضمان الأداء والموثوقية.

متى تستخدمها

  • ✓عندما تنمو بياناتك أكثر مما يتحمله جهاز واحد.
  • ✓إذا كنت تحتاج إلى استمرار عمل النظام حتى لو تعطل جهاز واحد.
  • ✓لتقسيم بياناتك ومستخدميك إلى مجموعات أصغر لتسهيل الإدارة.

رابط المهارة

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

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

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

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

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

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

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

“بياناتي لم تعد تتسع لجهاز واحد، فهل أضيف أجهزة أم أرقّي الجهاز الحالي؟ وكم عدد العقد والشرائح التي يجب أن أستخدمها؟”

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

كيف تعمل

تحلل هذه المهارة ما إذا كنت تحتاج إلى سعة إضافية، وتقترح أفضل طريقة للتوسع في Qdrant. تراعي ما إذا كان يجب إضافة أجهزة أو تحسين الجهاز الموجود، وتوصي بالعدد المثالي من الشرائح والنسخ المتماثلة (replicas) لضمان سلامة بياناتك وإتاحتها.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

What to Do When Qdrant Needs More Capacity

Vertical first: simpler operations, no network overhead, good up to ~100M vectors per node depending on dimensions and quantization. Horizontal when: data exceeds single node capacity, need fault tolerance, need to isolate tenants, or IOPS-bound (more nodes = more independent IOPS).

Most basic distributed configuration

  • 3 nodes, 3 shards with replication_factor: 2 for zero-downtime scaling

Minimum of 3 nodes is important for consensus and fault tolerance. With 3 nodes, you can lose 1 node without downtime. With 2 nodes, losing 1 node causes downtime for collection operations. Replication factor of 2 means each shard has 1 replica, so you have 2 copies of data. This allows for zero-downtime scaling and maintenance. With replication_factor: 1, zero-downtime is not guaranteed even for point-level operations, and cluster maintenance requires downtime.

Choosing number of shards

Shards are the unit of data distribution. More shards allows more nodes and better distribution, but adds overhead. Fewer shards reduces overhead but limits horizontal scaling.

For cluster of 3-6 nodes the recommended shard count is 6-12. This allows for 2-4 shards per node, which balances distribution and overhead.

Changing number of shards

Use when: shard count isn't evenly divisible by node count, causing uneven distribution, or need to rebalance.

Resharding is expensive and time-consuming, it should be used as a last resort if regular data distribution is not possible. Resharding is designed to be transparent for user operations, updates and searches should still work during resharding with some small performance impact.

But resharding operation itself is time-consuming and requires to move large amounts of data between nodes.

  • Available in Qdrant Cloud Resharding
  • Resharding is not available for self-hosted deployments.

Better alternatives: over-provision shards initially, or spin up new cluster with correct config and migrate data.

What NOT to Do

  • Do not jump to horizontal before exhausting vertical (adds complexity for no gain)
  • Do not set shard_number that isn't a multiple of node count (uneven distribution)
  • Do not use replication_factor: 1 in production if you need fault tolerance
  • Do not add nodes without rebalancing shards (use shard move API to redistribute)
  • Do not scale down RAM without load testing (cache eviction causes days-long latency incidents)
  • Do not hit the collection limit by using one collection per tenant (use payload partitioning)
الأسئلة الشائعة

ما هو التوسع الأفقي؟

هو إضافة أجهزة (عقد) أكثر لتوزيع العمل والبيانات، بدلاً من ترقية جهاز واحد فقط.

لماذا يُنصح بثلاث عقد كحد أدنى؟

مع ثلاث عقد يستطيع النظام مواصلة العمل حتى لو تعطل جهاز واحد. ومع عقدتين فقط، يؤدي فقدان جهاز إلى توقف العمليات.

ما هي الشرائح (shards) والنسخ المتماثلة (replicas)؟

الشرائح أجزاء من بياناتك. والنسخ المتماثلة نسخ من هذه الشرائح. وجود نسخ متعددة (النسخ المتماثل) يضمن عدم ضياع بياناتك واستمرار النظام في العمل إذا تعطل جهاز.

التفاصيل

الوصف الأصلي من المؤلف

Diagnoses and guides Qdrant horizontal scaling decisions. Use when someone asks 'vertical or horizontal?', 'how many nodes?', 'how many shards?', 'how to add nodes', 'resharding', 'data doesn't fit', or 'need more capacity'. Also use when data growth outpaces current deployment.

repo: github/awesome-copilot

الشعبية

نجوم GitHub
40k
الترتيب
#7366
الترخيص
MIT
آخر تحديث
15‏/10‏/2026

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

0

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

التعليقات

  • …

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

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