From 9d6c4add12992656b4c2103bdc0886996f364fb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20S?= Date: Fri, 3 Sep 2021 05:03:53 +0000 Subject: [PATCH] Added more limits example --- docs/Howtos/HowtoLXD.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/Howtos/HowtoLXD.md b/docs/Howtos/HowtoLXD.md index 56c3f5f..d64b067 100644 --- a/docs/Howtos/HowtoLXD.md +++ b/docs/Howtos/HowtoLXD.md @@ -6,9 +6,19 @@ $ lxc info $ lxc config edit $ lxc config show $ lxc exec bash +# Some limits $ lxc config set limits.memory 512MB $ lxc config set limits.cpu 2 +$ lxc config set limits.cpu.allowance 50% +$ lxc config set limits.memory.swap false +$ lxc config device set root limits.read 30MB +$ lxc config device set root.limits.write 10MB +$ lxc config device set root limits.read 20Iops +$ lxc config device set root limits.write 10Iops $ lxc config device set root size 20GB +$ lxc config device override root size=20GB +$ lxc profile device set default eth0 limits.ingress 100Mbit +$ lxc profile device set default eth0 limits.egress 100Mbit $ lxc launch images:debian/11 $ lxc config set environment.LC_ALL=en_US.UTF-8 $ lxc list