Normalize NLB masters ports for dual-master

NLB in front of masters should always attach listeners over the same
ports, regardless of any configuration:

8080 for HTTP
29418 for SSH

this allows to configure the ha-proxy statically to always point to
master:8080 for http and master:29418 for SSH, for both master1 and

On the other hand however, host ports masters are exposed to can be
different and should honour configuration.

Fix ports mapping by normalizing listeners and honouring host port

Bug: Issue 13586
Change-Id: I0a9ee0eaaac1050c3489814f404d8fd58221d681
1 file changed
tree: 2e8d460d8f95aca413b2b3aefd2fe3a602260b96
  1. .gitignore
  5. Makefile.common
  9. common-templates/
  10. common.env
  11. dual-master/
  12. geo-location-routing/
  13. gerrit/
  14. ldap/
  15. load-test-fleet/
  16. master-slave/
  17. monitoring/
  18. single-master/

Gerrit AWS Templates

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


External services

This is a list of external services that you might need to setup your stack and some suggestions on how to easily create them.

SMTP Server

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.

LDAP Server

If you need a testing LDAP server you can find details on how to easily create one in the LDAP folder.