Increase keyring quota automatically once it is reached#727
Increase keyring quota automatically once it is reached#727mlaventure wants to merge 1 commit intoopencontainers:masterfrom
Conversation
Signed-off-by: Kenfe-Mickael Laventure <[email protected]>
|
idk, seems kinda something we don't want to change |
|
there is a golib for keyctl that is pretty nice https://github.com/jsipprell/keyctl |
|
is someone actually using this and hitting the quota? |
|
imo this feature is causing more pain than its worth, like the whole keyctl session in runc thing, but just throwing it out there, carry on :)
|
|
AFAICT we either need to:
I'm not a huge fan of 2. As for 3, reverting it would basically let any container see the keys of every other containers. Anyone got a number 4? |
|
So the thing is I can see the key ids and key users of other containers and On Wed, Apr 6, 2016 at 8:17 PM, Kenfe-Mickaël Laventure <
Jessie Frazelle |
|
Why doesn't containerd deal with this? I don't think we should aggressively increase limits that have (presumably) been set by an administrator. People might be using |
|
I think this should be dealt at a higher level. Or even just a message could be printed by docker/containerd when it is started warning the admin about the limit. |
|
+1 for moving this to upper layer. @mrunalp i dont think we want to print the warning when we can start the container ( to not polluting the stream ). But catching EDQUOT and print out a more human-friendly error is fine i think. |
|
@dqminh I was suggesting that the daemon (either docker/containerd) print this in its logs on startup, not when it is trying to launch a container or in runc. |
|
|
|
I still feel that this is something that shouldn't be automatically done by runC. runC's job is to start one container, so it doesn't make sense (to me) that runC should start increasing system limits because it can't start said container. runC shouldn't assume that's what a user of runC wants (maybe My suggestion is to make containerd set a particular quota (or dynamically change it) based on options that the sysadmin has provided. Or, as you said, we can make it so that containerd will resize it automatically if |
|
Hum, I see your point. I guess it makes sense. I'll move this up to containerd when I'm back from my pto then. On Fri, Apr 8, 2016, 5:51 PM Aleksa Sarai [email protected] wrote:
|
Signed-off-by: Kenfe-Mickael Laventure [email protected]
Fixes #726
I'll be on PTO in Australia with little access to internet until the 17th though, so I'm happy for someone else to carry this :)