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

Extend Webhook autoscaler to send fleet metadata with the request #3951

Open
swermin opened this issue Aug 15, 2024 · 8 comments · May be fixed by #3957
Open

Extend Webhook autoscaler to send fleet metadata with the request #3951

swermin opened this issue Aug 15, 2024 · 8 comments · May be fixed by #3957
Labels
kind/feature New features for Agones

Comments

@swermin
Copy link

swermin commented Aug 15, 2024

Is your feature request related to a problem? Please describe.
We are running our fleets throughout different clusters and independently of one and other and use the webhook autoscaler to make sure that we have necessary sizes on all the fleets.
With this solution we are allocating game servers based on labels and not on fleet names, this means that on the webhook autoscaler endpoint we have no idea to determine the size since the request does not contain any metadata at all regarding the fleet in question.

Describe the solution you'd like
We want to extend the FleetAutoscaleRequest to include the fleet metadata when reporting to the service(s).

Describe alternatives you've considered
We made changes to the URL used for the webhook but that means that we have to update the URL every time we add new label and/or annotations

@swermin swermin added the kind/feature New features for Agones label Aug 15, 2024
@markmandel
Copy link
Member

Seems legit to me! I assume, name, annotations and labels?

@swermin
Copy link
Author

swermin commented Aug 18, 2024

That is correct. I was looking into the code and found that the easiest way to add these was to put the whole metadata into the request, but I do like the idea of making that payload smaller

@markmandel
Copy link
Member

🤔 it would make the code easier to grab the entire metadata object and chuck it across.

If you're implementing it, I'll let you decide 😄

@swermin swermin linked a pull request Aug 20, 2024 that will close this issue
@swermin
Copy link
Author

swermin commented Aug 20, 2024

I've added a PR, let me know what you think 😄

Copy link

'This issue is marked as Stale due to inactivity for more than 30 days. To avoid being marked as 'stale' please add 'awaiting-maintainer' label or add a comment. Thank you for your contributions '

@github-actions github-actions bot added the stale Pending closure unless there is a strong objection. label Dec 15, 2024
@markmandel
Copy link
Member

PR seems to be in flight. @swermin are you still working on this?

@swermin
Copy link
Author

swermin commented Dec 18, 2024

Hi! Yes I am, or I was. Sorry it took some time for this whole thing. Last few weeks have been busy so I didn’t have time to get to implementing e2e tests. My plan was to try wrap it up these coming days.

I have a general question though, do I need to make a new PR to get the example autoscaler to support this flow? Or is it about to get the fixes in and some one to help me get a new container image built to test with?

@markmandel
Copy link
Member

I have a general question though, do I need to make a new PR to get the example autoscaler to support this flow?

Nope, you can add them to the exiting PR.

Or is it about to get the fixes in and some one to help me get a new container image built to test with?

ooh, good question. Yeah, likely with help. Have a think about what is needed for the e2e tests, and if you need a new container or not for it.

@github-actions github-actions bot removed the stale Pending closure unless there is a strong objection. label Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New features for Agones
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants