Page MenuHomePhabricator

Gerrit switchover between secondary instances
Closed, ResolvedPublic

Description

As in T387833: Gerrit switchover process we'll need to document and automate the process of switching secondary roles (replica/spare)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

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?

In scope: decide and document whether we keep the second replica around permanently.

LSobanski triaged this task as Medium priority.Oct 6 2025, 3:42 PM
LSobanski moved this task from Incoming to Backlog on the Collaboration-Services board.
ABran-WMF raised the priority of this task from Medium to High.EditedFeb 18 2026, 9:50 AM
ABran-WMF moved this task from Backlog to Work in Progress on the Collaboration-Services board.

This task is a probable blocker for T417247: Reimage gerrit2002

This would only be a thing though if we permanently keep 3 or more gerrit servers around.

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

https://gerrit.wikimedia.org/r/1242268

Change #1242269 had a related patch set uploaded (by Arnaudb; author: Arnaudb):

[operations/puppet@production] gerrit: swap gerrit-spare and gerrit-replica

https://gerrit.wikimedia.org/r/1242269

Change #1242268 merged by Arnaudb:

[operations/dns@master] gerrit: swap gerrit-replica and gerrit-spare

https://gerrit.wikimedia.org/r/1242268

Change #1242269 merged by Arnaudb:

[operations/puppet@production] gerrit: swap gerrit-spare and gerrit-replica

https://gerrit.wikimedia.org/r/1242269

Change #1243119 had a related patch set uploaded (by Arnaudb; author: Arnaudb):

[operations/dns@master] gerrit: fix discovery record

https://gerrit.wikimedia.org/r/1243119

Change #1243119 merged by Arnaudb:

[operations/dns@master] gerrit: fix discovery record

https://gerrit.wikimedia.org/r/1243119