Openshift: How many pods my springboot app need?

5/6/2020

I´ve a springboot aplication running on Openshift. I've not set any quota limits. How can I get how many pods replica do I need? It depend of the amount of traffic only?

-- G11kanu
kubernetes
kubernetes-pod
openshift
spring-boot
traffic

1 Answer

5/6/2020

Basically, OpenShift(Kubernetes) controller determines how many pods can be scheduled on the worker nodes across the cluster through configured requests resources on new pods. But if you have not configured any requests resources on the new pods, then theoretically you can schedule the pod replicas until all worker node allow to run the pod container processes well. It means Kubernetes can not determine how many pod can be scheduled appropriately. So you should configure resources requests(cpu and memory) for best performance and using resources efficiently through the performance test on your application.

-- Daein Park
Source: StackOverflow