Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a high traffic site and want to setup failover to another service provider since the one that I have does have issues, I want to know what's the best way to do this and any recommended software for linux
Are you talking about failover of something you're self hosting and have two ISP providers for, or are you talking about a site that's located with a datacenter and failing over to a different datacenter?
I'll assume the second case.
At the simplest you could use a service such as nodeping to get notifications that your primary site is down and manually change DNS entries to point your site anywhere when there is a failure. Set a low < 30 seconds TTL on your records to ensure they aren't cached.
If your traffic is valuable then you could consider a paid service such as Dynect who will monitor and do the IP failover / failback for you.
You will also need to consider how you are going to replicate your site and deal with failover, this can get complex if it has a database backend as you'll need to take care of replication.
I am self hosting a site on a VPS, I want to have two VPS's However I want one active and one passive. I want them with two service provider's. I want to use something like heartbeat or DRBD so that if one fails then the other takes over.
Now I know this solution needs to virtual IP, but if I have to providers How do I failover.
Ok, so who is hosting your DNS for your domain? You'll basically need whatever you have detecting the VPS provider failure to alter your DNS accordingly.
Your detection script would then changes the IP in the zone file, updates the serial number and then reload bind.
I think TenTenths question about the complexity of your website needs to be answered as if databases are involved then replication needs to be considered. If not then a straight synchronization between the web root between the server and some DNS change facilities implemented.............
I will be using Db on another server so that's not the issue. Since it's an active passive will do an rsync, not many changes frequently so that should not be a prob. Anyways thanks for your reply I got my answer
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.