As in T387833: Gerrit switchover process we'll need to document and automate the process of switching secondary roles (replica/spare)
Description
Details
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Open | None | T387831 Standardize failover procedures for Collab services | |||
| Resolved | None | T393239 ProbeDown | |||
| Resolved | ABran-WMF | T387833 Gerrit switchover process | |||
| Declined | None | T257383 Update wikibugs's Gerrit ssh host keys | |||
| Stalled | None | T257382 Update libup for Gerrit's new ssh host keys | |||
| Resolved | Dzahn | T240266 gerrit.wikimedia.org:29418 uses 1024-bit RSA key only | |||
| Resolved | ABran-WMF | T406334 Gerrit switchover between secondary instances |
Event Timeline
This would only be a thing though if we permanently keep 3 or more gerrit servers around.
So far we have one prod and one replica and once old hardware is replaced we would be back to exactly 2 machines in production with one extra as standby for gerrit and phab. And that one we would only use if one of the 2 prod machines dies.
So then it would be more like "how to spin up a new replica" rather than failing over from one working one to another. right?
The process will also become obsolete after we move Gerrit to Kubernetes; depending on the topology we end up choosing.
I think (perhaps foolishly) the process will not be that complicated to design, so it could be worth spending time on it, to fill in the time gap between now and when it'll become obsolete.
Change #1242268 had a related patch set uploaded (by Arnaudb; author: Arnaudb):
[operations/dns@master] gerrit: swap gerrit-replica and gerrit-spare
Change #1242269 had a related patch set uploaded (by Arnaudb; author: Arnaudb):
[operations/puppet@production] gerrit: swap gerrit-spare and gerrit-replica
Change #1242268 merged by Arnaudb:
[operations/dns@master] gerrit: swap gerrit-replica and gerrit-spare
Change #1242269 merged by Arnaudb:
[operations/puppet@production] gerrit: swap gerrit-spare and gerrit-replica
(short) documentation here: https://wikitech.wikimedia.org/wiki/Gerrit/Operations#Switch_replicas_over
Change #1243119 had a related patch set uploaded (by Arnaudb; author: Arnaudb):
[operations/dns@master] gerrit: fix discovery record
Change #1243119 merged by Arnaudb:
[operations/dns@master] gerrit: fix discovery record