الطلبات والحدود والتوسع التلقائي
في هذا الدرس 4 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
size JVM pods and scale them.
الموضوعات المخطط لها
- Requests are used for scheduling; limits are enforced ceilings.
- Exceeding the memory limit kills the pod (OOMKilled); set the JVM heap relative to the limit (for example
-XX:MaxRAMPercentage=75); verify flags for your JDK version. - CPU limits can throttle; many teams set CPU requests and fewer limits. Decide deliberately.
- Horizontal Pod Autoscaler (HPA) adds or removes replicas based on CPU, memory, or custom metrics.
- Rolling update settings (
maxSurge,maxUnavailable) control the pace and capacity.
تفاصيل المخطط المبدئي
عرض عملي
resources block with requests/limits and an HPA targeting 70% CPU, 3 to 10 replicas.
اختبر فهمك
What happens when a pod exceeds its memory limit?
أظهر الإجابة
It is OOMKilled and restarted.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.