Search code examples
kuberneteshadoop-yarnmesos

I wonder why many resource managers (Yarn, Mesos, Kubernetes etc.) do not support setting the disk I/O resource usage of containers


In most resource managers, we can set the container's CPU usage and memory usage. But I'm curious about the technical reasons for not supporting disk I/O resource allocation for containers.


Solution

  • According to Using cgroups to limit I/O this requires cgroups v2 and that is quite recent feature for container runtimes.

    For Kubernetes support, you should probably follow initial kep for qos of storage v0.1 and cgroups v2 was added as alpha feature in Kubernetes 1.22.

    So it looks like there is work in progress on this.