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.

With Windows, we can setup load balancing for arbitrary IP services just by installing NLB and selecting which nodes we want in the cluster. It does some MAC address changing, then has algorithms to decide which node handles an incoming request.

Is there a production grade equivalent for Linux? I don't want something that requires a front server to sit physically (network-wise) in front of the machines (like certain hardware LBs do, and Linux Virtual Server does, AFAIK). I want something that'll act similar to Microsoft's NLB -- pick N nodes, they all listen on the same IP, and divvy up the incoming requests.

share|improve this question
    
What kind of traffic are you trying to load balance (HTTP/S)? –  Shaun Hess Jun 10 '09 at 3:41
3  
"just"... hahahaha –  womble Jun 10 '09 at 5:05
    
OK, yea, NLB can be a pain to setup sometimes. But assuming you got the NICs setup properly beforehand... it's pretty point and click. –  MichaelGG Jun 10 '09 at 23:54

6 Answers 6

up vote 5 down vote accepted

Here are a few that people find quite good in the Linux community (minus LVS at your request). I personally have only used HAProxy so your mileage may vary.

HAProxy
Balance

Only supports load balancing for http/https requests:

Pound
PLB - Pure Load Balancer

share|improve this answer
    
Thanks. By looking at them, they seem to put a separate box in the picture, no? Like, you have the frontend server which rewrites the Layer2 packet, then the server response either must physically pass through the frontend box, or use Direct Server Return (like a Foundry, for example). Whereas NLB simply runs on each host itself. But I'll dig more - perhaps I'm misunderstanding something. –  MichaelGG Jun 11 '09 at 0:02
    
add Ultramonkey to that list, it uses LVS but doesn't need a separate witness server. –  gbjbaanb Jun 27 '09 at 14:11

see: http://lnlb.sourceforge.net/

Seems to be exactly what you are asking for.

That page summarizes it as: a common IP shared between all nodes (on a virtual interface). All you have to do is to bind on the virtual interface, the driver will do the rest.

It sounds very much like Windows NLB.

share|improve this answer
6  
I found his answer helpful, it IS exactly what I was looking for. I don't see how the question being 5 years old changes anything. Anyone coming across this question now can see there's a solution that, according to their webpage, sounds pretty impressive. –  MichaelGG Nov 21 at 6:03

If you want a loadbalancing like NLB you should have a look at clusterip in iptables. -> http://security.maruhn.com/iptables-tutorial/x8906.html

It does exactly the same, only the failover part is missing, but maybe there exists some tools for this.

share|improve this answer
    
Interesting, thanks. –  MichaelGG Jun 10 '09 at 23:56
  • If you are interested in BSD solutions - see CARP, linux as i just found out has port of it called UCARP
  • About DNS-level load-balancing see CDN rfc3568, but beware - DNS-lb is kinda inert
  • LVS is still pretty good so - check it out
share|improve this answer

Round robin DNS would be the simplest solution, but maybe it's too simple for your requirements.

share|improve this answer
    
Yea DNS would not work. That assumes you have intelligent enough clients that actually use DNS. A lot of services simply go right to the IP. –  MichaelGG Jun 10 '09 at 1:41
    
you could set round-robin sessions on the switch instead. –  gbjbaanb Jun 27 '09 at 14:13

LVS is still the way to go -- you don't have to install it on separate hardware to get it to load balance incoming requests. Effectively, you still think of the load-balancer and backend services as separate things, but they just happen to be installed in the same physical hosts.

share|improve this answer
    
Oh I didn't realise you could have virtual and real sitting on the same box. –  MichaelGG Jun 10 '09 at 23:55

protected by Sven Nov 18 at 20:57

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

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