-
Notifications
You must be signed in to change notification settings - Fork 820
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
Adds gameservers per node count and distribution #551
Adds gameservers per node count and distribution #551
Conversation
Build Succeeded 👏 Build Id: 7a47ff10-dfa9-42a4-a3d0-87b2614ffca0 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website will exist for the next 30 days: To install this version:
|
pkg/metrics/controller.go
Outdated
nodesCountStats.M(int64(len(gsPerNodes)))) | ||
|
||
for _, node := range nodes { | ||
if c, ok := gsPerNodes[node.Name]; ok { |
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.
nit: can be simplified to unconditional
stats.Record(context.Background(), gsPerNodesCountStats.M(gsPerNodes[node.Name]))
because default value in a map is going to be zero.
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.
Interesting you found a bug here ! I was counting more than required, when I made the change metrics were different and correct.
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.
only minor comment, feel free to merge when ready
8e8383b
to
6fd7e3d
Compare
Build Failed 😱 Build Id: b0d31dad-0a0d-4b55-8581-c7cca0caae63 To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
Build Failed 😱 Build Id: e1677f87-4373-49e3-a022-20a4827f18dc To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
37fbb3b
to
697f43c
Compare
Build Failed 😱 Build Id: f011461b-f3f3-4540-ae9e-6a94cad1147c To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
697f43c
to
5022b65
Compare
Build Failed 😱 Build Id: b60b7354-524d-4d10-b90f-b4b1a8c0e231 To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
Build Failed 😱 Build Id: b961c74d-07a8-4c80-ae13-43e2df3de736 To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
@jkowalski you fixed this no ?
Still flaky it just passed without changes |
Build Succeeded 👏 Build Id: 23207d69-5fc1-4306-851a-cf13cb65e6ee The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website will exist for the next 30 days: To install this version:
|
Addresses #547
I've included gameservers per nodes (count and distribution) in our
Agones GameServers
dashboard and move everything related to allocations toAgones Allocations
.