system-config/playbooks/roles/haproxy
Clark Boylan b50a748d44 Switch git lb to source balance method
We were using the leastconn method which sends new connections to the
backend with the least number of connections. Unfortunately git clients
seem to have trouble with varying backend repo state (due to GC and
packing) and the thought is sending all requests from a single client to
a single backend will alleviate this.

To do this we switch to the source balance method which hashes the
source IP and finds a stable backend to talk to. This method handles
backend outages fine as it will hash to a new backend if the older one
goes offline.

Change-Id: I2c7a4ec0809a2f4ef6556833ac6a0ff3651904dd
2019-05-28 08:17:05 -07:00
..
files/docker Add haproxy-statsd to haproxy server 2019-05-24 15:40:28 -07:00
tasks Merge "Prune docker images after docker-compose up" 2019-05-16 22:55:04 +00:00
templates Switch git lb to source balance method 2019-05-28 08:17:05 -07:00
README.rst Run an haproxy load balancer for gitea 2019-02-22 12:54:04 -08:00

Install, configure, and run a haproxy server.