I've been running a somewhat busy database (~800Mb) in GCP SQL. Due to the cost of it I've been working on migrating to a custom server running MariaDB. Which I'd heard could be much more cost effective. (I've been using this setup locally via nitro for development and I've not had any issues working with the same data. So at least the data seems to have no issue living in a MariaDB environment).
Now, running this setup in actual servers seems to be choking on the database and I can't figure out why. Here are the symptoms:
- Pages never load after actual data attempts to be loaded. Meaning that if I go to the login screen, it comes up almost right away, once I log in, it never ends loading.
- Any other page doesn't seem to finish (past 15min)
- Server's CPUs run at 100% (I've attempted using up to 8 cores, of course only one gets maxed at a time depending on how many connections I trigger).
- Memory rarely goes above 1.5Gb
- Server does not report any errors (even though server is running on developer mode) probably because the page never actually errors, it just never finishes working.
I've tried:
- Bumping up to higher server specs, no luck
- Clearing/Flushing caches and queue from cli (I mention the queue because I saw a lot of image transformation requests at one point)
- Checked craft logs as well as server logs. No particular info seems to be getting logged during these loads
Specs
- CraftCMS 3.7.19.1
- PHP 7.4 on Ubuntu via Apache (from scratch)
- MariaDB 10.7 (from Bitnami image)
Any help or pointers on how to troubleshoot what's going on are welcome. I'm not sure what to look for. :\
Thanks all!