QBittorrent hogs down k3s

Hey there.

I recently had a big bug with qbittorrent which seems to mess up my server install.

I am still unsure if this is qbittorrent but strangely all my problems appeared when I added a torrent, and they all vanished when I (after some struggle) managed to kill the container!

The k3s_daemon.log shows a ton of Slow SQL requests similar to this, grinding the apps to a complete stop, and making them impossible to scale down as well.

time="2024-05-06T19:08:15+02:00" level=info msg="Slow SQL (started: 2024-05-06 19:08:10.92386741 +0200 CEST m=+100781.104534583) (total time: 5.003893928s): INSERT INTO kine(name, created, deleted, create_revision, prev_revision, lease, value, old_value) values(?, ?, ?, ?, ?, ?, ?, ?) 

The CPU usages jumps dramatically, with all of it being iowaits, and the network use goes haywire as well (but where does the traffic go?).

I am not using the TrueCharts version - I’m running the TrueNAS version of qbit.

Any ideas? I won’t be using qbit in the meantime.