Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I've got a 3rd party off-the-shelf windows application that needs to connect to a Web Service (IP address or URL) installed onto another server (actually running on Windows 7 Professional).

My user wants me to implement a fail-over solution in which if the primary web server fails to respond, the 3rd party application will automatically connect to a backup server.

Is there a way for me to implement this without implementing clustering (hardware or Windows NLB)?

Update: Please note - I do not wish to implement a load balancer on the server end.

share|improve this question
    
Do you have control of both servers? –  rnxrx May 25 '12 at 5:07
1  
Windows 7 of any form isn't a server OS. –  Iain May 25 '12 at 6:37
    
Related: serverfault.com/questions/392156/… –  tombull89 May 25 '12 at 7:31
    
@lain - "Windows 7 of any form isn't a server OS" - The application runs a Web Service, so it is a server even though we don't use Windows Server or IIS. –  Joshua Lim May 25 '12 at 8:45
    
@tombull89 - "serverfault.com/questions/392156/…; This is a different question, I don't need a load balancer in this case, since a load balancer is not feasible for my case. Thanks. –  Joshua Lim May 25 '12 at 10:43

3 Answers 3

up vote 1 down vote accepted

You could implement a reverse proxy on the client which then connects to your backend servers. This should be able to redirect to a working server when one goes down.

share|improve this answer
    
thanks, this looks like what I need. :) –  Joshua Lim May 26 '12 at 13:01

Sure, Windows NLB and a hardware loadbalancers (e.g. loadbalancer.org) are designed for this job.

There are free alternatives mostly using Linux/Unix which you can find out there.

share|improve this answer
    
Thank you for your answer, I can't implement a load balancer, hardware or software, but wish to failover on the client side. Will that be possible? –  Joshua Lim May 25 '12 at 11:02

Is there a way for me to implement this without implementing clustering

No, and your question is off because it is aking to say "I need to change tires on a Mercedes". It is a car. A web service failover is nothing web service special, we talk of basically TCP connections here.

The problem is that for failover the machine reacting to a specific IP must change - without the IP changing (because DNS lookups, that would cause it, are cached, if anything then at the client machine and a failover has to happen fast, so the cache gets in the way).

SO, you NEED some kind of clustering solution. This is intrinsic to the problem. WHich is ALWAYS software - NEVER hardware, there is no hardware that does that. See, the devices you buy, also run software ;)

NLB is perfect enough for that. A "cluster" of machines has a special IP that theey all react to that services the web service and they have a decent failover mechanism.

Sorry, no way around that. There is "poor mans" failover (DNS updates) but as I said - it has timing issues with also client side caches.

share|improve this answer
    
thanks for your elaborate explanation. DNS updates are no good as you mentioned and complicated as it involves DNS server. I am actually wondering, if it is possible to install some software on the client itself that will intercept and redirect the TCP traffic? –  Joshua Lim May 25 '12 at 6:19
    
Well, that would be a change of the target IP address (like by using another DNS name). The best way to do that is using this server side, and frankly, when using widows, NLB is perfectly for that, simple like that. Also does a little load balancing under the act, distributing traffic. I personally prefer to use "the right tool" and NLB fits here. Any particular reason NOT to use it? –  TomTom May 25 '12 at 6:39
    
the service is a shareware like application that sends out Email and SMS alarms when there's a failure with some industrial equipment. The entire system will be taken care of by electrical engineers. They won't know anything about clustering or NLB. –  Joshua Lim May 25 '12 at 7:39
    
See my second answer by using a reverse proxy –  MichelZ May 25 '12 at 11:20
1  
Well, you have a computer application that is maintained by electricians you are running incompetent service - simple elike that. Not a NLB problem, get people qualified to do their work ;) –  TomTom May 25 '12 at 11:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.