'Determine Kubernetes cluster size
I am confused in finalize the cluster size for my QA kubernetes deployment which can be used by 150 people. Follwing are the services i need to deploy: 6 Spring boot microservices with 4pods, 1 Angular application with 4 pods
Can anyone help me in finalizing the size?
Solution 1:[1]
Managing a Kubernetes cluster is not a one-size-fits-all problem. There are many ways to rightsize your cluster, and it is vital to design your application for reliability and robustness.
Factors which we need to consider when making a decision:
High Availability
Management Overhead
Ease of Scheduling Container
Node Auto-Scaling
Ease of Maintenance
Kubelet Overhead
System Overhead
Rightsizing Your Nodes
You can use the following to arrive at an optimal figure:
The number of containers per node = Square root of the closest lower perfect square to the total number of containers, provided the number of containers per node doesn’t exceed the recommended value
Number of nodes = Total number of containers / The number of containers per node
Overprovision factor = Number of containers per node * max resource per container / (Number of nodes — Max planned unavailable nodes)
Node capacity = max resource required per container * the number of containers per node + overprovision factor + Kubernetes system resource requirements
Refer to the document for more information.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Fariya Rahmat |