0Pricing
MLOps Academy · درس

تهيئة التوسع التلقائي والتزامن

وسّع المثيلات بما يتوافق مع حركة المرور الواردة.

تهيئة التوسع التلقائي والتزامن درس مجاني في MLOps Academy على CoddyKit. هذا هو الدرس 3 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في MLOps Academy، وتقدمك يتزامن عبر الويب وتطبيق CoddyKit. تتضمن دورة MLOps Academy 4 دروس في المجموع.

بعض أجزاء هذا الدرس لم تُترجم بعد وتظهر باللغة الإنجليزية.

Match Capacity to Demand

Autoscaling adds container instances when traffic rises and removes them when it falls. You serve spikes without paying for idle machines. 📈

Concurrency Per Instance

Concurrency is how many requests one instance handles at the same time. It is the dial that decides when the platform adds more instances.

The Scaling Math

The platform divides incoming load by your concurrency to size the fleet. Lower concurrency means more instances for the same traffic.

Set Max Concurrency

On Cloud Run you cap requests per instance with --concurrency. Tune it to how many calls your model can serve without slowing down.

gcloud run deploy model-api --concurrency 8

Heavy Models Want Low Numbers

If each prediction is CPU heavy, a high concurrency starves every request. Set it low so the platform spreads load across more instances.

Cap the Maximum

A traffic flood could spawn endless instances and a huge bill. A max instances ceiling protects your budget and downstream databases.

gcloud run deploy model-api --max-instances 20

Scale to Zero Saves Money

With min instances at zero, the platform removes every container when idle. You pay nothing between requests, at the cost of a cold start.

Right-Size CPU and Memory

Each instance gets the CPU and memory you request. A big model needs enough memory to load, or the container crashes on startup.

gcloud run deploy model-api --memory 2Gi --cpu 2

Watch the Request Queue

When all instances hit their concurrency cap, new requests wait in a queue. Rising queue time is your signal to scale out faster.

Load Test to Find the Sweet Spot

Pick settings by measuring, not guessing. Load test rising traffic and watch latency to find the concurrency that holds your SLA.

Two Dials, One Goal

Concurrency and instance limits work together to balance latency against cost. Tune both to serve users fast without overspending.

Quick Check

Let us check what concurrency really controls.

Recap

You tuned concurrency, capped max instances, right-sized resources, and load tested. Your service now scales with demand and budget. ⚖️

الأسئلة الشائعة

هل درس «تهيئة التوسع التلقائي والتزامن» مجاني؟

نعم — نص درس «تهيئة التوسع التلقائي والتزامن» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة MLOps Academy، انتقل إلى CoddyKit PRO. تتضمن دورة MLOps Academy 4 دروس في المجموع.

ماذا ستتعلم في «تهيئة التوسع التلقائي والتزامن»؟

وسّع المثيلات بما يتوافق مع حركة المرور الواردة. تتمرن على MLOps Academy مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.

هل أحتاج إلى خبرة سابقة لأبدأ MLOps Academy؟

لا تُشترط خبرة سابقة. MLOps Academy على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 3 من أصل 4.

كم من الوقت يستغرق درس «تهيئة التوسع التلقائي والتزامن»؟

معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.

هل يمكنني كتابة وتشغيل أكواد في درس MLOps Academy هذا؟

نعم. كل درس في MLOps Academy يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.

جميع الدروس في هذه الدورة

  1. دفع الصورة إلى سجل
  2. النشر على بيئة تشغيل حاويات بلا خوادم
  3. تهيئة التوسع التلقائي والتزامن
  4. إدارة الأسرار والإعدادات في السحابة
← العودة إلى MLOps Academy