Tips on how to manage load after reboot

SamTzu

Renowned Member
Mar 27, 2009
523
17
83
Helsinki, Finland
sami.mattila.eu
I have been trying to spread the load so to speak after host reboots.
Greatest problem now seems to be MariaDB.
When all LXC containers start Maria causes very high IO delay on the host.
Any idea how to fix that or spread that around (without startup delay)?
 
Hi,
when you go to Start/Shutdown order under Options in your VM, you can set a startup delay. Our documentation has an explanation how the values are interpreted [0].
Quote of OP:
Any idea how to fix that or spread that around (without startup delay)?

You are probably going to have to limit that (somehow) within the LXC (Maria DB) itself. There is probably a way - I'm just not familiar with it.
 
Last edited:
Quote of OP:
Whoops, overlooked that.

You are probably going to have to limit that (somehow) within the LXC (Maria DB) itself. There is probably a way - I'm just not familiar with it.
You might be able to limit the IO via cgroups, but there is one big limitation. If you are using ZFS, this method is out, since it isn't integrated well enough into the Linux kernel to be affected by the cgroup limits. I'm not sure about other file systems, but AFAIK, all the common ones that ship natively with the kernel should work. You'll want to set io.max which you can find for each container at /sys/fs/cgroup/lxc/<vmid>/io.max [0].

[0] https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v2.html#io-interface-files
 
  • Like
Reactions: SamTzu

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!