elastic IP race with multiple Eureka servers in single availability zone?

57 views
Skip to first unread message

store...@gmail.com

unread,
Jul 12, 2015, 4:41:01 PM7/12/15
to eureka_...@googlegroups.com
I have been looking at the code in Eureka that looks for an available elastic IP to bind to. If we have multiple Eureka servers in the same availability zone that are started as part of an autoscaling group, it looks like when both servers start up they will both try to bind to the first available elastic IP. If the timing is right, one will associate with it, and then the next server will associate with it, which will unbind it from the first server. After the retry interval, the first server will then bind with the other remaining EIP.

Am I understanding this behavior correctly? And if yes, is there a standard way to deal with this? Should we stagger the starting of instances in the ASG? Just leave it as is and it will bind both servers after the retry interval? Or something else?

Thanks,
Jeff

dl...@netflix.com

unread,
Jul 12, 2015, 5:20:45 PM7/12/15
to eureka_...@googlegroups.com, store...@gmail.com
Hi Jeff,

As you say there may be some very quick races if certain things happen in some exact order or time, however things should always converge to a stable state. In practice we also run multiple Eureka servers per az and have never observed this to be an issue.

Thanks,
David

store...@gmail.com

unread,
Jul 12, 2015, 5:24:08 PM7/12/15
to eureka_...@googlegroups.com, store...@gmail.com
Thanks for the info and appreciate the quick reply.
Reply all
Reply to author
Forward
0 new messages