3
votes
2answers
464 views

When a server IP changes, do exising TCP (e.g. http/mysql) connections remain running

We have some PHP-FPM servers and when they need a database connection, they connect to an HAProxy server which selects them a database server to use and the connection opens. When we then want to ...
1
vote
1answer
128 views

option http-server-close on HAProxy haproxy-1.5-dev19 will result in Connection: close header sent in response

I basically have the following issue: whenever I add option http-server-close to the haproxy config (either in frontend or backend section), haproxy will send a Connection: close header in the ...
3
votes
1answer
581 views

Reverse proxy for mixed tcp, udp, and http services

I'm building an architecture that will be hosting various services which individually maybe listening on a variable number of ports that could be mixed protocols. I want to map these services to ...
1
vote
2answers
163 views

Using proxy server to redirect MySQL traffic to multiple servers using standard port?

Is it possible to redirect MySQL (tcp) traffic to multiple servers based on domain name alone? Our DNS is setup to point several sub-domain aliases to one proxy machine. (running haproxy and ...
4
votes
1answer
137 views

HaProxy for game servers, what's wrong with my configuration?

I host a website with a game client that uses TCP for connections. I am currently looking for a way to proxy my connections from one server to my origin server. I have tested Iptables forwarding and I ...
1
vote
1answer
259 views

iptables/haproxy limit packets per second

Is it possible to limit incoming tcp packets per second (or bytes per second) with iptables or haproxy? I have found many examples but none of them seem to work.
3
votes
4answers
2k views

Need help troubleshooting intermittant TCP timeout in HAProxy

I have an application where the client connects to a server via a simple TCP based protocol over TLS/SSL. In development, this has worked great for many months while we were building our application ...
2
votes
2answers
730 views

HAProxy + nginx reaching max numtcpsock in about 24 hours

I'm running a relatively simple VPS (a Media Temple (ve)) with a few PHP-based websites and (eventually) a few Node servers. In order to enable WebSockets support, I'm using HAProxy on port 80, which ...
1
vote
0answers
373 views

haproxy tcp transparent mode on the same box as service

I'd like to set up transparent HA Proxy for TCP protocol. It works flawlessly when HA Proxy is in front of the boxes that are running the service. But when I try to set up HA Proxy in transparent mode ...
0
votes
0answers
244 views

pass source port to app server behind haproxy

I have a haproxy configuration run in http mode. I pass requests to backend java servers. I use forwardfor option to get client ip in backend server. I want to get source port in backend server but ...
1
vote
0answers
489 views

HAProxy + NodeJS gets stuck on TCP Retransmission

I have a HAProxy + NodeJS + Rails Setup, I use the NodeJS Server for file upload purposes. The problem I'm facing is that if I'm uploading through haproxy to nodejs and a "TCP (Fast) Retransmission" ...
8
votes
4answers
5k views

haproxy + stunnel + keep-alive?

I'd like to put stunnel in front of haproxy 1.4 to handle HTTPS traffic. I also need stunnel to add the X-Forwarded-For header. This can be achieved by the "stunnel-4.xx-xforwarded-for.diff" patches ...
2
votes
1answer
87 views

Host information with TCP port

Forgive this question, I'm a designer trying to get my head around a possible network architecture. I have a wildcard domain on example.com. The client connects via TCP to foo.example.com:1234. Is it ...
3
votes
2answers
2k views

Load Balancing long running TCP connections

I'm trying to research the best way to load balance long running TCP connections for the following scenario: We have multiple servers behind a redundant set of firewalls and clients establish long ...