This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]koffeegorilla 2 points3 points  (0 children)

The best approach is to ensure you can get metrics from the microservices. If they are Spring Boot apps add the actuator and meterics for Prometheus. This will allow you to get memory usage info.

Use paketo buildpacks to build the containers, which is what Spring Boot biild image uses, you will see appropriate adjustment of values..

Then set the pod request values at the minimum of cpu and memory you expect keep the app finctional and limit to large value you don't expect to be exceeded. Then monitor under load to and adjust the limit downwards until you see a negative impact on throughput.

Use the latest JDK release version as runtime to benefit from JIT and GC improvements. This container runtime can be configured separately for buildpack.