Should Consul instances be placed behind a load balancer

700 views
Skip to first unread message

erich oliphant

unread,
Jun 19, 2017, 2:21:20 PM6/19/17
to Consul
Hi, I'm working with Consul on AWS and I've been using the ec2 tag support to get the cluster up, clients and servers talking, etc.  However, there are still instances where I might need to point directly to a server, say running some scripts that aren't on an EC2 instance, etc.  Does it makes sense to just sit them behind an ELB so that there's a well-known address for non-EC2 clients?

James Phillips

unread,
Jun 24, 2017, 7:08:32 PM6/24/17
to consu...@googlegroups.com
Hi, in general it's still best to try to run the agent everywhere and
have your applications talk to their local agent. That way if you
register services there you automatically get the serfHealth check for
that agent from the cluster, automatic management of finding a healthy
Consul server, etc. If you can't run an agent then it's ok to run the
ELB (we have some folks that only care about KV, for example, who do
this).
> --
> 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
> IRC: #consul on Freenode
> ---
> 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/d98852db-2546-4173-91b6-36319a58bd6e%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages