Page MenuHomePhabricator

gerrit: move gerrit-replica behind CDN
Closed, ResolvedPublic

Description

We want to move all gerrit instances behind CDN, that will:

Whats to be discussed:

  • Is the replica traffic going over tcp-proxies and gerrit-lb or directly to the CDN?
  • what about SSH traffic? I guess the replicas don't need working SSH
    • is replication is happening over ssh on 29418?

Whats needed:

Related Objects

Event Timeline

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

[operations/puppet@production] gerrit: add gerrit-replica service to LVS

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

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

[operations/puppet@production] gerrit: add gerrit-replica backend to LVS

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

Novem_Linguae renamed this task from gerrit: gerrit-replica behind CDN to gerrit: move gerrit-replica behind CDN.Feb 27 2026, 10:25 AM

Change #1240294 abandoned by Jelto:

[operations/puppet@production] gerrit: add gerrit-replica service to LVS

Reason:

not needed

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

Change #1240603 merged by Jelto:

[operations/puppet@production] trafficserver: Add gerrit-replica backend

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

Change #1247026 had a related patch set uploaded (by Jelto; author: Jelto):

[operations/puppet@production] cache:text: add gerrit-replica to alternate_domains

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

Is the replica traffic going over tcp-proxies and gerrit-lb or directly to the CDN?

The replication traffic will stay the same, using the hosts FQDN

what about SSH traffic? I guess the replicas don't need working SSH

We decided to not expose the 29418 SSH port for the replica and spare.

is replication is happening over ssh on 29418?

Replication is going through ssh port on tcp/22 and uses the system user gerrit:

[remote "replica"]
[...]
  url = gerrit@gerrit1003.wikimedia.org:/srv/gerrit/git/${name}.git

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

[operations/dns@master] gerrit: move gerrit-replica behind CDN

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

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

[operations/cookbooks@master] gerrit: dns cache wipe update

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

Change #1247026 merged by Jelto:

[operations/puppet@production] cache:text: add gerrit-replica to alternate_domains

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

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

[operations/puppet@production] cache:text: add gerrit-replica to alternate_domains

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

Change #1247940 merged by Arnaudb:

[operations/puppet@production] cache:text: add gerrit-replica to alternate_domains

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

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

[operations/dns@master] gerrit: move gerrit-replica behind CDN

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

Change #1247530 abandoned by Arnaudb:

[operations/dns@master] gerrit: move gerrit-replica behind CDN

Reason:

merge conflict: replaced by 1247964

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

Change #1247964 merged by Arnaudb:

[operations/dns@master] gerrit: move gerrit-replica behind CDN

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

gerrit-replica has been moved behind CDN, everything looks OK

Thank you @ABran-WMF for merging the DNS change. I can confirm gerrit-replica host is accessible over the CDN now:

curl -I https://gerrit-replica.wikimedia.org/r/plugins/gitiles/operations/puppet/
HTTP/2 200 
date: Wed, 04 Mar 2026 13:24:31 GMT
x-cache: cp3072 miss, cp3072 pass

And there are already request in superset:

https://superset.wikimedia.org/superset/dashboard/p/xn8BnoRWrzY/

Jelto changed the status of subtask Restricted Task from Stalled to Open.

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

[operations/dns@master] Revert^2 "gerrit: move gerrit-replica behind CDN"

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

the change to put gerrit-replica behind CDN has been reverted to see if it triggered T419009: Zuul has lost connection to gerrit, freezing all CI in queue-only mode, we confirmed with @hashar that it was apparently not related

Change #1248002 merged by Arnaudb:

[operations/dns@master] Revert^2 "gerrit: move gerrit-replica behind CDN"

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

ABran-WMF updated the task description. (Show Details)

gerrit-replica is back again behind CDN, was not the trigger for T419009: Zuul has lost connection to gerrit, freezing all CI in queue-only mode

Jelto closed subtask Restricted Task as Resolved.Mar 10 2026, 10:33 AM

Change #1247534 merged by jenkins-bot:

[operations/cookbooks@master] gerrit: dns cache wipe update

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