|
|
|
|
|
by davidstrauss
4742 days ago
|
|
> Now, if I can figure out how to do the same with disk? Hi, I'm the author of the article. You should check out cgroups. You can isolate disk access between services and containers using block I/O shares with cgroups. The way shares work in cgroups is that there's unlimited access until the resource comes under contention. Then, the kernel schedules activity based on which cgroups have shares remaining. This allows scheduling to be "fair" in the sense that no cgroup always wins; access just becomes proportional. We use block I/O shares (and other cgroup methods) for isolating containerized MySQL instances on Pantheon, the platform I work on as CTO. |
|