Using AWS Load Balancer “sportlogic-alb1”
Target Group
{
"HealthCheckPath": "/ping",
"HealthCheckIntervalSeconds": 30,
"VpcId": "vpc-42e92127",
"Protocol": "HTTP",
"HealthCheckTimeoutSeconds": 5,
"TargetType": "instance",
"HealthCheckProtocol": "HTTP",
"Matcher": {
"HttpCode": "200"
},
"UnhealthyThresholdCount": 2,
"HealthyThresholdCount": 5,
"TargetGroupArn": "arn:aws:elasticloadbalancing:ap-southeast-2:109850435236:targetgroup/appserver8-http-6888/588191778c697f26",
"HealthCheckEnabled": true,
"LoadBalancerArns": [
"arn:aws:elasticloadbalancing:ap-southeast-2:109850435236:loadbalancer/app/sportlogic-alb1/71db2827952be30a"
],
"HealthCheckPort": "traffic-port",
"Port": 6888,
"TargetGroupName": "appserver8-http-6888"
}
Targets are:
peach:6888
raspberry:6888
adelaide:6888
Database:
Database Name: sportlogic
Primary Host: rds1.sportlogic.net.au
Backup Host: rds6.sportlogic.net.au
In case primary db host is down or unreachable, change to backup host by setting the “database.host” property e.g.
java -Dspring.profiles.active=production -Ddatabase.host=rds6.sportlogic.net.au"