Remove gitea08 from haproxy

We have added gitea09 to haproxy which allows us to remove one of the
old servers. Remove gitea08 since gitea01 is the host that gets backups
currently.

Note that this only removes gitea08 from haproxy and does not remove it
from gerrit replication or our inventory. We need to do this in a
multistep process to avoid a situation where gitea08 is still serving
requests but not receiving updates from Gerrit. Next step will be to
disable replication. Then we can remove it from inventory and finally
delete it altogether.

Change-Id: I26f368936819a41a7369d2d116e04151301ee0e2
This commit is contained in:
Clark Boylan 2023-03-02 08:53:50 -08:00
parent 9e8dc7f0d2
commit 11e89d4be9
2 changed files with 5 additions and 11 deletions

View File

@ -46,15 +46,15 @@ To see the current status of all servers::
echo "show stat" | socat /var/haproxy/run/stats stdio
To disable a server (eg, gitea08)::
To disable a server (eg, gitea09)::
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
echo "disable server balance_git_http/gitea09.opendev.org" | socat /var/haproxy/run/stats stdio
echo "disable server balance_git_https/gitea09.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
echo "enable server balance_git_http/gitea09.opendev.org" | socat /var/haproxy/run/stats stdio
echo "enable server balance_git_https/gitea09.opendev.org" | socat /var/haproxy/run/stats stdio
To run these commands and others interactively, issue the prompt
command to haproxy::

View File

@ -24,9 +24,6 @@ gitea_lb_listeners:
- name: 'gitea07.opendev.org'
address: '38.108.68.134:3080'
check_method: 'check'
- name: 'gitea08.opendev.org'
address: '38.108.68.205:3080'
check_method: 'check'
- name: 'gitea09.opendev.org'
address: '38.108.68.113:3080'
check_method: 'check'
@ -55,9 +52,6 @@ gitea_lb_listeners:
- name: 'gitea07.opendev.org'
address: '38.108.68.134:3081'
check_method: 'check check-ssl verify none'
- name: 'gitea08.opendev.org'
address: '38.108.68.205:3081'
check_method: 'check check-ssl verify none'
- name: 'gitea09.opendev.org'
address: '38.108.68.113:3081'
check_method: 'check check-ssl verify none'