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

Set resource limits for all applications #12

Open
hollomancer opened this issue Oct 16, 2017 · 5 comments
Open

Set resource limits for all applications #12

hollomancer opened this issue Oct 16, 2017 · 5 comments

Comments

@hollomancer
Copy link
Member

Kubernetes doesn't know how to size them to put them on nodes, so it doesn't know how to scale up. Along with that, when k8s scales down, applications should know how to gracefully shut themselves down so requests aren't dropped

@ohaiwalt
Copy link
Member

ohaiwalt commented Oct 29, 2017

Each Deployment manifest we create should have a resource block specifying at least requests, like so:

resources:
  requests:
    cpu: 100m
    mem: 128Mi

These include:

  • operationcode_backend
  • operationcode_frontend
  • operationcode_bot (currently defunct)
  • town_crier

With docs here

@ohaiwalt
Copy link
Member

ohaiwalt commented Oct 29, 2017

Actual resource usage on a Sunday afternoon

operationcode-backend-3485932704-9kt5d           2m           435Mi
town-crier-1047233007-fgtxl                      0m           49Mi
operationcode-frontend-1058172611-4jhx2          0m           52Mi
operationcode-psql-postgresql-2918048348-8q0rk   4m           54Mi
operationcode-backend-3485932704-84vnn           2m           421Mi
operationcode-bot-1758919366-rvlww               0m           52Mi
operationcode-frontend-1058172611-75gf5          0m           65Mi
operationcode-bot-1758919366-qjsp9               0m           54Mi
cloudwatch-l44t7                                 7m           5Mi
operationcode-redis-redis-1146509343-dr3j9       3m           12Mi

@nellshamrell
Copy link
Collaborator

Let's do this post-migration.

@steaksauce-
Copy link

What limits do we want to impose? ie 128Mi for memory and 0.1 for cpu

@steaksauce-
Copy link

I added some very generic resource limits to everything (with 2 different PRs, since one PR affects the location of some of the deployments).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants