Open mhkarimi1383 opened 3 months ago
The changes introduce more granular autoscaling configurations for both webhook and worker deployments in the n8n Helm chart. By creating dedicated settings for webhook and worker autoscaling, the modifications allow better management of pod replicas based on specific metrics, enhancing the control over resource allocation and scaling behavior. Additionally, new Horizontal Pod Autoscaler templates improve scalability and responsiveness to resource utilization.
Files | Change Summary |
---|---|
charts/n8n/templates/deployment.webhooks.yaml , charts/n8n/templates/deployment.worker.yaml |
Updated autoscaling conditions to check specific webhook and worker autoscaling flags instead of a general one. |
charts/n8n/templates/hpa.webhook.yaml , charts/n8n/templates/hpa.worker.yaml |
Introduced new HPA configurations for webhooks and workers, dynamically adapting to Kubernetes versions. |
charts/n8n/values.yaml |
Added new autoscaling settings sections for workers and webhooks, allowing for detailed configuration. |
Objective | Addressed | Explanation |
---|---|---|
Autoscaling worker pods (Issue #80) | ✅ | |
Setting autoscaling.enabled not affecting worker replicas (Issue #87) | ✅ |
🐰
In the fields where bunnies hop,
Autoscaling changes make us stop!
Webhook and worker, side by side,
With metrics to guide and help them glide.
More control for pods, oh what a delight,
Scaling up and down, all through the night! 🌙✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@Vad1mo Hi Can you review this?
Thank you for the contribution, I'll test it out next week, when I am back. Maybe some other community members can give this PR a try too.
@Vad1mo Hi any updates?
@mhkarimi1383 how does this relate to #110?
@Vad1mo I have not mentioned #110
Any updates on this @Vad1mo? I believe that this would solve an issue for me too
I would need to test it, did you guys use it? How does the values file look like?
I have done helm template
command against changes
It was OK
See two parts are added for auto scaling worker and webhook deployments (webhookAutoscaling and workerAutoscaling) config looks like older autoScaling
@Vad1mo
By adding
webhookAutoscaling
andworkerAutoscaling
HPA will work for webhook and worker also fixes the problem where when autoscaling is enabled replicaCount will not work for webhook and worker
closes #80 closes #87
Summary by CodeRabbit
New Features
Bug Fixes