Questions tagged [haproxy]

HAproxy is a TCP/HTTP load balancer which provides cookie-based persistence, advanced traffic regulation with surge protection, automatic failover, run-time regex-based header control, Web-based reporting, advanced logging to help trouble-shooting buggy applications and/or networks, and a few other features.

HAProxy is a TCP/HTTP load balancer which provides cookie-based persistence, advanced traffic regulation with surge protection, automatic fail over, run-time regex-based header control, Web-based reporting, advanced logging to help trouble-shooting buggy applications and/or networks, and a few other features.

2659 questions
8
votes
2 answers

How does multithreading affect http keep-alive connection?

var ( httpClient *http.Client ) const ( MaxIdleConnections int = 20 RequestTimeout int = 5 ) // init HTTPClient func init() { client := &http.Client{ Transport: &http.Transport{ MaxIdleConnsPerHost:…
JavaDeveloper
  • 5,320
  • 16
  • 79
  • 132
8
votes
2 answers

Either remove or automatically enter pem passphrase for haproxy ssl; Chrome still warns about CA not signed

I recently received a signed certificate to use with haproxy SSL termination. In order for haproxy to use this, I needed to convert the jks file to a pem file. First, I converted the cer files I received into crt, as I had a previous error where…
SVill
  • 331
  • 5
  • 22
  • 55
8
votes
2 answers

cert-manager letsencrypt order pending

My letsencrypt order keeps pending. I am using cert-manager on my single node kubernetes plane. Also I am using letsencrypt. kind: Certificate metadata: name: example-zone namespace: default spec: secretName: example-zone-tls renewBefore:…
Pascal K.
  • 138
  • 1
  • 3
  • 12
8
votes
1 answer

System.Net.WebRequest and TLS 1.2 creates a 'Handshake Failure' with haproxy

I'm unable to use System.Net.WebRequest for a request with TLS 1.2. If I do so, I get an Exception The request was aborted: Could not create SSL/TLS secure channel. and the protocol error Handshake Failure. Connection over TLS 1.2 and authentication…
hdev
  • 6,097
  • 1
  • 45
  • 62
8
votes
1 answer

HAProxy - Add response header to indicate the server that was chosen

Consider the following HAProxy Config: frontend front default_backend default backend default balance roundrobin http-response set-header X-RGN us-east-1 server app-1a app.us-east-1a.example.com:443 ssl verify none…
Ace
  • 463
  • 3
  • 6
  • 16
8
votes
5 answers

Regex pattern to parse HttpLog format

I am looking for a regex pattern matcher for a String in HttpLogFormat. The log is generated by haproxy. Below is a sample String in this format. Feb 6 12:14:14 localhost haproxy[14389]: 10.0.1.2:33317 [06/Feb/2009:12:14:14.655] http-in static/srv1…
Thimmayya
  • 2,064
  • 2
  • 18
  • 20
8
votes
1 answer

Wildcard in subdomain for ACL in HAPROXY

Trying to match the following in haproxy: acl instagiveweb hdr_beg(host) -i foo*.something.com where the url could be foo-staging.something.com or foo.something.com I've looked through the docs at…
hummmingbear
  • 2,294
  • 5
  • 25
  • 42
8
votes
2 answers

HAProxy - basic authentication for backend server

I use the following configuration to access internet from local 127.0.0.1:2000 proxy to the internet.: global log 127.0.0.1 local0 log 127.0.0.1 local1 notice #log loghost local0 info maxconn 4096 #chroot…
ovntatar
  • 416
  • 1
  • 3
  • 17
8
votes
1 answer

Load balancing since Node v0.12.2 - cluster, pm2 or nginx

With Node v0.12.2, the cluster module supports Round-Robin (RR) load balancing, which ensures load is more evenly distributed than the previous OS-level load balancing. So now we are spoilt for choice: Use the cluster module Use pm2 which uses the…
dayuloli
  • 16,205
  • 16
  • 71
  • 126
8
votes
1 answer

How can I see tcp connection debugging info in HAProxy

I am currently refactoring a haproxy configuration that we use on our production servers to forward TCP traffic from a central server. The goal is to get everything working with docker containers to help with deployment reliability. Everything has…
Allen
  • 3,134
  • 5
  • 29
  • 49
8
votes
2 answers

Haproxy 503 Service Unavailable . No server is available to handle this request

How does haproxy deal with static file , like .css, .js, .jpeg ? When I use my configure file , my brower says : 503 Service Unavailable No server is available to handle this request. This my config : global daemon group root maxconn 4000 …
changzhi
  • 2,641
  • 9
  • 36
  • 46
8
votes
3 answers

How to track down "Connection timout during SSL handshake" and "Connection closed during ssl handshake" errors

I have recently switched over to HAProxy from AWS ELB. I am terminating SSL at the load balancer (HAProxy 1.5dev19). Since switching, I keep getting some SSL connection errors in the HAProxy log (5-10% of the total number of requests). There's three…
andreimarinescu
  • 3,541
  • 2
  • 25
  • 32
8
votes
1 answer

Can I use ZeroMQ with HAProxy, a software-based load balancer?

HAProxy is a software-based load balancer that supports http and tcp distribution. If I use ZeroMQ with pragmatic multicast enabled (pgm), will the use of HAProxy as an intermediary between zmq peers conflict with pgm, or should I use hardware-based…
raffian
  • 31,267
  • 26
  • 103
  • 174
8
votes
1 answer

HAproxy for redis slaves

We are using node_redis client to access the redis at present. I need to use HAProxy in front of redis slaves which in my case is 3 nos. I installed the HAProxy and configured it to load balance the redis slaves. But when I tried to create…
user1386776
  • 395
  • 3
  • 8
  • 13
7
votes
1 answer

HAProxy http-request redirect a specific path to another path

I am quite familiar with the HTTP protocol and a little bit of HAProxy, but I have never really messed with URL rewrites and redirects before. Now, I have 2 "simple" HTTP redirect requirements which I have been having a hard time figuring…
Lester
  • 1,411
  • 1
  • 12
  • 30