How to setup HA in AWS?

Issue

  • A user wants to setup CloudBees Jenkins Platforms in High Availability 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

Follow the steps from our How to setup Amazon ELB as the Load Balancer of CJOC

Have more questions?

2 Comments

  • 0
    Avatar
    Venu Kumaresan

    i have followed this guide and installed jenkins instance on jenkins01 server. When i install jenkins in jenkins02 server, its also coming up as primary server. though both the instance running on same nfs storage, it did not work as expected. i am not sure where the issue is.

  • 0
    Avatar
    Arnaud Héritier

    Hi Venu,

      Could you open a support case. We'll assist you to troubleshoot the issue.

    Best regards

     

Please sign in to leave a comment.