Hi guys,
We are running LXD container instances on Ubuntu 18.04 hosts in a non-clustered mode - LXD version ‘3.0.3’. We are periodically executing various “lxc exec ${INSTANCE_NAME} …” commands on the host to pull BGP/IPSec/etc status from the containers and using logstash to glean the desired information. The issue we are seeing is that as we scale up the number of containers and thus overall number of “lxc exec” commands we are seeing highly elevated disk usage which seems to be due to disk I/O writes to the ‘global’ lxd database (/var/lib/lxd/database/global) - it seems to mainly be the ‘operations’ table that we can see. Our assumption is that possibly every “lxc exec” command execution is getting logged? Does this sound accurate?
If we disable these periodic “lxc exec” commands via logstash our disk I/O issues go away. Are there any knobs that we can tweak/disable around writes to the LXD database?
thanks!