Gerrit servers replication

106 views
Skip to first unread message

kamal gumparthi

unread,
Sep 19, 2017, 1:35:09 AM9/19/17
to Repo and Gerrit Discussion
Hi Experts,

I am thus looking for ways to setup a Gerrit system which would consist of three servers, master-1 and master-2 and master 3.  Typically the master-1 server would be the main entry point to Gerrit and master-2 would be the backup server which would be enabled should master-1 go down. Master 3 would be our dev/test/disaster server.
Master-2 would be running the exact same software as master-1, with its Gerrit database and git repos automatically replicated from master-1.

Could you please provide solution or sort of prerequisites to maintain those gerrit servers. 
-All are linux servers(Centos)
-PostgreSQL installed
-Gerrit 2.11.5 installed in master 1 (Active server)
-Gerrit 2.12.2 installed in master 2 (inactive)
-Gerrit 2.12.2 installed in master 3 (inactive)

Regards,
kamalakar Sharma

luca.mi...@gmail.com

unread,
Sep 19, 2017, 2:18:10 AM9/19/17
to kamal gumparthi, Repo and Gerrit Discussion
Why are you running a different version on the failovers (2.12 vs 2.11)


Regards,
kamalakar Sharma

--
--
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.
For more options, visit https://groups.google.com/d/optout.

kamal gumparthi

unread,
Sep 20, 2017, 3:06:47 AM9/20/17
to Repo and Gerrit Discussion
Thanks for the reply.

At present master 1 is active. This also need to be upgraded later on.
As you mentioned this is also one prerequisite to upgrade the gerrit in all machine.
Required all the prerequisites and plan for this server replication.
Thanks for your response.

Regards,
kamalakar Sharma

kamal gumparthi

unread,
Sep 20, 2017, 6:10:07 AM9/20/17
to Repo and Gerrit Discussion
Could you please provide the plan,prerequisites how to do this setup for all three servers.

Luca Milanesio

unread,
Sep 20, 2017, 6:13:45 AM9/20/17
to kamal gumparthi, Repo and Gerrit Discussion
Hi Kamal,
see below my input.

1. All the masters need to be co-located (or sharing a high-speed NFS or other similar shared drive)
2. All the masters need to be pointing to the same ReviewDb
3. All the masters need to be running the same version of the code

Other than that, it is a simple HAProxy setup with the high-availability plugin on it.

Documentation on the high-availability plugin at:

HTH

Luca.

kamal gumparthi

unread,
Sep 21, 2017, 6:13:05 AM9/21/17
to Repo and Gerrit Discussion
Thanks for the valuable input.

is it not possible some thing like below?

1. Master1 have their own db,filesystem
2.Master 1 have their own db,filesystem
3.Master 3 have their own db, filesystem

All these three have same type of db versions, filesystems and get replicated or sync each other instead of having single db,filesystem shared by three masters.
if db,filesystem crashed then three of the servers get affected if they share single db,filesystem?

Please correct me if am wrong?

Regards,
kamalakar Sharma

luca.mi...@gmail.com

unread,
Sep 21, 2017, 8:55:19 AM9/21/17
to kamal gumparthi, Repo and Gerrit Discussion
See my feedback below

Sent from my iPhone

On 21 Sep 2017, at 11:13, kamal gumparthi <shar...@gmail.com> wrote:

Thanks for the valuable input.

is it not possible some thing like below?

1. Master1 have their own db,filesystem
2.Master 1 have their own db,filesystem
3.Master 3 have their own db, filesystem

I believe at the next forthcoming Gerrit User Summit there will be two talks of installations similar to the one you mentioned.

Are you coming to London the 2-3 October?

Luca

kamal gumparthi

unread,
Sep 21, 2017, 9:09:50 AM9/21/17
to Repo and Gerrit Discussion
I am in india!!! Difficult for me to attend :)
But happy if you provide the steps after your summit!!!

Regards,
kamalakar Sharma


On Thursday, September 21, 2017 at 2:55:19 PM UTC+2, lucamilanesio wrote:
See my feedback below

Sent from my iPhone

On 21 Sep 2017, at 11:13, kamal gumparthi <shar...@gmail.com> wrote:

Thanks for the valuable input.

is it not possible some thing like below?

1. Master1 have their own db,filesystem
2.Master 2 have their own db,filesystem

Luca Milanesio

unread,
Sep 21, 2017, 9:30:42 AM9/21/17
to kamal gumparthi, Repo and Gerrit Discussion
Hi Kamalakar,
the talks will be recorded (if the speaker agrees) and shared over the internet.

There are people coming from all around the world, India included :-)
If your company has budget for travelling, you're more than welcome to join.

Luca.
Reply all
Reply to author
Forward
0 new messages