Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Haproxy loadbalancing udp server

Tags:

haproxy

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.

like image 487
Shakil Abbas Avatar asked Jul 16 '15 10:07

Shakil Abbas


3 Answers

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.

like image 186
Anand Avatar answered Sep 24 '22 14:09

Anand


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

like image 39
rideswitch Avatar answered Sep 20 '22 14:09

rideswitch


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

like image 39
Jiri B Avatar answered Sep 22 '22 14:09

Jiri B