ministryofjustice / cloud-platform

Documentation on the MoJ cloud platform
MIT License
84 stars 44 forks source link

Spike: Ingress improvements: KEDA autoscaler #5472

Open jaskaransarkaria opened 4 months ago

jaskaransarkaria commented 4 months ago

Background

Currently, we are estimating the number of ingress controllers we need. We should implement an autoscaling strategy based on the number of active connections held by each ingress controller. We can play around with the keda options in the nginx helm chart's values file

Use the current number of pods as the minimum to begin, this will give us time to see how the autoscaler behaves without impacting current performance.

In the guide, it uses 100 active connections limit from which to spawn more controllers. This is a good baseline but examine how many active connections our current controllers and consider whether this limit should be higher or lower.

Communicate changes

Questions / Assumptions

Definition of done

Reference

How to write good user stories

poornima-krishnasamy commented 4 months ago

We spiked the KEDA controller here:https://github.com/ministryofjustice/cloud-platform/issues/5217 so would it be a pre-requisite for this ticket to have KEDA controller running in our cluster?

jaskaransarkaria commented 4 months ago

I think there needs to be an actual keda controller and once that exists the nginx config will create the scaled object and hpa