June 2016
Beginner
456 pages
9h 31m
English
In this recipe, we will learn to set resource limits on containers. LXD uses the cgroups feature in the Linux kernel to manage resource allocation and limits. Limits can be applied to a single container through configuration or set in a profile, applying limits to a group of containers at once. Limits can be dynamically updated even when the container is running.
We will create a new profile and configure various resource limits in it. Once the profile is ready, we can use it with any number of containers. Follow these steps:
$ lxc profile create cookbook Profile cookbook created
lxc profile edit. This will open a text ...Read now
Unlock full access