bcgov / CONN-CCBC-portal

Intake for application process for Connected Communities BC funding program
Apache License 2.0
4 stars 3 forks source link

Yaml Config - Scaling #2157

Closed MarsRomer closed 11 months ago

MarsRomer commented 1 year ago

Description: Discuss Yaml config with the platform services team regarding scaling (see note below)

AC:

From OCIO: Thank you again for the demo. That was fun for me.

As an action item, I mentioned having a look at the OpenShift configurations for your application. I poked around the dashboards in OpenShift for your main namespace, “ff61fb-prod”, “CONN CCBC Portal”, and saw a configuration you should bring forwards that should be adjusted.

What’s the chart below telling us? It’s basically saying that your application is only using 6.5 percent of the CPU that’s ‘guaranteed’ (known as requested), and the remaining 76.4% it’s ‘borrowing’ (known as limit) from the node the pod is sitting on when it needs to burst for resources. The ratios here appear to be off significantly, and you will get much better performance if the ratio of requested is higher to that which is limit is requesting when bursting.

In plain language, it would be better to use more of the CPU you have been dedicated in your quota, than borrowing from the ‘store’ when your app needs more CPU.

I’ve seen this many times. Please reach out to Jason Leach with Olena Mitovska’s team for a review.

Private Zenhub Image

MarsRomer commented 1 year ago

Hey team! Please add your planning poker estimate with Zenhub @marcellmueller @rafasdc @VB-at-Bis

rafasdc commented 11 months ago

From Jason: That sounds ok to me. You should be keeping request.cpu very low, close to what is actually being used but not lower than about 20m. Then, use limit.cpu to give it some more CPU for performance.