Complete Task 5: Mithal monitoring dashboard
هذا الالتزام موجود في:
41
q4-scalability/container-calculation.md
Normal file
41
q4-scalability/container-calculation.md
Normal file
@@ -0,0 +1,41 @@
|
||||
# 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.
|
||||
المرجع في مشكلة جديدة
حظر مستخدم