Opensource Layer4 Switching

Scarpozzi

Lifer
Jun 13, 2000
26,389
1,778
126
I'm trying to create a load-balanced cluster of 2 linux servers.

My problem is that I don't have a layer 4 switch to provide a single ip address to access the two nodes. I could do an active/passive cluster, but I want a load balancer.

There are plenty of companies that sell load balancers, but I'm wondering if there is a open source application I can install on a Linux box that can do this. If anyone knows of anything, please let me know. Thanks.
 

spidey07

No Lifer
Aug 4, 2000
65,469
5
76
A reverse proxy would do the trick. I've never done it that way cause I'm used to hardware balancers, but look into Squid. It may contain that functionality but I wouldn't imagine the load balancing features to be very robust.

Do you need any L5 or L7 features? Or just a straight L4 load balancing? Some switches support straight L4 balancing.
 

cmetz

Platinum Member
Nov 13, 2001
2,296
0
0
Scarpozzi, there are lots of free solutions for this high-level problem. Can you be more specific about what you need?
 

Scarpozzi

Lifer
Jun 13, 2000
26,389
1,778
126
Originally posted by: cmetz
Scarpozzi, there are lots of free solutions for this high-level problem. Can you be more specific about what you need?
Well, I've got quite a few reverse proxy application servers, so I may just pull one of those in as a temporary fix. I just want to keep the network traffic simple if possible...

To be specific, I'm replacing my current reverse proxy servers with a more robust solution. It requires Layer4 switching out front to provide clustering of the resource servers in addition to that, it would be nice to provide L4 in front of the gateway servers.

The proxy has 2 gateway servers and 2 identity servers that cache all of the LDAP servers I host for provisioning and authentication.

This is kind of a chicken and egg problem so we'll probably just bite the bullet and buy the hardware and let it handle the active/passive configuration out front and leave the crude packet pushing to hardware. I was just wanting to know if there was a cheap/free alternative until we can find the money.
 

brassbin

Member
Jan 24, 2008
46
0
0
I doubt a mere application running on the same Linux OS would work, a packet would still traverse through inbound TCP/IP stack, hit the supposed load balancing app, traverse another TCP/IP stack outbound, then hit one of the nodes in the clusters, the system sitting in front would then become the bottleneck, defeating the purpose of load balancing in the 1st place. There is an argument to be made that since we are only talking about a layer 4 app, layer 7 overhead is not involved, yes so the processing on the load balancing node is faster than any other destination node, but still you created a bottleneck that didn't exist before.
 

spidey07

No Lifer
Aug 4, 2000
65,469
5
76
Originally posted by: brassbin
I doubt a mere application running on the same Linux OS would work, a packet would still traverse through inbound TCP/IP stack, hit the supposed load balancing app, traverse another TCP/IP stack outbound, then hit one of the nodes in the clusters, the system sitting in front would then become the bottleneck, defeating the purpose of load balancing in the 1st place. There is an argument to be made that since we are only talking about a layer 4 app, layer 7 overhead is not involved, yes so the processing on the load balancing node is faster than any other destination node, but still you created a bottleneck that didn't exist before.

Don't try to reason with software architects/application people when it comes to performance. They just don't understand. If this is straight L4 load balancing then it can easily be done in processor. They're happy to have 1 million dollars in hardware to provide content but run everything through a 20K load balancer. Fix your application people.

FYI - professional level load balancers push the logic to hardware which is what gives them the performance.
 

freegeeks

Diamond Member
May 7, 2001
5,460
1
81
maybe quagga has some loadbalancing option

anyway, I would go for a hardware solution like something from f5
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |