unixsurfer / haproxyadmin

A python library to interact with HAProxy over UNIX socket
Apache License 2.0
113 stars 31 forks source link

Support management/connection over TCP #6

Open thejpanganiban opened 8 years ago

thejpanganiban commented 8 years ago

Currently, the connection is established via unix socket files. It would be nice if this library would also support connecting to HAProxy over TCP as well. :)

[EDIT]: URLs might be a good way on how to define how it connects.

hap = haproxy.HAProxy('unix:///var/run/haproxy.sock')  # via unix socket
hap = haproxy.HAProxy('tcp://127.0.0.1:1937')  # via TCP
unixsurfer commented 8 years ago

True as it could be handy in some situations. But, it will slow down the operations in environments with X haproxy processes.

kotso commented 7 years ago

+1 for this feature.

erSitzt commented 7 years ago

You might try this

10

nandu506tvm commented 10 months ago

Are we planning to integrate the changes related to TCP socket to master anytime soon ?