Gitea

Gitea

Gitea is running on opendev.org

Overview

The OpenDev Git repositories are hosted on a pool of servers. They are served via https using Gitea behind HAProxy which handles load balancing across the nodes.

Backend Maintenance

To temporarily remove a git backend from the HAProxy load balancer, you can put it in “maintenance” mode. This can be done interactively on the HAProxy host. Note that long-term changes to the topology should be made via configuration management. These commands must be run as root.

To see the current status of all servers:

echo "show stat" | socat /var/haproxy/run/stats stdio

To disable a server (eg, gitea08):

echo "disable server balance_git_http/gitea08.opendev.org" | socat /var/haproxy/run/stats stdio
echo "disable server balance_git_https/gitea08.opendev.org" | socat /var/haproxy/run/stats stdio

To re-enable a server:

echo "enable server balance_git_http/gitea08.opendev.org" | socat /var/haproxy/run/stats stdio
echo "enable server balance_git_https/gitea08.opendev.org" | socat /var/haproxy/run/stats stdio

To run these commands and others interactively, issue the prompt command to haproxy:

socat readline /var/haproxy/run/stats
prompt
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.