vert-x3 / vertx-consul-client

Vert.x Consul Client
Apache License 2.0
34 stars 23 forks source link

How to connect Consul cluster #73

Closed phamtai97 closed 4 years ago

phamtai97 commented 4 years ago

Hi all. I deploy Consul following the cluster model (3 nodes). So how to connect the vertx-consul-client to the cluster?

ruslansennov commented 4 years ago

just connect it to one of the nodes

phamtai97 commented 4 years ago

Oh, so if the node has died ??? Can I deploy Consul agent mode client to connect to Consul cluster, then I use vertx-consul-client connect to Consul agent ?

ruslansennov commented 4 years ago

You must start your own instance of the consul working in agent mode. You should send your requests to the consul agent, not the consul server, this is a normal scenario. In any case, vertx-consul-client does not intend to select a host from the list

phamtai97 commented 4 years ago

oh, thanks for your support. I will try it.