2015/03/31 20:50:30 [INFO] serf: attempting reconnect to node-172-28-128-53 172.28.128.53:8301
2015/03/31 20:50:33 [ERR] http: Request /v1/health/service/dummy?index=14&passing=1&wait=60000ms, error: rpc error: No cluster leader
2015/03/31 20:50:49 [ERR] agent: failed to sync remote state: rpc error: No cluster leader
2015/03/31 20:51:06 [ERR] agent: failed to sync remote state: rpc error: No cluster leader
2015/03/31 20:51:16 [INFO] serf: EventMemberJoin: node-172-28-128-53 172.28.128.53
2015/03/31 20:51:16 [INFO] consul: adding server node-172-28-128-53 (Addr: 172.28.128.53:8300) (DC: dc1)
2015/03/31 20:51:16 [INFO] consul: New leader elected: node-172-28-128-51
2015/03/31 20:56:11 [INFO] agent.rpc: Accepted client: 127.0.0.1:39088
2015/03/31 20:57:03 [INFO] agent.rpc: Accepted client: 127.0.0.1:39091
2015/03/31 21:03:17 [INFO] agent.rpc: Accepted client: 127.0.0.1:39107
A 'consul members' on the client agent shows that all 3 server nodes are present and healthy. Checking the local agent shows it is still aware of the local service:
curl http://localhost:8500/v1/agent/services
{"715036133e12:current-app-0:3000":{"ID":"715036133e12:current-app-0:3000","Service":"ar-hello-node","Tags":null,"Address":"","Port":3000}}
At this point, I had expected anti-entropy to add the locally registered service back into the catalog, but it never does so (I waited about 10 minutes), but while the consul ui for the cluster shows the client node as healthy, it does not show the service.
If I do a 'consul reload' on the client agent, then the logs show
==> Caught signal: hangup
==> Reloading configuration...
==> WARNING: LAN keyring exists but -encrypt given, ignoring
2015/03/31 21:04:51 [INFO] agent: Synced service '715036133e12:current-app-0:3000'
And the service now shows up in the cluster's catalog.
Am I misunderstanding how anti-entropy works? I thought that the local agents were authoritative, and would sync their locally registered services back to the catalog, even in the event of a complete cluster loss. Or do I potentially have my options set incorrectly?
--
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.
For more options, visit https://groups.google.com/d/optout.