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

Add allocator resources #1874

Merged
merged 5 commits into from
Nov 2, 2020

Conversation

8398a7
Copy link
Contributor

@8398a7 8398a7 commented Oct 29, 2020

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line:

/kind breaking
/kind bug
/kind cleanup
/kind documentation

/kind feature

/kind hotfix

What this PR does / Why we need it:
I've made the allocator resources configurable.

Which issue(s) this PR fixes:

Closes #1873

Special notes for your reviewer:

@google-cla google-cla bot added the cla: yes label Oct 29, 2020
@8398a7 8398a7 changed the title Add allocator resources (#1873) Add allocator resources Oct 29, 2020
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: d1e87399-dde6-4d70-bb65-6315c431c91c

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/1874/head:pr_1874 && git checkout pr_1874
  • helm install ./install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.10.0-9bdf4f7

@markmandel markmandel requested review from pooneh-m and removed request for EricFortin and dzlier-gcp October 29, 2020 17:03
@markmandel markmandel added area/operations Installation, updating, metrics etc kind/feature New features for Agones labels Oct 29, 2020
@markmandel
Copy link
Member

This LGTM! @pooneh-m can you see anything we should care about? (I don't think so, but figured I'd double check)

@@ -248,6 +248,7 @@ The following tables lists the configurable parameters of the Agones chart and t

| Parameter | Description | Default |
| --------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ---------------------- |
| `agones.allocator.resources` | Allocator pods resource requests/limit | `{}` |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be helpful to add a small section with an example of the value for resources or a reference link?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ooh, I like it (we should add it to the other config options. How about this:

Suggested change
| `agones.allocator.resources` | Allocator pods resource requests/limit | `{}` |
| `agones.allocator.resources` | Allocator pods [resource requests/limit](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) | `{}` |

Which also has explanations and examples of resource limits and requests. Sound good?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 also, I think a simple example would also help with how to set the value. Since it is a compound structure, it is not easy to see how the input should look like.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely wouldn't hurt - especially as we have a few config options line this. Maybe add an extra example to:

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,

(Or is this something you would have to use a values.yaml for? Trying to find some helm docs we could even point to)

Copy link
Contributor Author

@8398a7 8398a7 Oct 30, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I know, resources often uses values.yaml.
I haven't seen many examples of using set to configure it.

What you see most often are commented out settings.

resources: {}
  # requests:
  #  cpu: 1
  #  memory: 256Mi

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added instructions on how to set the values.

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: edbbb4de-dcaf-45f6-bb66-86882fc40ae3

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/1874/head:pr_1874 && git checkout pr_1874
  • helm install ./install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.10.0-707cc2a

Copy link
Contributor

@pooneh-m pooneh-m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the change.

@google-oss-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 8398a7, pooneh-m

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

@google-oss-robot
Copy link

New changes are detected. LGTM label has been removed.

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 5c36a806-d356-4397-ba48-f1defa74a19e

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/1874/head:pr_1874 && git checkout pr_1874
  • helm install ./install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.10.0-194bbc1

@markmandel markmandel added this to the 1.10.0 milestone Nov 2, 2020
@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 08e8b5e5-1a92-4eed-bc74-7c78eed47ee9

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

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 01c1c624-42ae-45a2-99cb-f6001312bc0d

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/1874/head:pr_1874 && git checkout pr_1874
  • helm install ./install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.10.0-9d90d53

@markmandel markmandel merged commit 8ef7d31 into googleforgames:master Nov 2, 2020
@8398a7 8398a7 deleted the addAllocatorResources branch November 3, 2020 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved area/operations Installation, updating, metrics etc cla: yes kind/feature New features for Agones size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding allocator resources
5 participants