-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Description
Hiya,
We have an environment where individual instances are running multiple servers behind multiple load balancers (mostly for cost saving).
I think Capify-ec2 assumes that each instance only belongs to one load balancer.
For instance:
We have two environments, dev and staging. They both run on the same instance. This instance has two load balancers, one for dev and one for staging, pointing to different ports with different health checks.
During a deployment of staging the degreister_instance_from_elb_by_dns de-registered the instance from the dev ELB.
I have a couple of ideas on solutions, but imagine it could get pretty complicated pretty quick.
- The simplest would be to deregister from all ELBs, but that isn't quite right.
- An alternative would be to accept another parameter alongside
:load_balancedwhich provides a regex or name of the ELB that can be deregistered from. - A final idea would be to reuse the health check: i.e. get all ELBs that this instance is part of, and using the health checks from each role deregister it if there is a match between the ELB list and the health check list.
Let me know your thoughts - I'll see if I can prototype something when I get some time.
Cheers,
Ed
Metadata
Metadata
Assignees
Labels
No labels