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

cloud: uncomment and fix default CPU resources in K8s configs #66065

Merged
merged 1 commit into from
Jun 8, 2021

Conversation

taroface
Copy link
Collaborator

@taroface taroface commented Jun 3, 2021

Relates to cockroachdb/docs#10578.

The default CPU resource limit/request was too large in the StatefulSet configs (I think I introduced this error previously). The updated value makes sense for the n2-standard-4 machines we use in our deployment tutorials, and the CPU/memory ratio is consistent with our recommendation in the Production Checklist.

Also uncommented the resources object, since we recommend always defining resource requests/limits explicitly. The updated docs in cockroachdb/docs#10578 make it clear that these values should be tailored to a production deployment.

cc @udnay

@taroface taroface requested a review from chrisseto June 3, 2021 22:19
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@chrisseto chrisseto left a comment

Choose a reason for hiding this comment

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

:lgtm_strong:

For those wondering n2-standard-4 has 4 CPUs and 16GB of memory, however Kubernetes/GKE reserves a chunk for itself, so 4 vcpus and 16GB of memory doesn't quite fit onto them :( These values will let the cluster run and allow room for additional services.

Reviewed 6 of 6 files at r1.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @taroface)

@taroface
Copy link
Collaborator Author

taroface commented Jun 8, 2021

bors r=chrisseto

@craig
Copy link
Contributor

craig bot commented Jun 8, 2021

Build succeeded:

@craig craig bot merged commit 97e7c9c into cockroachdb:master Jun 8, 2021
@taroface taroface deleted the k8s-cpu-resources branch June 8, 2021 18:43
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.

3 participants