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

Fixed gameserverset overshooting the number of GameServers #621

Merged
merged 2 commits into from
Feb 25, 2019

Conversation

jkowalski
Copy link
Contributor

This happens typically during large turnups where some of the servers become unhealthy and get deleted. Now we treat Shutdown the same as deleted.

Also fixed how we count # of servers in GSS to exclude Shutdown and deleted ones.

Fixes #569

… during large turnups where some of the servers become unhealthy and get deleted. Now we treat Shutdown the same as deleted.

Also fixed how we count # of servers in GSS to exclude Shutdown and deleted ones.
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: b45561c4-afff-4c97-85b7-a335d164797e

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/GoogleCloudPlatform/agones.git pull/621/head:pr_621 && git checkout pr_621
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=0.9.0-94d1aba

@@ -321,6 +321,16 @@ func (gs *GameServer) GetDevAddress() (string, bool) {
return devAddress, hasDevAddress
}

// IsAllocated returns true if the server is currently allocated.
func (gs *GameServer) IsAllocated() bool {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! I've been wanting to write this for weeks.

Copy link
Member

@markmandel markmandel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🆗

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: c8e29425-8941-4a14-a1ef-2ecb43feaa78

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/GoogleCloudPlatform/agones.git pull/621/head:pr_621 && git checkout pr_621
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=0.9.0-c602551

@markmandel markmandel merged commit f6daaf1 into googleforgames:master Feb 25, 2019
@markmandel markmandel added the kind/bug These are bugs. label Feb 25, 2019
@markmandel markmandel added this to the 0.9.0 milestone Feb 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug These are bugs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GameServerSet sometimes creates more GameServers than necessary
3 participants