Load sharing Wordpress site?

hdaackda

Junior Member
Joined
Jun 1, 2015
Messages
193
Reaction score
77
How can I set up my wordpress on 2 servers (so that load is shared?).. Slightly heavy traffic and server goes down

I have 1 VPS with linux and root, and 2 servers with cpanel access. I dont now how to configure linux eetc


regards
 
What kind of heavy traffic? How many pageviews?

What are the resources on the server?
 
High Availibility infra are complex and not easy to achieve. You would need to split apache and MySQL.
You need to define the load issue you are facing and see whether a VPS upgrade could solve the issue.
There must be dozens of reasons why the load can go sky high and the answer isn't always going for an HA setup. (slow hard drives , apache slots, bad PHP optimization, no caching system, bad MySQL queries, and so on.. )

My point is that there must be some intermediate step you can take to make it better before thinking of such infrastructures which aren't generally done with VPSs by the way but dedicated servers. Since the VPS are scalable it doesn't make much sense ;)
 
What kind of heavy traffic? How many pageviews?

What are the resources on the server?

5000 page views daily (also, I am not getting any money from google ads.. max 0.5$/day... any good one tht gives more revenues?)

Link went viral on reddit and a 1000 ppl came at once!

resources 76mb ram and 1ghz cpu.. ram is too low
 
Move to nginx and use the caching options, it will handle over 10k pageviews without a problem.
Next, install apc caching for php and the w3cache plugin for wordpress to lower as much as you can your current load.
 
Why not use nginx? it's faster than apache and acts like a proxy and can be configured as a load balancer
https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-load-balancing
will do exactly what you want. You might also want to load static content from the cloud (Amazon, cloudflare, google docs, dropbox).

Hope it helps

I found many articles that tell me to use nginx.. Problem is, I dont know how!

Any easy article?

(btw, I have 1 VPS with root access, and the current hosting is on dedicated server but I dont have root access)
 
Right now another of my link going viral and my site is down again :( :(

Pls also tell me how to make money from my 5000 daily visitors? Google is just a scam. Hardly a dollar a day
 
Since you have traffic from reddit, most of the users there use adblockers, so adsense+reddit is not a good idea. Regarding the load sharing that you want to implement, i would suggest increasing the memory (RAM) first. 76MB of ram is really low, considering that a slipstreamed linux needs at least 32MB of RAM. Try to upgrade your memory and install nginx, it is a little bit more forgiving to the memory than apache.
 
Back
Top