الإيقاف السلس والتراجع
في هذا الدرس 4 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
stop and revert without dropping requests.
الموضوعات المخطط لها
- On SIGTERM a graceful shutdown finishes in-flight requests:
server.shutdown=gracefulplus a timeout. - The platform sends SIGTERM, waits, then SIGKILL; set the timeout under that grace period.
- Roll back by redeploying the previous image tag; this is why tags must be unique and old images kept.
- Database changes complicate rollback: make migrations backward compatible.
- Practice the rollback before you need it.
تفاصيل المخطط المبدئي
عرض عملي
server.shutdown: graceful
spring.lifecycle.timeout-per-shutdown-phase: 20sاختبر فهمك
What is the fastest rollback for a bad release?
أظهر الإجابة
Redeploy the previous image tag.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.