how to sync services between cluster nodes

483 views
Skip to first unread message

Tom

unread,
Oct 14, 2017, 9:59:06 AM10/14/17
to Consul
I think I'm misunderstanding how cluster sync is supposed to work. 

I'm building a 3-node cluster using "consul agent" with the following config:

{
  "datacenter": "dc1",
  "data_dir": "/usr/lib/consul",
  "log_level": "INFO",
  "node_name": "<hostname>",
  "server": true,
  "bootstrap_expect": 3,
  "retry_join": ["<server1, server2, server3"],
  "client_addr": "<local ip>",
  "bind_addr": "<local ip>",
  "ui": true,
  "enable_syslog": true
}


This mostly seems to work as I expect, but when I register a service with one node it doesn't replicate to the other nodes. Is that by design?

David Adams

unread,
Oct 14, 2017, 10:26:59 AM10/14/17
to consu...@googlegroups.com
What kind of service, and how are you registering it? If it's external to the node itself, you need to use the catalog API, see https://www.consul.io/docs/guides/external.html.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/consul-tool/d32b5177-6049-4606-8f12-3c75ce813ed7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tom Hall

unread,
Oct 14, 2017, 10:56:47 AM10/14/17
to consu...@googlegroups.com
Aha! I believe that answers my question. Thanks much!

On Sat, Oct 14, 2017 at 9:26 AM David Adams <dave...@gmail.com> wrote:
What kind of service, and how are you registering it? If it's external to the node itself, you need to use the catalog API, see https://www.consul.io/docs/guides/external.html.

On Sat, Oct 14, 2017 at 8:59 AM, Tom <tmha...@gmail.com> wrote:
I think I'm misunderstanding how cluster sync is supposed to work. 

I'm building a 3-node cluster using "consul agent" with the following config:

{
  "datacenter": "dc1",
  "data_dir": "/usr/lib/consul",
  "log_level": "INFO",
  "node_name": "<hostname>",
  "server": true,
  "bootstrap_expect": 3,
  "retry_join": ["<server1, server2, server3"],
  "client_addr": "<local ip>",
  "bind_addr": "<local ip>",
  "ui": true,
  "enable_syslog": true
}


This mostly seems to work as I expect, but when I register a service with one node it doesn't replicate to the other nodes. Is that by design?

--
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.
--
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 a topic in the Google Groups "Consul" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/consul-tool/nFWEZAhUZBk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to consul-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/consul-tool/CAN3s8zYXkV3%2Bqu6kw3NFcisyt_HQE-RFFjDMsxKOkhoBr8FD0A%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages