Hi,

We're running haproxy in front of many services that are written in
Java. From time to time, the Java applications need to pause for a
while and do garbage collection. It would be extremely beneficial if
haproxy could be configured to redispatch all requests that are
currently in limbo on a GCing server to some other server.

haproxy.cfg typically looks like this:

frontend
  timeout http-request 30s
  maxconn 100000
  ...

backend
  balance roundrobin
  server s1 ... maxconn 10
  server s2 ... maxconn 10
  server s3 ... maxconn 10
  ..

Each request is a reasonably simple GET request that typically takes
10-20ms to process. This works great until a server needs to GC, then
the query will hang for a few seconds.

Tanks
Finn Arne

Reply via email to