Pull-replication pluging - Delta sync

84 views
Skip to first unread message

Aravindan Kalyanasundaram

unread,
Feb 25, 2022, 1:15:01 PM2/25/22
to Repo and Gerrit Discussion

We use pull-replication in Master-Mirror configuration. Is there a way to initiate the pull-replication from mirror to pull only the modified repositories without passing the repo name as the parameter?

When we run the pull-replication command from mirror "ssh -p 29418 use...@xxxx-gerrit-q-xxxxi.de.xxxx.com pull-replication start", it starts a tasks for each repositories in the mirror, what we look for is to whether only the modified repositories can be as part of the gerrit queue without passing the repo name as parameter?

Message has been deleted

Luca Milanesio

unread,
Feb 26, 2022, 1:16:31 PM2/26/22
to Repo and Gerrit Discussion, Luca Milanesio, Sun King


On 26 Feb 2022, at 02:43, Sun King <king...@gmail.com> wrote:

On Saturday, February 26, 2022 at 2:15:01 AM UTC+8 rvin...@googlemail.com wrote:

We use pull-replication in Master-Mirror configuration. Is there a way to initiate the pull-replication from mirror to pull only the modified repositories without passing the repo name as the parameter?



There isn’t a “replicate all repos” command on the pull-replication plugin at the moment.
It would be quite simple to automate it though, with a simple loop through all repositories returned by a ls-projects command.

Luca.

When we run the pull-replication command from mirror "ssh -p 29418 use...@xxxx-gerrit-q-xxxxi.de.xxxx.com pull-replication start", it starts a tasks for each repositories in the mirror, what we look for is to whether only the modified repositories can be as part of the gerrit queue without passing the repo name as parameter?


--
--
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/3e20919b-dd40-4f7b-ab35-8d0ce5d401d1n%40googlegroups.com.

Aravindan Kalyanasundaram

unread,
Mar 7, 2022, 4:48:56 AM3/7/22
to Repo and Gerrit Discussion

We have around 8000+ repos in our master that was replicated in mirror. If we uploaded changes to repo 1 and 2 in master and when we do pull-replication at the mirror it traverse through all 8000+ repos and put them in the queue not only changed ones. Is is possible to pull replicate only the modified repos without specifying the name?

We have only installed "Pull-replication" plugin in mirror and master. Do we need to have other plugins to achieve our use case?

Luca Milanesio

unread,
Mar 7, 2022, 5:07:53 AM3/7/22
to Repo and Gerrit Discussion, Luca Milanesio, Aravindan Kalyanasundaram

On 7 Mar 2022, at 09:48, 'Aravindan Kalyanasundaram' via Repo and Gerrit Discussion <repo-d...@googlegroups.com> wrote:


We have around 8000+ repos in our master that was replicated in mirror. If we uploaded changes to repo 1 and 2 in master and when we do pull-replication at the mirror it traverse through all 8000+ repos and put them in the queue not only changed ones. Is is possible to pull replicate only the modified repos without specifying the name?

How do you know if the repo has been modified without running a ‘git fetch’ on it?
Do you have control over the remote repository?

We have only installed "Pull-replication" plugin in mirror and master. Do we need to have other plugins to achieve our use case?

Well, if both ends are Gerrit, then just configure the API URL [1] and the triggering happens automatically upon ref-updates.

HTH

Luca.


Reply all
Reply to author
Forward
0 new messages