Use elb address as retry-join?

187 views
Skip to first unread message

Yong Zhang

unread,
Mar 7, 2019, 9:08:23 PM3/7/19
to Consul
Hi, all

I'm using a public cloud provider to build consul cluster, cluster nodes are managed by Auto Scaling Group (this means when nodes are dead they will be killed by ASG and ASG will start new one), and in front of consul server nodes there's an ELB (load balancer), consul cloud auto-joining supports cloud provider like aws, azure... so it supports defining retry-join like -retry-join "provider=aws tag_key=... tag_value=...", but my cloud provider is not in the list, I'm wondering if I can use elb IP address as the value of -retry-join so it can find dynamic nodes behind elb? 

Thanks.

consul.png

Shantanu Gadgil

unread,
Mar 10, 2019, 11:23:39 AM3/10/19
to Consul
In my quick opinion, if the ELB ip address/cname/dns name is constant, then this could work, (eventually) though, what also comes to mind is...
How/why will the connection go to all servers?

This is a good use case to try and see what actually happens when you delete one server and new one is created in its place.

Jason

unread,
Mar 10, 2019, 6:49:00 PM3/10/19
to Consul
I've done this (well, I used the ELB _DNS_ as IP addresses of ELBs
change). Everything worked fine. My observation was Consul used the ELB
to initially connect to a consul server, after which gossip took over
and the ELB was not further used.

-Jason Martin
>--
>This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
>
>GitHub Issues: https://github.com/hashicorp/consul/issues
>Community chat: https://gitter.im/hashicorp-consul/Lobby
>---
>You received this message because you are subscribed to the Google Groups "Consul" group.
>To unsubscribe from this group and stop receiving emails from it, send an email to consul-tool...@googlegroups.com.
>To view this discussion on the web visit https://groups.google.com/d/msgid/consul-tool/1d38a8d9-12fd-47d0-bf0d-f252becc9d8f%40googlegroups.com.
>For more options, visit https://groups.google.com/d/optout.

Yong Zhang

unread,
Mar 10, 2019, 10:36:54 PM3/10/19
to Consul
Thanks Jason. And is this a production ready solution? Official documents didn't mention this even one word.
Reply all
Reply to author
Forward
0 new messages