Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(helm): allow removal of Node & Worker replicas for custom HPA solutions #28762

Merged
merged 13 commits into from
Jun 5, 2024

Conversation

hanslemm
Copy link
Contributor

@hanslemm hanslemm commented May 29, 2024

SUMMARY

This PR allows Helm deployments to use custom HPA solutions.

In my company, we don't use the Kubernetes metrics server for autoscaling, but rather Keda with Prometheus metrics. With that in mind, the current Helm deployment doesn't work for us, as the default HPA solution cannot find the metrics to autoscale.

The idea is to allow developers to specify custom HPA in their Kubernetes. To do so, it would be great if we could control the replicaCount of Worker and Node deployments, so that we can turn off the replicaCount and provide an HPA solution outside the Helm Charts.

This PR:

  • Creates .Values.supersetNode.replicas.enabled bool with true as default value.
  • Creates .Values.supersetWorker.replicas.enabled bool with true as default value.
  • Moves .Values.supersetNode.replicaCount to .Values.supersetNode.replicas.replicaCount
  • Moves .Values.supersetWorker.replicaCount to .Values.supersetNode.replicas.replicaCount
  • Updates the charts of Node and Worker
    • if not [worker|node].autoscaling.enabled and [worker|node].replicas.enabled then the replicaCount logic will be applied. Any other combination will remove replicaCount.
    • By default values the replicaCount logic will be applied as autoscaling is disabled and replicas is enabled.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congrats on making your first PR and thank you for contributing to Superset! 🎉 ❤️

We hope to see you in our Slack community too! Not signed up? Use our Slack App to self-register.

@hanslemm hanslemm changed the title feat(helm): enable custom autoscaling solutions feat(helm): enable custom HPA solutions May 29, 2024
@pull-request-size pull-request-size bot added size/S and removed size/XS labels Jun 5, 2024
@hanslemm hanslemm changed the title feat(helm): enable custom HPA solutions feat(helm): allow removal of Node & Worker replicas for custom HPA solutions Jun 5, 2024
@craig-rueda craig-rueda merged commit d303852 into apache:master Jun 5, 2024
36 of 37 checks passed
vinothkumar66 pushed a commit to vinothkumar66/superset that referenced this pull request Nov 11, 2024
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 4.1.0 labels Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels deploy:helm size/S 🚢 4.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants