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 am running 2 servers.
I use round robin to balance the load but that's not what I really want as one server is 2 times slower than the other.
What I would like is to use the fast server as main server and the slow one as backup.
depends at what level you want to implement is, but essentially you can use a heartbeat to pull an ip address across if it stops responding in the slave's opinion. check http://linux-ha.org or i was looking at a very simple specific implementation here... http://www.onlamp.com/pub/a/onlamp/2...inuxhacks.html
can't say i like that approach. if this is at all internet facing, you can't guarentee those TTL's are adhered to at all. seems like a long long way round if those two boxes literally are next to one another...
Indeed it might have been wise to mention it.
But for me it was obvious...why should I have 2 servers at the same location.
In this case, we can only cover a hardware failure...not a network or power failure.
Sorry not to have described the problem more accurately.
Would you please give us idea, how you are load balancing two servers using round robin ?
Do you have any other scheduling option other than round robin, so that out of three requests, two requests will be server by main server and one by second server ?
Indeed it might have been wise to mention it.
But for me it was obvious...why should I have 2 servers at the same location.
In this case, we can only cover a hardware failure...not a network or power failure.
Sorry not to have described the problem more accurately.
obvious? so you know nothing about conventional resilient architectures then...? two servers, two electrical supplies backed up by two ups's two halfs of a resileint network, two internet feeds... one site.
Last edited by acid_kewpie; 05-24-2007 at 03:29 AM.
Would you please give us idea, how you are load balancing two servers using round robin ?
Do you have any other scheduling option other than round robin, so that out of three requests, two requests will be server by main server and one by second server ?
that'll be DNS, and not likely to help you one bit. DNS RR's only help spread the load of a busy server with a lot of clients. if it's only a few then it'll most likely be very unpredictable and asymmetric. may well be possible to just list one servers A record twice i guess.
Last edited by acid_kewpie; 05-24-2007 at 03:29 AM.
obvious? so you know nothing about conventional resilient architectures then...? two servers, two electrical supplies backed up by two ups's two halfs of a resileint network, two internet feeds... one site.
Sorry chris but by experience:
- even a good hosting company can have all their connections down even with redundancy like you mention above (I have had the case with 3 providers yet)
- it is recommended to have 2 separate class C networks (at least for DNS)...difficult to find a provider having those class C's.
- so except for the power supply...well I need to select different hosting solutions at different places...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.