So, I've been running a XF 1.5 site FOREVER (10+ years). Yeah, I should have upgraded it sooner, I know. But, life happens.
So, it was running on a dedicated server with Intel Xeon E3 1230 V3 cpu (8 cores) and 32gb of ram. The forum ran here since 2013 with zero issues, with a load average never even approaching 1.
Then about a month ago, that changed. The pages wouldnt load, and the load average on the server was peaking over 900. Memory never did swap.
So, my 13 years of bliss were running apache with mod_php with elasticsearch and mariadb all on the same server. So I made changes.
Got a new server just for the DB and had a private network installed between them.
Move apache away from prefork and moved to php-fpm.
Installed Redis and added front end caching.
Installed opcache.
Each time I did one of these things, the site would become more responsive and load will drop. But then, within 24 hours, it would be completely dead again.
So I switched tactics. I moved to a much faster dedicated server. AMD Ryzen 9 with 24 cores, 128gb ram, and nvme ssd. I moved everything over but didnt switch DNS yet. I upgraded to Xenforo 2.3, and also updated the resource manager and xenporta. I "closed" the site and moved cloudflare DNS to point to the new server (i hide the servers true ip behind cloudlfare). Im now running nginx, mariadb, php8.3 fpm, etc.
For 3 days, it ran perfectly. Its closed, so only admins could see the whole site, but it was crisp, responsive, everything was nice. Then I get home today that was changed. I now cannot even log into the site its so slow. The site is still off, but not even logged in, it takes 20-30 seconds to load the "We are closed" screen. I cant even log in now.
In the meantime, the db server is FULL of the same query:
Literally hundreds of the same query constantly.
The DB server is another dedicated server, 8 core, Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz, with 64gb ram and nmve disk. Its load is as .05.
The new web server sits at .3 load average.
Plenty of unused ram on both machines, iostat shows disk at 98% idle.
I upped php-fpm up to 300 threads, just to see if it would use them all, and it did immediately.
So, Im at a loss. I went from a 13 year happy forum on a quaint dedicated server and now im on a beefy server with the DB offloaded to another host and the forum is DEAD with it "closed" after 3 days of running blissfully.
Help?
So, it was running on a dedicated server with Intel Xeon E3 1230 V3 cpu (8 cores) and 32gb of ram. The forum ran here since 2013 with zero issues, with a load average never even approaching 1.
Then about a month ago, that changed. The pages wouldnt load, and the load average on the server was peaking over 900. Memory never did swap.
So, my 13 years of bliss were running apache with mod_php with elasticsearch and mariadb all on the same server. So I made changes.
Got a new server just for the DB and had a private network installed between them.
Move apache away from prefork and moved to php-fpm.
Installed Redis and added front end caching.
Installed opcache.
Each time I did one of these things, the site would become more responsive and load will drop. But then, within 24 hours, it would be completely dead again.
So I switched tactics. I moved to a much faster dedicated server. AMD Ryzen 9 with 24 cores, 128gb ram, and nvme ssd. I moved everything over but didnt switch DNS yet. I upgraded to Xenforo 2.3, and also updated the resource manager and xenporta. I "closed" the site and moved cloudflare DNS to point to the new server (i hide the servers true ip behind cloudlfare). Im now running nginx, mariadb, php8.3 fpm, etc.
For 3 days, it ran perfectly. Its closed, so only admins could see the whole site, but it was crisp, responsive, everything was nice. Then I get home today that was changed. I now cannot even log into the site its so slow. The site is still off, but not even logged in, it takes 20-30 seconds to load the "We are closed" screen. I cant even log in now.
In the meantime, the db server is FULL of the same query:
| 7130081 | xfuser | 10.0.0.5:59560 | x_forum | Execute | 0 | Writing to net | SELECT data_key, data_value
FROM xf_data_registry
WHERE data_key IN ('addOns', 'addOnsComposer | 0.000 |
Literally hundreds of the same query constantly.
The DB server is another dedicated server, 8 core, Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz, with 64gb ram and nmve disk. Its load is as .05.
The new web server sits at .3 load average.
Plenty of unused ram on both machines, iostat shows disk at 98% idle.
I upped php-fpm up to 300 threads, just to see if it would use them all, and it did immediately.
So, Im at a loss. I went from a 13 year happy forum on a quaint dedicated server and now im on a beefy server with the DB offloaded to another host and the forum is DEAD with it "closed" after 3 days of running blissfully.
Help?