-
Notifications
You must be signed in to change notification settings - Fork 11
consider placing rlimits in own namespace #413
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
Comments
I find it very reasonable to namespace all rlimits. The output format still needs to remain compatible with existing iocage versions, so that I suggest to omit the |
imo, an upon further contemplation, i'd like to weaken |
So if you have set an rlimit, having a toggle that enables or disables then seems dangerous. If you properly limit your resources, but forget to set that toggle, it could be the case that limits get silently skipped. So I'd prefer to assume them to be enabled as soon as at least one limit is set. |
This one would be nice as we're also waiting to stabilize our infrastructure and with this in mind to also have native cpuset support. |
Before working on this config property grouping, which I really would love to see rather sooner than later, the impact for legacy iocage support should be evaluated. So far we do set legacy compatible config values, if config properties are inherited from iocage. It is easy to map a value when saving or reading, but it's another issue if the config property name changes entirely. I'm not a fan of the idea having to maintain two config files, introducing breakage with iocage legacy (and python-iocage < 1.0). Maybe the best option we have is to store them as is, but present the values with a mapped name (X -> rlimit.X) from JailConfig. |
Btw. there already is an Issue for the cpuset feature: #636 |
Currently, all properties are added to the "global namespace" in our config.
That pollutes it quite a bit, and is confusing, when comparing it with the defaults.
I propose moving rlimits to their own namespace, by prefixing them with
rlimits.
.n.b.: it might also be helpful to extend our getter to not just return one or
all
, but also all from anamespace.
.The text was updated successfully, but these errors were encountered: