@regis I’m revisiting this topic and would like to share the PR we created to implement the filter that would allow extending the HPA/VPA features to the different IDAs.
For now, it is not a requirement to call the filter from other IDAs plugins. For instance, if I want to add HPA support, I can add and activate the following Python plugin:
from tutorpod_autoscaling.hooks import AUTOSCALING_CONFIG
@AUTOSCALING_CONFIG.add()
def _add_idas_autoscaling(scaling_config):
scaling_config["notes"] = {
"enable_hpa": True,
"memory_request": "50Mi",
"cpu_request": 0.1,
"memory_limit": "100Mi",
"cpu_limit": 0.2,
"min_replicas": 1,
"max_replicas": 3,
"avg_cpu": 100,
"avg_memory": "",
"enable_vpa": False,
}
return scaling_config
Still need a tutor plugin to handle the HPA/VPA parameters but it’s easier now since we no longer deal with patches to add YAML. The invitation is open for you and anyone else in the community interested in this topic to take a look into the PR. If everything works fine and we get the approvals, we will release these changes on the Redwood OpenedX release.