UDP load balancing

Network related discussions (including general TCP/IP stuff, routing, etc).

UDP load balancing

Postby LoZio » 31 May 2010, 14:49

Hi all,
anyone using some program to create a UDP load balancer? I'm using haproxy for TCP and works great, but something for UDP seems more difficult to find, only some-years-old daemons.
I saw something about using pf, but this is not convincing. I need to balance DNS and NTP, and need f/over capabilities using CARP (for example).
Ideas?
Thanks
LoZio
Junior Member
 
Posts: 65
Joined: 17 Jun 2009, 07:33

Postby dennylin93 » 02 Jun 2010, 13:44

Try tweaking the DNS settings. It's much simpler.

Do something like:
For DNS:
Code: Select all
dig +short google.com ns
ns4.google.com.
ns2.google.com.
ns1.google.com.
ns3.google.com.


For NTP:
Code: Select all
dig +short 0.pool.ntp.org a
140.112.2.189
210.68.16.24
123.204.57.143
dennylin93
Member
 
Posts: 784
Joined: 11 Dec 2008, 13:13

Postby LoZio » 03 Jun 2010, 07:23

It would be useful, but I have to balance *MY* DNS and NTP servers. I'm not the client.
Clients use IP addresses to access the services.
LoZio
Junior Member
 
Posts: 65
Joined: 17 Jun 2009, 07:33

Postby pprocacci » 03 Jun 2010, 08:16

http://morebalance.coolprojects.org/

It supports UDP as well as TCP. I've never used this however, but am not aware of anything else.
pprocacci
Junior Member
 
Posts: 35
Joined: 02 Dec 2009, 01:30

Postby dennylin93 » 03 Jun 2010, 11:44

LoZio wrote:It would be useful, but I have to balance *MY* DNS and NTP servers. I'm not the client.
Clients use IP addresses to access the services.


Is there a reason why domain names can't be used instead?
dennylin93
Member
 
Posts: 784
Joined: 11 Dec 2008, 13:13

Postby LoZio » 03 Jun 2010, 11:59

dennylin93 wrote:Is there a reason why domain names can't be used instead?


Yes, devices (ip phones) have ony a nifty four spaces-three dots window to insert dns and ntp server location...

In any case, having an UDP load balancer has lots+lots+lots of benefits over round robin DNS.
Bye
LoZio
Junior Member
 
Posts: 65
Joined: 17 Jun 2009, 07:33

Postby LoZio » 03 Jun 2010, 12:01

pprocacci wrote:http://morebalance.coolprojects.org/

It supports UDP as well as TCP. I've never used this however, but am not aware of anything else.


Quoting myself:
"only some-years-old daemons."

I just want something reasonably supported, not something abandoned 4 or 5 years ago.
Thanks, anyway.
LoZio
Junior Member
 
Posts: 65
Joined: 17 Jun 2009, 07:33

Postby dennylin93 » 03 Jun 2010, 13:02

LoZio wrote:Yes, devices (ip phones) have ony a nifty four spaces-three dots window to insert dns and ntp server location...

In any case, having an UDP load balancer has lots+lots+lots of benefits over round robin DNS.
Bye


I only have one thing left to suggest then. Use PF for load balancing incoming connections. This does have some limitations, but it should be able to work well for what you need.

Some references:
dennylin93
Member
 
Posts: 784
Joined: 11 Dec 2008, 13:13

Postby LoZio » 03 Jun 2010, 13:51

dennylin93 wrote:I only have one thing left to suggest then. Use PF for load balancing incoming connections. This does have some limitations, but it should be able to work well for what you need.

Some references:


Thanks, is what I told I would like to avoid for several reasons, but if it seems the only way....
It's strange you can find several TCP load balancers (haproxy being phenomenal in my opinion), and no modern UDP lbs.
Thanks
LoZio
Junior Member
 
Posts: 65
Joined: 17 Jun 2009, 07:33

Postby dennylin93 » 03 Jun 2010, 14:17

Perhaps there's no UDP load balancer due to the fact that most people simply use DNS round robin to achieve this and failover.
dennylin93
Member
 
Posts: 784
Joined: 11 Dec 2008, 13:13

Postby LoZio » 03 Jun 2010, 14:48

dennylin93 wrote:Perhaps there's no UDP load balancer due to the fact that most people simply use DNS round robin to achieve this and failover.


With DNS you can obtain poor man load balancing and very very bad failover capabilites with disruption of services.
When you need an affordable service and fast failover/failback DNS is out of the discussion. This is why there are several TCP load balancers with very rich capabilities.
LoZio
Junior Member
 
Posts: 65
Joined: 17 Jun 2009, 07:33

Postby Christopher » 04 Jun 2010, 00:20

Although not free, Zeus Load Balancer can balance UDP datagrams.

http://www.zeus.com/products/load-balancer/index.html
Christopher
Junior Member
 
Posts: 57
Joined: 16 Nov 2008, 17:15

Postby LoZio » 04 Jun 2010, 09:07

Christopher wrote:Although not free, Zeus Load Balancer can balance UDP datagrams.

http://www.zeus.com/products/load-balancer/index.html


I tested it and it was not bad, but the entire solution is far more than a load balancer. It features several application performance optimizations, and licensing is somewhat expensive, considering to use is only for UDP.
I'm resorting to test some linux solutions, but I'm not in the mood to put my production servers behind a linux machine...
Thanks
LoZio
Junior Member
 
Posts: 65
Joined: 17 Jun 2009, 07:33


Return to Networking

Who is online

Users browsing this forum: No registered users and 0 guests