I have two R-Pi 4 (4GB RAM), running apache2/php7.3-fpm. The only current difference: one is on NC 18.x.x and one is on NC 19.x.x However, this issue was present when they were both running 18.x.x
The one running 19, its mysqld slowly fills swap, as does cron – but at a much slower pace. Swap never seems to flush and there’s plenty of memory. Swappiness = 10
The one running 18 has identical configs to the one running 19. (At least I think they do but something must be different). It does not, or has yet had any reason to, touch swap.
The only other difference is that the database on the 19 (the one slowly filling swap inexplicably) is maybe twice as big as the other one. But we’re talking ~200MB to ~100MB.
The mariadb configs are identical – unless I’m missing something, and I’m convinced I must be.
If anyone has any clue or needs any more details to understand this issue, I’m happy to oblige.