Gerrit 3.5.0.1 for Gerrit multi-master setup

199 views
Skip to first unread message

張宇誠

unread,
Nov 28, 2022, 2:22:36 AM11/28/22
to Repo and Gerrit Discussion
Hi guys,

I have a issue that I want to bulid Gerrit multi-master, but my Gerrit server version is 3.5.0.1, there is no way for share with DB. How can I setup for multi-master, and share the same repo with two master? 
My purpose is to reduce the loading for one Gerrit Master server, thanks for the help.

Matthias Sohn

unread,
Nov 28, 2022, 4:00:37 AM11/28/22
to 張宇誠, Repo and Gerrit Discussion
You should consider updating to the latest 3.5 bugfix release which is  3.5.4 (https://www.gerritcodereview.com/3.5.html#354).
Did you follow https://gerrit.googlesource.com/plugins/multi-site/+/master/README.md to install multi-site plugin ?
Which DB do you mean ?

A multi-site setup of Gerrit involves replicating all hosted repositories to all Gerrit instances of that setup.

-Matthias

張宇誠

unread,
Nov 29, 2022, 4:50:46 AM11/29/22
to Repo and Gerrit Discussion
Hi  Matthias,

Thanks for your advice. 
No, I would choose Gerrit HA plugin https://gerrit.googlesource.com/plugins/high-availability rather than multi-site plugin.
The DB means noteDB, but is there anyway to share same repo in two differnet Gerrit Master server without DB?

Best Regards,
Andy
Matthias Sohn 在 2022年11月28日 星期一下午5:00:37 [UTC+8] 的信中寫道:

Matthias Sohn

unread,
Nov 29, 2022, 5:35:16 AM11/29/22
to 張宇誠, Repo and Gerrit Discussion
On Tue, Nov 29, 2022 at 10:50 AM 張宇誠 <aa98...@gmail.com> wrote:
Hi  Matthias,

Thanks for your advice. 
No, I would choose Gerrit HA plugin https://gerrit.googlesource.com/plugins/high-availability rather than multi-site plugin.
The DB means noteDB, but is there anyway to share same repo in two differnet Gerrit Master server without DB?

Please avoid top posting on this list. Use interleaved posting instead as this simplifies following a conversation.

The high-availability plugin relies on a shared file system and consists of multiple Gerrit servers persisting git repositories in the same shared volume.
You can run it with one active and one or multiple passive servers or multiple active servers.

noteDB is not a separate storage system but stores Gerrit metadata in the respective git repository.
E.g. review comments added on patchset 1 of a change "refs/changes/01/801" for repository "foo" are stored in repository "foo"
and the custom ref "refs/changes/01/801/meta" points to this metadata so that Gerrit can look it up.
The actual patchsets which represent iterations of the change refs/changes/01/801 are referenced via additional refs:
refs/changes/01/801/1: patchset 1
refs/changes/01/801/2: patchset 2
...


-Matthias
 
Best Regards,
Andy
Matthias Sohn 在 2022年11月28日 星期一下午5:00:37 [UTC+8] 的信中寫道:
On Mon, Nov 28, 2022 at 8:22 AM 張宇誠 <aa98...@gmail.com> wrote:
Hi guys,

I have a issue that I want to bulid Gerrit multi-master, but my Gerrit server version is 3.5.0.1, there is no way for share with DB. How can I setup for multi-master, and share the same repo with two master? 
My purpose is to reduce the loading for one Gerrit Master server, thanks for the help.

You should consider updating to the latest 3.5 bugfix release which is  3.5.4 (https://www.gerritcodereview.com/3.5.html#354).
Did you follow https://gerrit.googlesource.com/plugins/multi-site/+/master/README.md to install multi-site plugin ?
Which DB do you mean ?

A multi-site setup of Gerrit involves replicating all hosted repositories to all Gerrit instances of that setup.

-Matthias

--
--
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/9a94a105-58f9-4ec3-8df4-aa60fb2be351n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages