-
Notifications
You must be signed in to change notification settings - Fork 13
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
ROX-15980 set resource requests and limits to the egress-proxy #991
ROX-15980 set resource requests and limits to the egress-proxy #991
Conversation
limits: | ||
cpu: 100m | ||
memory: 128Mi | ||
requests: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you got the request and limit values backwards.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤦
/retest |
egressProxy: | ||
image: ubuntu/squid:5.2-22.04_beta | ||
replicas: 2 | ||
|
||
replicas: 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this doesn't need to be fixed in this PR, but this does make me wonder if we should actually run two replicas in the cloud service for all the usual reasons.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or even 3.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
cpu: 100m | ||
memory: 128Mi | ||
limits: | ||
cpu: 200m | ||
memory: 256Mi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about we use requests==limits at least until we have more replicas? We'll likely be setting resources for a bunch of pods in the next rollouts (see sibling PRs) so the risk of facing evictions will be higher than normal and I'm a bit worried with one replica this may cause service degradation for non-trivial central configurations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can add the replicas in this PR perhaps?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't mind.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kurlov, kylape, ludydoo, porridge 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 |
Sets the resource requests and limits for the egress-proxy.
The values were derived from the observed metrics on prometheus/grafana. These resource defaults are a bit overkill for the actual observed usage. I was not comfortable putting less than this for a production deployment.
It also seems like the
values.yaml
file was ignored for thetenant-resources
. This PR also adds changes to use these values by default and apply overrides on top of them.The current cluster configuration deploys 1 replica of the
egress-proxy
, so I've changed the value to reflect that as well.