Added more limits example

This commit is contained in:
Benoît S 2021-09-03 05:03:53 +00:00
parent edbd3a6db9
commit 9d6c4add12

View file

@ -6,9 +6,19 @@ $ lxc info <name>
$ lxc config edit <name> $ lxc config edit <name>
$ lxc config show <name> $ lxc config show <name>
$ lxc exec <name> bash $ lxc exec <name> bash
# Some limits
$ lxc config set <name> limits.memory 512MB $ lxc config set <name> limits.memory 512MB
$ lxc config set <name> limits.cpu 2 $ lxc config set <name> limits.cpu 2
$ lxc config set <name> limits.cpu.allowance 50%
$ lxc config set <name> limits.memory.swap false
$ lxc config device set <name> root limits.read 30MB
$ lxc config device set <name> root.limits.write 10MB
$ lxc config device set <name> root limits.read 20Iops
$ lxc config device set <name> root limits.write 10Iops
$ lxc config device set <name> root size 20GB $ lxc config device set <name> root size 20GB
$ lxc config device override <name> 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 <name> $ lxc launch images:debian/11 <name>
$ lxc config set <name> environment.LC_ALL=en_US.UTF-8 $ lxc config set <name> environment.LC_ALL=en_US.UTF-8
$ lxc list $ lxc list