Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

awsnycast should initiate failover when route is active but target instance is stopping #21

Open
somic opened this issue Jun 23, 2017 · 1 comment

Comments

@somic
Copy link

somic commented Jun 23, 2017

If I understand correctly, awsnycast will repoint a route to another instance only when the route says it's blackholed.

I am still looking for evidence (in internal logs and around the Internet) but it looks to me like aws will mark a route "blackholed" only when its target instance is in "terminated" or "stopped" states.

To me it looks like a bug on their end - they should also blackhole the route when its target instance is in "stopping" or "shutting-down" states (for more details, please see internal DAR-233 and DAR-234).

Thoughts about this? Also, can you please point me to a place in the codebase where this logic is implemented? I tried grepping for blackhole but didn't find anything - will appreciate a hint.

@bobtfish
Copy link
Owner

I agree they should do blackhole as soon as stopping/shutting-down, but they don't. Maybe we should inspect the instance state and look for this as well..

https://github.com/bobtfish/AWSnycast/blob/master/aws/route_table_manager.go#L227 is probably what you're looking for code wise :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants