-
Notifications
You must be signed in to change notification settings - Fork 825
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
Packed: Fleet scaled down removes GameServers from least used Nodes #401
Packed: Fleet scaled down removes GameServers from least used Nodes #401
Conversation
Build Failed 😱 Build Id: ba1f7fc2-6889-4b42-a3fb-3ad9113577de Build Logs
|
4d53112
to
ed1c1d1
Compare
Build Succeeded 👏 Build Id: 3ddbc2c9-d8e3-4e15-af83-633ed2ae1d27 The following development artifacts have been built, and will exist for the next 30 days:
(experimental) To install this version:
|
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.
LGTM. Although the title threw me off since I looked for nodes being removed. Should it have been named: Fleet scale down removes game servers from least used nodes?
}) | ||
|
||
// we need to get Ready GameServer until we equal or pass limit | ||
result := make([]*v1alpha1.GameServer, 0, limit) |
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.
this is good 👍
@EricFortin Oops - yep, changed the title! |
ed1c1d1
to
6e38a64
Compare
Build Failed 😱 Build Id: 3f17058c-1be6-4eb6-9169-92dc89b2b494 Build Logs
|
1 similar comment
Build Failed 😱 Build Id: 3f17058c-1be6-4eb6-9169-92dc89b2b494 Build Logs
|
6e38a64
to
957987a
Compare
Build Succeeded 👏 Build Id: 773d88f4-0142-4829-86ee-cad85262ae59 The following development artifacts have been built, and will exist for the next 30 days:
(experimental) To install this version:
|
This implements the strategy such that when a Fleet is scaled down, and has the "Packed" strategy, it removed GameServers from Nodes that have the least GameServers running on them. This also fixes up some issues with the OpenAPI validation as well. THis looks like it's working. Go team.
957987a
to
3d87fe7
Compare
Build Succeeded 👏 Build Id: 7c33353d-02ad-4a98-902c-ed70f887dd8b The following development artifacts have been built, and will exist for the next 30 days:
(experimental) To install this version:
|
This implements the strategy such that when a Fleet is scaled down, and
has the "Packed" strategy, it removed GameServers from Nodes that have the
least GameServers running on them.
This also fixes up some issues with the OpenAPI validation as well.
(Sorry - there was a bunch of cleanup in here, lemme know if you want me to point out the most important sections - basically controller.go and
filterGameServersOnLeastFullNodes
implementation)