-
Notifications
You must be signed in to change notification settings - Fork 829
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
Health check should be moved out of gameservers/controller.go
#88
Comments
@markmandel How about |
SGTM. |
Does |
So I don't see this being a Controller - in the Kubernetes sense (i.e. it doesn't manage resources in the cluster). So I'd be more inclined to call it something else. |
Work for this issue is happening here. One thing I'm concerned about is the use of I see two options:
I'll open a PR and we can discuss the best approach over there. |
To go back to design - the original idea was to implement something (or maybe use directly) something more akin to https://github.com/heptiolabs/healthcheck My thought was:
Something similar to what I'm doing with the webhook manager is what I was thinking. WDYT? |
That sounds good. So |
Yeah - sounds like we're on the same page. And since I'm thinking about it - the pattern could potentially(?) be repeated for the sdk sidecar binary - since that also has a http handler in it (although it actually has 2 health points, one for itself and one as a proxy for the backing game server). Since that also fires up a http server in it's It may be worth talking over a hangout to discuss the architecture, if you think that would be valuable. Some of the design of the game server health checking is captured in this ticket |
This is the branch where I'm making the discussed changes. |
Seems like this should be extracted, too. Yes? |
Re: the SDK sidecar, I'm going to say let's leave that alone for now - it's bit more complex, and won't have multiple controllers running through it. But we can definitely review in the future if we see a nice reuse case there. |
OK. I'll leave the SDK sidecar alone. Also, I agree: let's try https://github.com/heptiolabs/healthcheck for health-checking as you suggest. |
Resolved by #98 |
Since we'll have mulitple controllers because of #70 - we should move the health http check out of controller into somewhere central.
It may also make sense to have some kind of ability for a controller to respond to a health check (a controller registry perhaps?) for the /healthz endpoint.
The text was updated successfully, but these errors were encountered: