Reputation: 115
Firstly - not using docker yet. Jenkins best practice is to have a master and a backup master for fail-over. I've decoupled HOME & mounted it to EFS & backed this up + have got it working in ASG=2. My question is should I Load Balance the 2 nodes, pointing to 1 and then redirecting to backup at fail-over all in ASG=2. Or should I create 2 ASG's one for the master and one for the backup and use AWS DNS Health check to do the repointing. I am keen to have the backup as a lesser speced vm for cost purposes, but am really keen for some clarity to creating HA Jenkins. Iinterested in AWS approach- not trying to load balance traffic - but create a backup master.
Upvotes: 1
Views: 889
Reputation: 111
ASG = 1 itself is HA. If you want zero downtime, configure 2 Jenkins(1 per AZ) behind an ALB. Backup only Jenkins config directory to save money. There is S3 plugin available for that.
For a detailed answer go through this paper. Check out the DR and HA part. https://docs.aws.amazon.com/aws-technical-content/latest/jenkins-on-aws/jenkins-on-aws.pdf
Upvotes: 1