Hey everyone…
I’m looking for any advice or guidance from any users who are hosting MariaDB via ContainerStation - either direct as a Docker Image, or indirectly, such as by hosting in on a ContainerStation image of e.g. ubuntu Server.
Today I’m running MariaDB natively on QTS - and it works extremely well. In fact, I have only one challenge, which is that the most recent QTS edition of MariaDB is 10.5.8… and I’m trying to use it with BookStack, which requires something a bit more recent.
I tried raising a Support Ticket to ask the QTS Developers if they had a roadmap for MariaDB on QTS, but if they do, they’re not willing to share it. That’s fair, I think, so I’m not complaining.
However, I think this leaves me with two options if I want to continue using all that lovely RAID-6 goodness and being hosted on a nice chunky UPS…
ContainerStation does list multiple MariaDB container images - dozens of them. Not having used ContainerStation for anything other than a very brief experiment with Zabbix a few years ago, I’m not sure which version to pick, especially as only one in the list of offered packages has a little green flag against it, which I guess means that it is the only “Official” image. Very interested in learning from anyone who has a MariaDB image deployed via Container Station as to how to do this correctly.
Also, one of the things I must be able to do is run backups of my databases. As I’m using the QTS instance at the moment, it was pretty easy to set this up - I wrote a simple shell script and I’ve added that to the QTS crontab system using QNAP’s recommended approach to edit that file. From what I read, I should be able to use Docker’s exec command to interact with MariaDB, but not sure how to schedule this to do things like run a “mysqldump” at e.g. 02:30 every morning. So I’m very interested in learning from anyone who has MariaDB in a container to discover their impressions and learn how they backup their data.
The second option is that, of course, I could run a full OS image. I see that there’s an ubuntu 22.04 LTS image available from Docker… which I’m familiar with and on which I can run a full MariaDB 12.x instance. I should be able to access the ubuntu Server via both SSH and VNC from it’s virtual IP and that would give me the ability to mount back to an NFS share on the native QTS so that I can access the MariaDB dump files to be able to export them to removable media for off-site storage.
But there are significant trade-offs here… Clearly a narrow Docker image for MariaDB will be less resource-hungry on my NAS (a QTS TVS-672XT with an i5 CPU and 32Gb RAM, running 6x WD Red 12Tb in RAID-6), but I have a fair bit of headroom. On the other hand, controlling, interacting with and backup up DBs may be harder to run in an automated fashion [Sure, I can access via e.g. PHPMyAdmin and save the DB interactively, but that’s not a reliable solution for me].
The obvious alternative is to deploy ubuntu - I’ll get all the features of the OS; the ability to set up cron jobs on that VM and to control the MariaDB instance more directly… but at the cost of increased resource consumption on the 672. Currently, the 672 consumption data is - CPU <5%; RAM 26%; network - next to nothing unless I’m streaming video content.
It feels like I’m at a point where I have a couple of viable options, either of which I can probably get to work. But there’s a lot of subtlety in the detail and I figure that I can save myself a lot of time and heartache by taking some good advice before I try to build out a solution.
Very keen to learn from anyone who has traveled this path before me - or anyone who is running either a MariaDB or ubuntu image in ContainerStation.
Thanks in advance.