Open domdom82 opened 8 years ago
we added some of these to a configuration file during the last round of limit enforcement and then pulled them back out for this reason: Many of these limits should be tied to entitlement not a configuration file.
@rabbah I see. In this case these limits can not be enforced by AppArmor because we can't make new profiles dynamically based on entitlement. The cpu/mem/disk limits will then only be handled by the invoker based on entitlement. However there should be a default set of limits.
This is a design discussion, is there a discussion issue opened for this?
There is another parameter, however, that will fit with the proposed model and I will try to do it via consul as suggested. This is the cpu share parameter and possibly whether invoker should use parallel operations.
We use a self-hosted Openwhisk for running custom python functions in our application. Is there a way to increase the memory limit of actions? We have a use case which requires the actions to have more than 512MB memory.
The memory limits for actions were factored out so you can set them per deployment. Here’s the pr https://github.com/apache/incubator-openwhisk/pull/3148
Thanks, @rabbah.
When limiting actions in terms of nproc, nfile and cgroup memory usage we currently hard-code those limits.
They are defined in
I propose we do not hard-code those limits. They should be adjustable via config.
My suggestion:
ansible/group_vars/all
We should also think about making the action time limit configurable as well.