-
Notifications
You must be signed in to change notification settings - Fork 212
Add horizontal pod autoscaler #20
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
Conversation
|
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please submit the signed CLA to cla@trino.io. For more information, see https://github.com/trinodb/cla. |
|
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please submit the signed CLA to cla@trino.io. For more information, see https://github.com/trinodb/cla. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: autoscaling/v2 is out, but it went General Availability for Kubernetes 1.23. I feel like that version is too new to include in this helm chart.
For reference, AWS doesn't even support Kubernetes 1.22 yet
|
CI failed because I forgot to commit my changes for removing I squashed it to 1 commit, but let me know if it should be a separate commit. |
|
@Epicsteve2 The linked PR has been merged, can you rebase accordingly? |
hashhar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM % comment
|
Looks like I forgot to bump the chart minor version ( |
|
@Epicsteve2 Do most projects bump chart version for each change? I'd prefer to change them in batches when we explicitly decide to release some of those changes together. |
Oh, yeah good point. I'll revert the change again. My apologies 😅 |
|
Thanks for the contribution @Epicsteve2. I plan to cut a new release once #19, #12 and #17 make in. |
|
@Epicsteve2 What happens if the CPU usage for a node dips below the threshold and the node is still serving a query? Will the query fail? |
@laserninja Ideally, Trino wouldn’t kill queried pods when scaling down. I'm not sure if that's an issue being worked on for Trino, but it could be fixed in a future version of Trino One way that could possibly be dealt with is to setup query retries for now. (I haven't tested this though 😅) |
Adds horizontal pod autoscaler to the helm chart.
A horizontal pod autoscaler simple will simply scale the number of Trino pods based off of CPU usage.