gerrit multi-site

161 views
Skip to first unread message

Brahma

unread,
Jun 16, 2020, 2:29:04 PM6/16/20
to Repo and Gerrit Discussion
Hello All,

I  have been working on gerrit 12.11.10 on single site installation. Now I would want to install gerrit-multisite 3.2 ; with 2 masters.  could anyone help me how to proceed on this.  I'm very new this setups. 

Regards.
GB

ps reddy

unread,
Jun 17, 2020, 6:09:33 AM6/17/20
to Repo and Gerrit Discussion
direct migration form 2.11.10 -> 3.2 is not possible. you need to follow some break upgrades in b/w.

please check check release notes  https://www.gerritcodereview.com/3.2.html (Schema Changes)

Brahmu

unread,
Jan 8, 2021, 2:52:11 AM1/8/21
to Repo and Gerrit Discussion
I want to install a new setup with 3.2.  Im no table to get multi-site plugin generated thru bazel.  coul dyou advice ? 

GB


On Tuesday, June 16, 2020 at 11:59:04 PM UTC+5:30, Brahmu wrote:

mac...@gmail.com

unread,
Jan 8, 2021, 3:39:22 AM1/8/21
to Repo and Gerrit Discussion
Hi Brahmu,


This will give general idea which plugins and components are needed.
Both linux and mac platforms are supported

Best regards,
Marcin
Message has been deleted

Jigar R

unread,
Jan 11, 2021, 3:41:01 PM1/11/21
to Repo and Gerrit Discussion
On Friday, January 8, 2021 at 3:39:22 AM UTC-5 mac...@gmail.com wrote:
Hi Brahmu,


This will give general idea which plugins and components are needed.
Both linux and mac platforms are supported

Best regards,
Marcin


I have setup multi site gerrit on AWS recently. I have 2 gerrit instances, kafka and zookeeper for multi-site setup.

Following plugins were needed in my case:
- websession-broker
- zookeeper-refdb
- kafka-events
- replication ( this does not work on gerrit SSH port which is usually 29418)
       - SSH key needs to be generated on both instances " ssh-keygen -m PEM -t rsa"  ( This is mandatory for replication plugin to work)
       - add instance 1's generated key to instance 2 (at ~/.ssh/authorized_keys)
       - add instance 2's generated key to instance 1
- you would also need to copy events-broker jar to $gerrit_home/lib folder (https://repo1.maven.org/maven2/com/gerritforge/events-broker/)

In terms of configuration:

$ gerrit.config
[gerrit]
         serverId = ( this has to be the same for instance1 & instance2)
         ......
[plugin "kafka-evnets"]
         ....
        groupId =  ( this would be specific to instance it can be instance-1 / instance-2)

Jigar R

unread,
Jan 11, 2021, 3:42:42 PM1/11/21
to Repo and Gerrit Discussion
I also copied all of the mentioned plugins to both lib and plugins folder.

shang...@gmail.com

unread,
Feb 7, 2021, 11:42:43 AM2/7/21
to Repo and Gerrit Discussion
Does your multi-site instance Gerrit works?

Actually, I also need a guide to tell me how to install a multi-site Gerrit step by step, unfortunately, I did not find any documents or article that told me how to.

Luca Milanesio

unread,
Feb 7, 2021, 4:34:58 PM2/7/21
to shang...@gmail.com, Luca Milanesio, Repo and Gerrit Discussion

On 7 Feb 2021, at 16:42, shang...@gmail.com <shang...@gmail.com> wrote:

Does your multi-site instance Gerrit works?

Actually, I also need a guide to tell me how to install a multi-site Gerrit step by step, unfortunately, I did not find any documents or article that told me how to.

The multi-site plugin has a test environment that you can create locally and has all the components needed (see [1]).

The multi-site plugin contains also:
- Overall installation guide (see [2]).
- Design document (see [3]).
- Configuration guide (see [4]).

NOTE: Setting up a Gerrit in a multi-site configuration isn’t trivial as it requires several skills, like configuring a Kafka PubSub broker and Zookeeper. If you would need help in getting all the components installed and up-and-running, there are companies offering consultancy and enterprise support (see [5]).

HTH

Luca.


--
--
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/693a02a3-5fab-4c92-ae7a-af4daf673d2bn%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages