تحديد معايير التراجع التلقائي
ارجع عند تجاوز الخطأ أو زمن الاستجابة حاجز الأمان.
تحديد معايير التراجع التلقائي درس مجاني في MLOps Academy على CoddyKit. هذا هو الدرس 3 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في MLOps Academy، وتقدمك يتزامن عبر الويب وتطبيق CoddyKit. تتضمن دورة MLOps Academy 4 دروس في المجموع.
بعض أجزاء هذا الدرس لم تُترجم بعد وتظهر باللغة الإنجليزية.
Why Automate Rollback
At 3 a.m. nobody is watching dashboards. Automatic rollback lets the system itself revert a bad model the moment it crosses a danger line. 🚨
Pick Clear Guardrails
A rollback rule needs a measurable guardrail metric, like error rate or p99 latency, with a number that clearly means trouble.
Set a Hard Threshold
Turn vague worry into a concrete limit. For example, roll back if the canary error rate exceeds 2% over the measurement window.
ROLLBACK_RULES = {
"error_rate": 0.02,
"p99_latency_ms": 500,
}Compare to the Champion
Absolute limits miss slow regressions. Also roll back if the canary is clearly worse than the champion, say 20% higher latency on the same traffic.
Choose a Time Window
Judge metrics over a rolling window, like the last 5 minutes. One unlucky request should never trigger a full rollback by itself.
Wait for Enough Traffic
A 100% error rate over three requests means nothing. Require a minimum sample size before any metric is allowed to fire a rollback.
The Decision in Code
The check is just a comparison: if the live metric breaches its limit, return a rollback signal for the orchestrator to act on.
def should_rollback(metrics):
return (
metrics["error_rate"] > 0.02
or metrics["p99_latency_ms"] > 500
)Watch Business Metrics Too
A model can be fast and error-free yet still tank conversions. Guard the outcomes that matter, not only the technical health signals.
Make Rollback Cheap
Rollback should be one fast, safe step: flip traffic back to the proven champion. Keep that previous version warm and ready to take over.
Always Alert a Human
Automation handles the emergency stop, but it must notify the team too. An auto-rollback should page someone to investigate the root cause.
Avoid Flapping
Do not auto-redeploy the same failing model right after rollback. Freeze the rollout until a human reviews, so it cannot flap back and forth.
Quick Check
Which design choice keeps rollback rules trustworthy?
Recap
Good rollback criteria use clear thresholds over a fair window with enough traffic, compare to the champion, alert a human, and revert fast. ✅
الأسئلة الشائعة
هل درس «تحديد معايير التراجع التلقائي» مجاني؟
نعم — نص درس «تحديد معايير التراجع التلقائي» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 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 يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.
جميع الدروس في هذه الدورة
- عمليات طرح Canary: ابدأ بعدد قليل
- محاكاة حركة المرور دون التأثير في المستخدمين
- تحديد معايير التراجع التلقائي
- التسليم التدريجي باستخدام Argo Rollouts