-
Notifications
You must be signed in to change notification settings - Fork 146
feat: add ulimits support to aws_batch (#1126) #1127
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
Conversation
For your consideration, @kiukchung @andywag @d4l3k |
@clumsy is the motivation here to increase or decrease |
That's correct, @kiukchung. Beyond the default value |
What happens if we just make ulimit default to 65536 instead of adding a scheduler option? |
The default for Batch is usually 65536 (hard) and 32768 (soft) and it's possible to override it but only by using privileged users, non-root users can't change it later on, @kiukchung :
but later
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1127 +/- ##
=======================================
Coverage 91.63% 91.63%
=======================================
Files 83 83
Lines 6392 6409 +17
=======================================
+ Hits 5857 5873 +16
- Misses 535 536 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
01ef2f6
to
b96a1e7
Compare
b96a1e7
to
4fd830b
Compare
@clumsy could you take a look at the failing pyre checks?
don't worry about the docs build. |
4fd830b
to
f299798
Compare
Fixed the warnings @kiukchung. I changed the return type of I'm not sure what was the reason to use an opaque |
|
It is narrower, just not clear why it's used for this return type. The code is now equivalent but with no warnings/errors and ignores. Let me know if you want me to revert of the changes, @kiukchung |
Need to be able to control nofile and memory ulimits for the container for AWS Batch: https://docs.aws.amazon.com/batch/latest/APIReference/API_Ulimit.html
Test plan:
[x] Added a unit test
[x] Tested via
Produces: