In nginx it is fairly simple to configure it to proxy unix .sock
files
Eg:
upstream bla {
server unix:///home/sam/Source/bla/tmp/sockets/thin1.sock;
server unix:///home/sam/Source/bla/tmp/sockets/thin2.sock;
}
Is there a similar syntax in haProxy to enable balancing local .sock
filew
Short answer: Yes, since version 1.5.
Let's have a look at server keyword arguments documentation:
So you may specify path to unix socket with leading slash, or explicitly prepend address family prefix:
As quanta said it need IPv4 address, but with using socat to relay unix scoket to TCP maybe you can use HAProxy to that.
AFAIK, HAProxy doesn't support it. According to the document, you must specify an IPv4 or IPv6 (or hostname) of the server.