6 Commits

Author SHA1 Message Date
Clark Boylan
511cc0e4e4 Test gitea haproxy maxconn limits
With the haproxy 2.9.x release we saw that once we hit maxconns on the
front end we stopped accepting new requests. Add a testinfra test to
ensure that we can process more than maxconn limit requests.

Change-Id: Iad70ad8c1d511eb8875ea638d010868c01576426
2024-01-02 18:12:00 +00:00
Clark Boylan
8d4f1c719e Add Jammy gitea-lb02 to our inventory
This adds our first Jammy production server to the mix. We update the
gitea load balancer as it is a fairly simple service which will allow us
to focus on Jammy updates and not various server updates.

We update testing to shift testing to a jammy node as well. We don't
remove gitea-lb01 yet as this will happen after we switch DNS over to
the new server and are happy with it.

Change-Id: I8fb992e23abf9e97756a3cfef996be4c85da9e6f
2022-10-13 13:09:13 -07:00
Ian Wienand
dd35b401a7 gitea: test loadbalancer to gitea
This explicitly tests connection through the load-balancer to the
gitea backend to ensure correct operation.

Additionally, it adds a check of the haproxy output to make sure the
back-ends are active (that's the srv_op_state field, c.f. [1])

[1] http://docs.haproxy.org/2.6/management.html#9.3-show%20servers%20state

Change-Id: Ia896134d6a9b6951acebfbf8b0b32a7ef8b87777
2022-07-07 10:02:46 +10:00
Clark Boylan
8eb981b47f Install docker-compose from pypi
We want to use stop_grace_period to manage gerrit service stops. This
feature was added in docker-compose 1.10 but the distro provides 1.5.
Work around this by installing docker-compose from pypi.

This seems like a useful feature and we want to manage docker-compose
the same way globally so move docker-compose installation into the
install-docker role.

New docker-compose has slightly different output that we must check for
in the gitea start/stop machinery. We also need to check for different
container name formatting in our test cases. We should pause here and
consider if this has any upgrade implications for our existing services.

Change-Id: Ia8249a2b84a2ef167ee4ffd66d7a7e7cff8e21fb
2020-04-16 12:08:00 -07:00
James E. Blair
5faf89f566 Add haproxy-statsd to haproxy server
Build a container image with the haproxy-statsd script, and run that
along with the haproxy container.

Change-Id: I18be70d339df613bf9a72e115e80a6da876111e0
2019-05-24 15:40:28 -07:00
James E. Blair
4b031f9f24 Run an haproxy load balancer for gitea
This runs an haproxy which is strikingly similar to the one we
currently run for git.openstack.org, but it is run in a docker
container.

Change-Id: I647ae8c02eb2cd4f3db2b203d61a181f7eb632d2
2019-02-22 12:54:04 -08:00