Skip to content
This repository was archived by the owner on Feb 24, 2020. It is now read-only.

Conversation

@iaguis
Copy link
Member

@iaguis iaguis commented Jul 25, 2016

The ACE spec defines limit as:

limit: cores that can be consumed before the kernel temporarily throttles
the process

and core as:

core: seconds/second that the app/pod will be able to run. e.g. 1 (or
1000m for 1000 milli-seconds) would represent full use of a single CPU
core every second.

So setting 100 would mean 100 seconds/second which doesn't make sense.

Somehow this wasn't failing until now but testing the flavor src with
the (yet to be released) systemd v231 makes it fail.

The ACE spec defines limit as:

*limit*: cores that can be consumed before the kernel temporarily throttles
the process

and core as:

*core*: seconds/second that the app/pod will be able to run. e.g. 1 (or
1000m for 1000 milli-seconds) would represent full use of a single CPU
core every second.

So setting 100 would mean 100 seconds/second which doesn't make sense.

Somehow this wasn't failing until now but testing the flavor src with
the (yet to be released) systemd v231 makes it fail.
@alban
Copy link
Member

alban commented Jul 25, 2016

@alban
Copy link
Member

alban commented Jul 25, 2016

Is the error user-friendly if the ACI manifest wrongly contains "limit": "250" instead of "limit": "250m"?

Otherwise, LGTM.

@iaguis
Copy link
Member Author

iaguis commented Jul 25, 2016

No, there's no error, we accept 250.

@alban alban self-assigned this Jul 25, 2016
@iaguis
Copy link
Member Author

iaguis commented Jul 26, 2016

Test failures are not related, I'm gonna merge this.

If we want to protect from users writing things like "250" we can do a follow-up to update the isolator validator in the spec.

@iaguis iaguis merged commit fad02d2 into rkt:master Jul 26, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants