How to setup HA (active/passive) in AWS?

Article ID:236353948
1 minute readKnowledge base

Issue

  • A user wants to setup CloudBees Jenkins Platforms in High Availability (active/passive) in AWS

Environment

  • CloudBees Jenkins Operations Center Amazon Marketplace AMI (CJOC)

  • CloudBees Jenkins Enterprise Amazon Marketplace AMI (CM)

  • Amazon Elastic Load Balancer (ELB)

Resolution

This follows the same approach as the High Availability documentation. This article is meant to supplement that guide.

  • The two CJOC or two CM which make up the HA singleton need to be configured to point to a NFS drive

  • The ELB Load Balancer needs to be configured to load balance HTTP(S) traffic to the CloudBees Jenkins Instances which form the HA singleton.

  • The ELB Load Balancer needs to perform a health check on the Jenkins Instances on /ha/health-check

Setup NFS

To set up the NFS Server please see: NFS Guide

Deploy Amazon Marketplace AMIs and configure the CJOC

Please follow our documentation to deploy the AWS Marketplace AMI Images Once both images have been deployed. Please follow the steps from the High Availability documentation.

Install CloudBees Jenkins Operations Center HA Monitor Tool

Follow the steps from the High Availability documentation.

Configure Amazon ELB