https://github.com/fedordikarev/aws_ha_keepalived
https://github.com/fedordikarev/aws_ha_keepalived
aws-ec2 keepalived
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fedordikarev/aws_ha_keepalived
- Owner: fedordikarev
- Created: 2016-11-14T15:10:00.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-15T16:54:45.000Z (over 9 years ago)
- Last Synced: 2025-12-01T22:18:09.341Z (6 months ago)
- Topics: aws-ec2, keepalived
- Language: Shell
- Size: 3.91 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AWS HighAvailability with Keepalived and Elastic IP
## Intro
Here are some scripts that allows reliably failover Elastic IP with Keepalived.
## Why do I need it?
As there may be some delays or even failures in Elastic IP switchover, Keepalived should
constantly check owner of Elastic IP and allow other instance to become MASTER if something went wrong.
## Requirements
1. VRRP protocol must be allowed for Inbound Secuirty Group.
1. Instances must belong to IAM role with permissions to assign Elastic IP.
## Generating configuration
1. You have to replace `%PROCESS%`, `%REGION%`, `%LOCAL_IP%`, `%PEER_IP%`, `%ELASTIC_IP%` with your actual values.
1. Or you could add tag `aws_ha_keepalived` to instances with the value of your Elastic IP and run `generate_aws_ha_keepalived.sh` script. For that case each instance must have exactly one secondary private ip address which will be used for Keepalived unicast communications and for Elastic IP address assignment.