commit | cdf18528b3894b7b0542b22c6c8dbd6d415cb042 | [log] [tgz] |
---|---|---|
author | Antonio Barone <syntonyze@gmail.com> | Tue Sep 01 13:50:44 2020 +0200 |
committer | Antonio Barone <syntonyze@gmail.com> | Wed Sep 02 16:34:39 2020 +0000 |
tree | 2b968b0a11eb5bf7a769cbae3819f2b0d6392546 | |
parent | ce199d7470c732e43cf2c6f8b102bc51a1a23c8c [diff] |
Remove replication events clustering Replication events clustering is still a work in progress and it is causing an elevated number of scheduled replication events which is flooding this dual-master instance peers. As an example, updating the user Settings' status on a gerrit instance replicating to a filesystem target configured with a distributionInterval of 1 causes a scheduling of 6 replication tasks, as such: ``` [2020-09-02 18:27:09,615] scheduling replication All-Users:refs/users/00/1000000 => file:///tmp/gerrit_setup/instance-2/git/All-Users.git [CONTEXT PLUGIN="replication" ] [2020-09-02 18:27:09,616] scheduled All-Users:refs/users/00/1000000 => [fcbdeafa] push file:///tmp/gerrit_setup/instance-2/git/All-Users.git to run after 5s [CONTEXT PLUGIN="replication" ] ``` This in turn, causes the emission of 6 ref-replication-scheduled events: ``` { "project":"All-Users", "ref":"refs/users/00/1000000", "targetNode":"/tmp/gerrit_setup/instance-2/git/All-Users.git", "type":"ref-replication-scheduled", "eventCreatedOn":1599063267 } ``` Remove shared events and volume so that only the active master is in charge of replication. Turn off replication distributor, accordingly. Bug: Issue 13346 Change-Id: Iee877729a72ee936a8a940abc90ed90879258829
Those are a collection of AWS CloudFormation templates and scripts to deploy Gerrit in AWS.
The aim is to provide some guidelines and example on how to deploy different Gerrit setups in the Cloud using AWS as provider.
The goal of Gerrit AWS Templates is to provide fully-functional Gerrit installations to helps users deploying Gerrit on AWS by providing out-of-the-box templates.
With Gerrit AWS Templates, developers and administrator can create a production-ready installation on the cloud in minutes and in a repeatable way, allowing them to focus on fine tuning of the Gerrit configuration to suit the user needs.
The provided CloudFormation templates automate the entire creation and deployment of the infrastructure and the application.
To manage your AWS services via command line you will need to install AWS CLI and set it up to point to your account.
To build gerrit and related-components' images Docker
This is a list of external services that you might need to setup your stack and some suggestions on how to easily create them.
If you need to setup a SMTP service Amazon Simple Email Service can be used. Details how setup Amazon SES can be found here.
To correctly setup email notifications Gerrit requires ssl protocol on default port 465 to be enabled on SMTP Server. It is possible to setup Gerrit to talk to standard SMTP port 25 but by default all EC2 instances are blocking it. To enable port 25 please follow this link.
If you need a testing LDAP server you can find details on how to easily create one in the LDAP folder.