Mixing push and pull-replication?

185 views
Skip to first unread message

Björn Pedersen

unread,
May 30, 2022, 6:52:05 AM5/30/22
to Repo and Gerrit Discussion
As the push and pull replication plugins use the same config namespace (replication), is it possible to use both plugins at the same time?

Use-case: 

A setup with multisite-plugin, that should use the pull replication for syncronization,
but also needs to push to "external" repos (github, cgit mirror,...)

Best Björn

PS: there exists a repo for a  push-pull replication plugin [1], but it is empty.

Jakub Sokół

unread,
May 30, 2022, 8:47:42 AM5/30/22
to Björn Pedersen, Repo and Gerrit Discussion
I'm using both of these plugins at the same time without a problem - they use the same configuration file, but separate config keys to identify branches to work on (fetch vs push).
No idea about other configuration options, I've never had a need for push/pull differentiation besides branches.

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/9da5bb04-bf13-4369-b043-cd83e7938611n%40googlegroups.com.

Luca Milanesio

unread,
May 30, 2022, 9:27:43 AM5/30/22
to Repo and Gerrit Discussion, Luca Milanesio, Björn Pedersen, Jakub Sokół

On 30 May 2022, at 05:47, 'Jakub Sokół' via Repo and Gerrit Discussion <repo-d...@googlegroups.com> wrote:

I'm using both of these plugins at the same time without a problem - they use the same configuration file, but separate config keys to identify branches to work on (fetch vs push).

We actually use both on GerritHub.io and even on the same branches.
It makes sense to have both because the pull-replication relies on the other Gerrit server to be online, which may or may not be always the case.

No idea about other configuration options, I've never had a need for push/pull differentiation besides branches.

The push and fetch config options allow to specify different ref-specs to push or fetch.

HTH

Luca.


On Mon, May 30, 2022 at 12:52 PM 'Björn Pedersen' via Repo and Gerrit Discussion <repo-d...@googlegroups.com> wrote:
As the push and pull replication plugins use the same config namespace (replication), is it possible to use both plugins at the same time?

Use-case: 

A setup with multisite-plugin, that should use the pull replication for syncronization,
but also needs to push to "external" repos (github, cgit mirror,...)

Best Björn

PS: there exists a repo for a  push-pull replication plugin [1], but it is empty.


--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/9da5bb04-bf13-4369-b043-cd83e7938611n%40googlegroups.com.

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.

Nguyen Tuan Khang Phan

unread,
Oct 4, 2022, 10:14:37 AM10/4/22
to Repo and Gerrit Discussion
Can the config on the master be consolidated into one section?
   [remote "mirror"]
          url = https://gerrit-mirror.com/git/${name}.git
          adminUrl = ad...@gerrit-mirror.com:/opt/gerrit/repos/${name}.git
          replicationDelay = 5
          createMissingRepositories = true
          replicateProjectDeletions = true
          lockErrorMaxRetries = 3
          mirror = true
          timeout = 600
          replicationRetry = 0
          threads = 10
          authGroup = Replication_Auth_Group
          rescheduleDelay = 5
[remote "pull-mirror"]
          apiUrl = https://gerrit-mirror.com
          fetch = +refs/*:refs/*
          rescheduleDelay = 15
Reply all
Reply to author
Forward
0 new messages