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

controller/extensions: Add explicit requests/limits for ephemeral storage #2900

Merged
merged 2 commits into from
Jan 19, 2023

Conversation

zmerlynn
Copy link
Collaborator

@zmerlynn zmerlynn commented Jan 12, 2023

On Autopilot, ephemeral storage defaults to a request/limit of 1GiB, but on Agones we assume there's no ephemeral storage limit. The default persistent log limit is 10GB.

In this PR, we add a default resources.{limits,requests} block to the controller if the user has not already specified resources and set it to the persistent log maximum plus a fudge factor of 100MB to allow for the certs and some overhead. By default this comes out to 10100MB, which slides under the Autopilot 10GiB limit by virtue of GiB/MB differences.

Towards #2777

@zmerlynn zmerlynn added the feature-freeze-do-not-merge Only eligible to be merged once we are out of feature freeze (next full release) label Jan 12, 2023
@zmerlynn zmerlynn requested review from markmandel and roberthbailey and removed request for cyriltovena and dzlier-gcp January 12, 2023 01:22
@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 293eabb7-f34d-4c7d-a820-6cb39dfdbb82

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

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: dc85e748-5d79-4b51-a0ca-b6b328d3bc94

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

@zmerlynn zmerlynn force-pushed the limit-ephemeral-storage branch 2 times, most recently from 426b34b to 4179163 Compare January 12, 2023 01:51
@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 8b911009-e39d-4692-928d-141633fc65bd

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

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 9e33eb92-b992-41ef-9c1b-c9e0af824a9b

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/2900/head:pr_2900 && git checkout pr_2900
  • helm install agones ./install/helm/agones --namespace agones-system --agones.image.release=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.29.0-4179163-amd64

@Kalaiselvi84 Kalaiselvi84 removed the feature-freeze-do-not-merge Only eligible to be merged once we are out of feature freeze (next full release) label Jan 18, 2023
@roberthbailey
Copy link
Member

Looking at the generated install.yaml, it looks like the ephemeral storage is nudged up to 10100Mi which doesn't match the PR description. Did you mean to subtract 100 instead of add 100?

@roberthbailey roberthbailey self-assigned this Jan 19, 2023
@zmerlynn
Copy link
Collaborator Author

Looking at the generated install.yaml, it looks like the ephemeral storage is nudged up to 10100Mi which doesn't match the PR description. Did you mean to subtract 100 instead of add 100?

I changed the commit text but forgot to backpropagate it to the PR description - fixed now.

…rage

On Autopilot, ephemeral storage defaults to a request/limit of 1GiB,
but on Agones we assume there's no ephemeral storage limit. The
default persistent log limit is 10GB.

In this PR, we adds a default resources.{limits,requests} block to the
controller if the user has not already specified `resources` and set
it to the persistent log maximum plus a fudge factor of 100MB to allow
for the certs and some overhead. By default this comes out to 10100MB,
which slides under the Autopilot 10GiB limit by virtue of GiB/MB
differences.

Towards googleforgames#2777
@zmerlynn zmerlynn force-pushed the limit-ephemeral-storage branch from 4179163 to 46ce09a Compare January 19, 2023 19:02
@google-oss-prow google-oss-prow bot added the lgtm label Jan 19, 2023
@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: roberthbailey, zmerlynn

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

The pull request process is described 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

@roberthbailey roberthbailey enabled auto-merge (squash) January 19, 2023 19:17
@google-oss-prow google-oss-prow bot removed the lgtm label Jan 19, 2023
@google-oss-prow
Copy link

New changes are detected. LGTM label has been removed.

@zmerlynn zmerlynn disabled auto-merge January 19, 2023 19:33
@zmerlynn zmerlynn enabled auto-merge (squash) January 19, 2023 19:33
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 2b931ac2-c3d7-45bd-9dcf-29fdef6d9f44

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/2900/head:pr_2900 && git checkout pr_2900
  • helm install agones ./install/helm/agones --namespace agones-system --agones.image.release=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.30.0-46ce09a-amd64

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 9a2d4741-602f-4170-93dd-a3cf9486f156

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/2900/head:pr_2900 && git checkout pr_2900
  • helm install agones ./install/helm/agones --namespace agones-system --agones.image.release=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.30.0-24db40e-amd64

@zmerlynn zmerlynn merged commit efb2caa into googleforgames:main Jan 19, 2023
@markmandel markmandel added the kind/feature New features for Agones label Jan 20, 2023
@zmerlynn zmerlynn deleted the limit-ephemeral-storage branch January 25, 2023 22:22
@Kalaiselvi84 Kalaiselvi84 added this to the 1.30.0 milestone Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved kind/feature New features for Agones size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants