Hey, I have 2 dedicated server, and I will be expecting heavy load on certain times, and I need the second server to kick in like www2.website.com whenever my first one goes down. I need this also because I was experiencing a lot of ddos attacks. Can someone teach me or show me a website that I can read up? I have search on google but could not find anything...
Instead of doing what your looking for.... Why not get a single more powerful deidcated server and get DDOS protection. Would be alot easier to setup and cheaper.
A simple and effective way to distribute your loads across servers is Round Robin DNS. Google it up.. it's pretty simple and works pretty alright. You will however need to come up with a script or some to sync your SQL's and files between servers though.. Shoot me a PM if you'd be willing to pay a small amount for such a setup ..
A load balancing scheme would probably work. Check this out: http://www.linuxvirtualserver.org/architecture.html
A Round Robin is very easy to setup. Just go where you have your A records, stored. and add for example. example.com. IN A xx.xx.xx.xx example.com. IN A xx.xx.xx.xx When someone visits your site the DNS lookup will serve either one but not both. however round robin is not smart it won't know if one is overload or is offline. Buts its fuctional for being pretty easy to setup. But you will have to as mentioned before syn your SQL if you using it. That would an entirely different task. Lastly, you could also use a Static content url like static.example.com to serve all your Static images and Javascript etc. and Host those on a different server so in your A record you would put static. IN A xx.xx.xx.xx That would take the load off the server for serving your static content and place the load on the 2nd server. If you ever noticed every single big site out there does this, for good reason. When someone requests an image its also send useless cookie data along with it which the server has no use for to serve images. IF you look at Youtube, they serve their images from ytimg.com , Yahoo.com use yimg.com , Myspace.com uses myspacecnd.com, Facebook uses fbcnd.net.. So you can see if their doing it, its for good reason. I think This forum itself could use some optmization. If the owner just loaded the images on the forum from a 2nd server on a static url it probably would improve performance alot. And maby snyc up a few server in round robin.
Hi, We can set the round robin load balancing for you. if you are interested , please let us know and we can help you out.