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

Adding Cluster Autoscaler annotations to game server pods to prevent eviction of active sessions. #20

Merged
merged 2 commits into from
Oct 13, 2021

Conversation

khaines
Copy link
Collaborator

@khaines khaines commented Oct 13, 2021

Closes #10

This change updates the game server controller to update game server pods with the "cluster-autoscaler.kubernetes.io/safe-to-evict" annotation. Active game servers will be marked as false, so the Cluster Autoscaler will not scale down the node they are assigned to until the active session ends.

…in an Active state, the related pod is marked with an attribute to prevent eviction by the Cluster Autoscaler
@dgkanatsios dgkanatsios self-requested a review October 13, 2021 20:38
@dgkanatsios dgkanatsios merged commit b66fd38 into PlayFab:master Oct 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scale down (ClusterAutoscaler) should not kill Active GameServer Pods
2 participants