الملفات
ghaymah-exam-abdelrahman-sre/q4-scalability/container-calculation.md

41 أسطر
683 B
Markdown
خام اللوم التاريخ

هذا الملف يحتوي على أحرف Unicode غامضة

هذا الملف يحتوي على أحرف Unicode قد تُخلط مع أحرف أخرى. إذا كنت تعتقد أن هذا مقصود، يمكنك تجاهل هذا التحذير بأمان. استخدم زر الهروب للكشف عنها.

# Container Capacity Calculation
## Given
- Expected traffic: **15,000 requests/second**
- Capacity per container: **500 requests/second**
- Safety margin: **30%**
---
## Step 1: Calculate Minimum Containers
Minimum Containers = Total Requests ÷ Capacity per Container
```
15000 ÷ 500 = 30 Containers
```
---
## Step 2: Add Safety Margin
```
30 × 30% = 9 Containers
```
---
## Total Required Containers
```
30 + 9 = 39 Containers
```
---
## Final Result
To safely handle **15,000 requests per second**, the application should run **39 application containers**.
The additional containers provide extra capacity during traffic spikes and improve overall reliability.