-
Notifications
You must be signed in to change notification settings - Fork 73
feat(hpa): Add horizontal pod autoscaling for DragonFly instances #343
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
base: main
Are you sure you want to change the base?
feat(hpa): Add horizontal pod autoscaling for DragonFly instances #343
Conversation
… test-single in makefile
Signed-off-by: Siva Munukutla <[email protected]>
Hi @smunukutla-mycarrier, thanks for the PR! can you please resolve the conflicts? |
Signed-off-by: Siva Munukutla <[email protected]>
@Abhra303 done. Thanks! |
@Abhra303 I would really appreciate it if we could merge this soon. We're looking forward to rolling out autoscaling for dragonfly. Please let me know if there any issues/concerns. Thanks! :) |
@smunukutla-mycarrier, when do you think we can merge this PR? Where I am working, this is a feature we want to implement. |
@ldiego73 I'm not a maintainer on this repo. I'm also waiting for a review from the maintainers, when they get a chance. |
bumping this, please merge. |
Adding my support for this feature. Please merge. |
Hi @smunukutla-mycarrier, the test is not fixed yet. Also can you elaborate more about the reason for supporting HPA? Dragonfly doesn't support multiple masters. So this can only scale reads. Is this the reason you want to support hpa for? |
@Abhra303 thanks for the feedback. Yes, we need to be able to (horizontally) scale secondary nodes automatically based on traffic/utilization. I'll push a fix for the tests this weekend, hopefully. |
@Abhra303 I also merged latest from main branch and resolved conflicts. Please run the workflow again when you have some time. |
When is this being merged? It will be a great addition. Autoscaling is a great way to have peace of mind. I don't want to be worried about needing someone scaling othe pods manually when traffic increases. |
This pull request resolves #320. It adds autoscaling support to Dragonfly operator, allowing Horizontal Pod Autoscaler to be used with Dragonfly instances.
Autoscaling (HPA) support
AutoscalerSpec
toDragonflySpec
indragonfly_types.go
, allowing users to configure HPA settings such as enabling autoscaling, min/max replicas, target CPU/memory utilization, scaling behavior, and metrics.dragonfly_instance.go
to create, update, or delete HPA resources based on theAutoscalerSpec
, including cleanup of HPA when autoscaling is disabled and preservation of replica counts during transitions.role.yaml
and controller ownership ofHorizontalPodAutoscaler
objects.API and code generation
dragonfly_types.go
andzz_generated.deepcopy.go
to support the new autoscaler configuration.Documentation and examples
README.md
to advertise HPA support as a main feature.v1alpha1_dragonfly_autoscaler.yaml
demonstrating how to configure autoscaling for a Dragonfly instance.E2E tests and minor improvements
ImagePullPolicy
to several test cases for consistency.cmd/main.go
.List of E2E tests for autoscaler