-
Notifications
You must be signed in to change notification settings - Fork 362
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
[MRG] Update base image used for memory limit checks #677
Conversation
It seems like (locally) the limit doesn't actually get applied/used :-/ I'll need a bit of time to investigate what is going on. |
@betatim I vaguely remember that I had problem imposing mem limits for docker using python API. It accepted the size notation but it wasn't setting the limit properly. I'd try to use number of bytes explicitly. |
When we finally actually call the docker client the size is an integer without a postfix :-/ |
Mystery solved. The docker-py documentation says that a value of Updated our code to reflect this new knowledge. Though I am confused why all tests have passed on travis (for 5adc4b2) when they fail locally. Speculation: there is no swap for the whole machine on travis? |
8588fe2
to
032baf6
Compare
I dug around a bit more, and found docker/docs#4335. Is there a reason we're setting memory swap to be one byte more, instead of exactly the same? |
When I had it set to 1 (a guess for "if we can't disable then let's use 1byte") I got an error the said "swap has to be bigger than memory limit", I didn't check if they actually meant "equal or larger". Checking now. |
Looks like setting it to the same amount works! That is a nicer solution :D Thanks for asking. |
@betatim awesome! I changed the comment around it a little, otherwise it LGTM. |
Merged with @betatim's blessing. <3 |
[MRG] Update base image used for memory limit checks
Locally this still fails :-/