re: vi /etc/systemd/journald.conf ,
we are starting out with these settings. could you tell me what changes you've made ?
Code:RuntimeMaxFileSize=50 RuntimeMaxFiles=100
PS: solving the lxc memory thing is huge.
It really depends on what your container can afford and the logging you want to keep.
For example, if your container as 2GB ram and you allocate 3GB to log journaling then the tmpfs will get full and the OOM will be called as the host will think the container use 3GB of ram of the 2GB allocated.
Since we have some containers with some low memory we use the following settings for all our containers in /etc/systemd/journald.conf
Code:
RuntimeMaxFileSize=5M
RuntimeMaxFiles=3
YMMV so tweak those according to your need