I Published 66k Articles and now when I search it returns a 504 Gateway Time out error

Mukeshwar Singh

Regular Member
Joined
Mar 12, 2020
Messages
480
Reaction score
153
SO, I published 66,000+ articles on my Wordpress site and it's on Vultr High Frequency 8GB server, and every time I search something, the server load jumps to 120% and it returns an error causing my site to be shut down for a minute or so. It's on Nginx, and I'm pretty sure it's related to large number of files.

But, what can I do now? Screenshot 2021-04-27 at 1.25.38 PM.png
1619512727336.png
 
Did u do that in 1 second? lmao i can feel that server situation
 
Did u do that in 1 second? lmao i can feel that server situation
Nope, everything is done a long time ago, and it works fine if I enter the URL, however, when I search through the search bar, it just shows an error!
 
Everytime I use, it just throws an error, I'm thinking what will happen if a lot of visitors started doing it? Will my site be off forever, lol

You can try the following:

- add an index in Mysql
- disable the search and use a Google site search instead, there is probably a WP plugin for that
 
Well... Could be many things. Primarily I think the innodb settings aren't correct. Could be much more than that, and the fact the I somehow think that vultr doesn't deliver what they promise. Also... Wp isn't really scalable lol. There's a reason why pros avoid using wp for big projects.
 
66k articles? Whoaa!!
How did you do it? Purchased, rewrite, scrapped?
 
Wordpress is resource hunger. Lots of trash and transient data stored. Especially with that number of posts.

Try wp-optimize
 
Well... Could be many things. Primarily I think the innodb settings aren't correct. Could be much more than that, and the fact the I somehow think that vultr doesn't deliver what they promise. Also... Wp isn't really scalable lol. There's a reason why pros avoid using wp for big projects.
Can you explain a bit about the alternate that pros use instead of wordpress? I am mainly interested in bogging.
 
Can you explain a bit about the alternate that pros use instead of wordpress? I am mainly interested in bogging.
Frameworks. Yii2 is the one I prefer. It can be laravel. Can be django or flask if you prefer python. Could even be ruby on rails if you are feeling fancy. Just get out of this wp trap. You can't change shit in wp, and you have to work with the db scheme as well as the architecture you have. Switch to mvc/hmvc/mvvm. You will love it.

Edit: even a single server won't work if your site is really huge and you have really huge usage. You might want to have a separate server (possibly, many... using horizontal scaling) for db as well as for the app itself (same as db....many servers..). It can get really complex real quick. ;)
 
Last edited:
Well... Could be many things. Primarily I think the innodb settings aren't correct. Could be much more than that, and the fact the I somehow think that vultr doesn't deliver what they promise. Also... Wp isn't really scalable lol. There's a reason why pros avoid using wp for big projects.
Oh, so should I change to Linode?
 
Back
Top