Calculate the capacity and plan for growth on Kubernetes
Calculate the capacity and plan for growth on Kubernetes
1. Fetch Node Capacity: Use the following command to get the total
CPU and memory capacity for all nodes:
# CPU Requests
# Memory Requests
Sensitivity: Public
AVAILABLE_MEMORY = TOTAL_MEMORY_CAPACITY -
TOTAL_MEMORY_REQUESTS
1. Identify Resource Needs per Pod: Check the resource requests and
limits for the application you plan to deploy:
resources:
requests:
memory: "512Mi"
cpu: "500m"
limits:
memory: "1024Mi"
cpu: "1"
In this case:
Sensitivity: Public
PODS_CPU = floor(USABLE_CPU / POD_CPU_REQUEST)
Example:
Calculation:
Sensitivity: Public
2. Monitor Node Utilization: Use:
Sensitivity: Public