We've seen before how to change the number of pods for a service, and how to add and remove nodes. This can be automated to describe some rules, allowing the cluster to change its resources elastically.
Keep in mind that autoscaling requires tweaking to adjust to your specific use case. This is a technique to use if the resource utilization changes greatly over time; for example, if there's a daily pattern where some hours present way more activity than others, or if there's a viral element that means the service multiplies the requests by 10 unexpectedly.
If your usage of servers is small and the utilization stays relatively constant, there's probably no need to add autoscaling.
If your usage of servers is small and the utilization stays relatively constant, there's probably no need to add autoscaling.
The cluster can be scaled automatically up or down on two different fronts:
- The number of pods can be set to increase or decrease automatically in a Kubernetes...