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
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)