Jump to content

Gerrit/Replica

From Wikitech
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

gerrit-replica is a read-only replica of the Gerrit instance we run. It is used by Phabricator and ExtensionDistributor, among others.

Usage

For services that can accept slightly delayed updates to repositories, using the replica will help in keeping the load on the main Gerrit instance low.

Urls are identical to the canonical instance, but use gerrit-replica.wikimedia.org, instead of gerrit.wikimedia.org.


If you have bots fetching from Gerrit (such as refreshing a list of repositories), consider using the replica with the following gitconfig:

  [url "https://gerrit-replica.wikimedia.org/r"]
       insteadOf = https://gerrit.wikimedia.org/r