Repository navigation
feat(default-memory-limits): set default memory limits - #4960
Conversation
ceaaa52 to
4ac01d9
Compare
There was a problem hiding this comment.
It's set based on the memory limit by default, since memory limits weren't defined before they weren't being applied
Code here
gateway/internal/infrastructure/kubernetes/proxy/resource.go
Lines 356 to 369 in 2a10d47
…ners Signed-off-by: Ryan Hristovski <[email protected]>
4ac01d9 to
7c5bdda
Compare
|
looks like 32 cause OOM on master. |
|
@zirain hmm, it's generally not best practice to have memory request & limits not equal to each other - but given that this is a shutdown manager it could make sense to have separate values. What do you think:
I didnt have time to fully benchmark it's resource use but it seems to sit idle around 25Mi and during shutdown (in my environment) it can hit around 70Mi. I'm leaning #1 due to the nature of the shutdown manager - but this could cause resource issues for users in the future. |
|
can you take a look at #4978? |
|
@ryanhristovski this block CI, I didn't figure out why(test passed on my local). let's revert it first, please resubmit later if you still want this, sorry for this. |
This reverts commit fddcf9b. Signed-off-by: zirain <[email protected]>
Revert "feat(default-memory-limits): set default memory limits (#4960)" This reverts commit fddcf9b. Signed-off-by: zirain <[email protected]>
|
my 2p for the future: |
Fixes #4882