-
Notifications
You must be signed in to change notification settings - Fork 42.6k
Description
Before we implement QoS tiers (#147), we need to support basic resource limits for containers and pods. All resource values should be integers.
For inspiration, see lmctfy:
https://github.com/google/lmctfy/blob/master/include/lmctfy.proto
Arguably we should start with pods first, to at least provide isolation between pods. However, that would require the ability to start Docker containers within cgroups. The support we need for individual containers already exists.
We should allow both minimum and maximum resource values to be provided, as lmctfy does. But let's not reuse lmctfy's limit and max_limit terminology. I like "requested" (amount scheduler will use for placement) and "limit" (hard limit beyond which the pod/container is throttled or killed).
Even without limit enforcement, the scheduler could use resource information for placement decisions.