I have a website hosted on a VPS, But now i have a problem. My website, downed several times in last month and i change my service but still i have the same problems... I want to do something, i want, my site's data and database store on 3 different server simultaneously and when one of them goes down, my site loads from another... i'm using Linux servers. How i can do this? what i need to know? i don't have any information about this. what software's and techniques i need to use. please help me in easiest way. thanks in advance
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.
There are many solutions, ranging from the simple to the ultra-complicated and difficult. For a simple static Web site (only files to serve), I use:
This is not load-balancing (the DNS does not do it) but it spreads the load on the machines. Also, with this setup, the failover is manual (change the DNS records).
In your case, I note that you do not have static files (the simplest case) but a database. But could it be possible to export from the database to static files? It makes the configuration of a reliable and redundant Web site much simpler (of course, you'll lose some agility, since you'll have one more step before publishing).