0

I was trying to find the the Redirect WordPress to a backup server automatically on stackoverflow and google. But I didn't find any good resource, that guides how to implement the backup server if primary server is down.

Example: I have a site https://onesoftwares.net, if the server goes down then I want to implement another backup server that has same setup of wordpress and it goes on as a secondary server.

NomanJaved
  • 111
  • 1
  • 7

1 Answers1

0

Cheap solution : buy a second vps and synchronise the blog on it (for example using mysql master/master replication and unison for files). Install heartbeat and haproxy, for example : https://www.howtoforge.com/setting-up-a-high-availability-load-balancer-with-haproxy-heartbeat-on-debian-lenny

If there is any apache or mysql problem on the first server, visitors will be redirected on the second server.

However : this solution does not ensure real high-availability : if the first vps is down (system halted), or if the network of the first vps is down, your website will be unavailable.

Entreprise class solution : Buy or rent two network appliances and two servers in a datacenter. Install wordpress like stated above and you get redudancy if ONE quipement fails.

Very expensive solutions :

  • use CDN : any CDN like akamai will do. Akamai will cache the content of your website and it will still be visible in case of outage.
  • Use multiples datacenters with DNS GSLB (https://www.a10networks.com/blog/global-server-load-balancing/) : even if an airplane crashes on your datacenter, the website will be down only for 5 minutes.
bgtvfr
  • 1,292