0Pricing
MLOps Academy · درس

اختيار حجم المثيلات والنسخ المتماثلة المناسب

طابق العتاد مع ملفات الحمل الفعلية.

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

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

Pay for What You Use

Most ML serving bills come from instances sitting half-idle. Right-sizing means matching hardware and replica count to your real load, not your worst-case fear.

Measure Before You Cut

You cannot right-size what you have not measured. Start by watching real CPU and memory utilization over a normal traffic day.

The Overprovisioning Trap

Picking a giant instance just in case feels safe but burns cash every hour. Chronically low utilization is the clearest sign of overprovisioning.

Read Your Utilization

If average CPU sits near 15 percent, your instance is far too big. Aim for a healthy target utilization with headroom for short spikes.

kubectl top pods -n serving

Vertical vs Horizontal

Vertical scaling gives one replica a bigger machine. Horizontal scaling adds more small replicas instead, which usually handles bursty traffic better.

Set Requests and Limits

On Kubernetes, your resource request tells the scheduler how much each replica truly needs. Set it from observed usage, not a round guess.

resources:
  requests:
    cpu: "500m"
    memory: "1Gi"

Pick the Right Replica Count

Too few replicas means queued requests and slow responses. Too many means idle pods you still pay for. Size replicas to your peak concurrent load.

Let Autoscaling Track Demand

A Horizontal Pod Autoscaler adds replicas when load rises and removes them when it falls, so you stop paying for off-peak capacity.

kubectl autoscale deploy model --min 2 --max 10 --cpu-percent 60

Keep a Safety Floor

A minimum replica count keeps a few pods warm so traffic never hits a cold, empty service. This is your trade-off between cost and availability.

GPU Boxes Are Pricey

GPU instances cost many times more than CPU. Only request a GPU when your model truly needs it, and pack work tightly so it never sits idle.

Right-Sizing Is Ongoing

Traffic patterns drift over weeks and months. Revisit instance type and replica counts on a schedule so your fleet stays a good fit.

Quick Check

Let us see what low utilization is telling you.

Recap

You measured utilization, chose between vertical and horizontal scaling, set requests, and added autoscaling. Your fleet now matches real demand. 💸

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

هل درس «اختيار حجم المثيلات والنسخ المتماثلة المناسب» مجاني؟

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

ماذا ستتعلم في «اختيار حجم المثيلات والنسخ المتماثلة المناسب»؟

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

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

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

كم من الوقت يستغرق درس «اختيار حجم المثيلات والنسخ المتماثلة المناسب»؟

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

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

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

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

  1. اختيار حجم المثيلات والنسخ المتماثلة المناسب
  2. التكميم والتقطير لاستدلال أقل تكلفة
  3. استخدام Spot Instances للتدريب
  4. تتبّع التكلفة لكل تنبؤ
← العودة إلى MLOps Academy