9

Does haproxy supports udp loadbalancing?

We're just using a simple python script on backend server which will be listening on specific port for the udp packects.

Shakil Abbas
  • 559
  • 1
  • 5
  • 16

3 Answers3

6

HAProxy is for TCP/HTTP and UNIX sockets as well: "…

This is alternative to the TCP listening port. Haproxy will then receive UNIX connections on the socket

…" but apparently it has no support of UDP except for logging purposes.

Nginx is an option you can consider though.

poige
  • 1,562
  • 15
  • 12
Anand
  • 9,672
  • 4
  • 55
  • 75
  • Nginx is an option if you already have Nginx. If you need to install something that does only UDP load-balancing, I'd suggest something like "pen" which is less convoluted, and it does not come with a lot of features that you might not need. – maxadamo May 05 '18 at 06:31
4

Unfortunately Haproxy doesn't support udp load balancing. See this question for more details: udp traffic with Iperf for haproxy

Community
  • 1
  • 1
rideswitch
  • 1,381
  • 2
  • 13
  • 19
1

Haproxy 2.3 allows proxying of syslog UDP. Thus one could bind an UDP socket only to proxy syslog.

Jiri B
  • 361
  • 1
  • 12