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

sdkserver: When waitForConnection fails, container should restart quickly #3157

Merged
merged 5 commits into from
May 17, 2023

Conversation

zmerlynn
Copy link
Collaborator

  • waitForConnection is using the context provided by NewSDKServerContext, but that context isn't closed until we see a Shutdown(). That's not right - we want to restart the SDK server quickly, which might save the game server in this odd case. So, move waitForConnection up into main so that we can use the "normal" context.

  • Additionally, I noticed that when we went into graceful termination, the liveness probes stopped! Agghhh. So, this reverts part of Rework game server health initial delay handling #3072: instead of using /gshealthz as our heartbeat, fall back to using a go routine. But we still honor the intent of Rework game server health initial delay handling #3072: health checks should start when we see the first /gshealthz.

  • Along the way, add some logging, and make it consistently "SDK" in logging.

…ckly

* waitForConnection is using the context provided by
NewSDKServerContext, but that context isn't closed until we see a
Shutdown(). That's not right - we want to restart the SDK server
quickly, which might save the game server in this odd case. So, move
waitForConnection up into main so that we can use the "normal"
context.

* Additionally, I noticed that when we went into graceful termination,
the liveness probes stopped! Agghhh. So, this reverts part of googleforgames#3072:
instead of using /gshealthz as our heartbeat, fall back to using a go
routine. But we still honor the intent of googleforgames#3072: health checks should
start when we see the first /gshealthz.

* Along the way, add some logging, and make it consistently "SDK" in
logging.
@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 39818ae3-b6ca-4bfb-bafd-269e5ed73cde

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

@google-oss-prow google-oss-prow bot added the lgtm label May 16, 2023
@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: gongmax, zmerlynn
Once this PR has been reviewed and has the lgtm label, please assign cyriltovena for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-prow
Copy link

New changes are detected. LGTM label has been removed.

@google-oss-prow google-oss-prow bot removed the lgtm label May 16, 2023
@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 09ff8d9f-8fe8-42b8-96a1-652795491fbc

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 16ff04af-942c-4a6a-b8d7-7aefcb12ef15

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/googleforgames/agones.git pull/3157/head:pr_3157 && git checkout pr_3157
  • helm install agones ./install/helm/agones --namespace agones-system --agones.image.release=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.32.0-5e81fd4-amd64

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: e31c2c53-8a00-4b71-80a8-8e6251810340

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 98d7574e-f8cc-4773-9cda-e52606b8d5ce

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/googleforgames/agones.git pull/3157/head:pr_3157 && git checkout pr_3157
  • helm install agones ./install/helm/agones --namespace agones-system --agones.image.release=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.32.0-64b227b-amd64

@gongmax gongmax merged commit 63a86c9 into googleforgames:main May 17, 2023
@Kalaiselvi84 Kalaiselvi84 added the kind/bug These are bugs. label May 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug These are bugs. size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants