-
Notifications
You must be signed in to change notification settings - Fork 819
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
Mark GameServer Unhealthy if allocated HostPort isn't available #408
Mark GameServer Unhealthy if allocated HostPort isn't available #408
Conversation
Build Succeeded 👏 Build Id: a3f2d3f3-30b3-4ccd-87f3-55a4e6489e4a The following development artifacts have been built, and will exist for the next 30 days:
(experimental) To install this version:
|
pkg/gameservers/health.go
Outdated
case v1alpha1.Starting: | ||
hc.logger.WithField("key", key).Info("GameServer cannot start on this port") | ||
unhealthy = true | ||
reason = "No more of the allocated ports free" |
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.
Your method and test works with free ports
but your real code return a string with ports free
. These need to be aligned.
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.
Done!
This marks a GameServer as unhealthy is the allocated port isn't available on a given Node for whatever reason. Since it's marked as Unhealthy, the Fleet controller will delete it, and the new GameServer will be allocated a new random port that it deems open and available. I've yet to see this in the wild, but I had mild concerns, so figured I'd fix it now rather than later.
f7aaa34
to
243a869
Compare
Build Succeeded 👏 Build Id: f578ecf8-e4ef-40ff-9b6a-be520e08c392 The following development artifacts have been built, and will exist for the next 30 days:
(experimental) To install this version:
|
Build Failed 😱 Build Id: ac3b590b-5c54-44a0-ba20-7e87b0c47617 Build Logs
|
Build Succeeded 👏 Build Id: 6862e85a-5b60-4089-a974-d72c895d1f46 The following development artifacts have been built, and will exist for the next 30 days:
(experimental) To install this version:
|
This marks a GameServer as unhealthy is the allocated port isn't available on a given Node for whatever reason.
Since it's marked as Unhealthy, the Fleet controller will delete it, and the new GameServer will be allocated a new random port that it deems open and available.
I've yet to see this in the wild, but I had mild concerns, so figured I'd fix it now rather than later.