From da326128761aa0612b89254b508b205afabea3a2 Mon Sep 17 00:00:00 2001 From: fab Date: Thu, 22 Aug 2024 00:04:22 +0200 Subject: [PATCH] Update README.md --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/README.md b/README.md index 9aec798..d04963e 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,33 @@ curl -sSL https://raw.githubusercontent.com/fabriziosalmi/proxmox-lxc-autoscale/ If the conditions set in the configuration are met, you will quickly observe scaling operations in action. +> [!IMPORTANT] +> You need to check your `/lib/systemd/system/lxcfs.service` file for the presence of the `-l` option which makes `loadavg` retrieval working as expected. Here the correct configuration: +> +> ``` +> [Unit] +> Description=FUSE filesystem for LXC +> ConditionVirtualization=!container +> Before=lxc.service +> Documentation=man:lxcfs(1) +> +> [Service] +> OOMScoreAdjust=-1000 +> ExecStartPre=/bin/mkdir -p /var/lib/lxcfs +> # ExecStart=/usr/bin/lxcfs /var/lib/lxcfs +> ExecStart=/usr/bin/lxcfs /var/lib/lxcfs -l +> KillMode=process +> Restart=on-failure +> ExecStopPost=-/bin/fusermount -u /var/lib/lxcfs +> Delegate=yes +> ExecReload=/bin/kill -USR1 $MAINPID + +[Install] +WantedBy=multi-user.target +``` + +If you have the commented one just update the `/lib/systemd/system/lxcfs.service` file and reboot when ready to apply the fix. + ## Configuration