jurmous / etcd4j

Java / Netty client for etcd, the highly-available key value store for shared configuration and service discovery.
Apache License 2.0
267 stars 83 forks source link

EtcdClient Constructor does not provide multi uris #145

Closed regardfs closed 7 years ago

regardfs commented 7 years ago

Hi, It seems that EtcdClient Constructor do not provide multi uris for connection, usually when connecting to etcd cluster , we input all cluster nodes:port, like

client = etcd.Client(host=(('127.0.0.1', 4001), ('127.0.0.1', 4002), ('127.0.0.1', 4003)))

May your guys tell me why we could not ?

lburgazzoli commented 7 years ago

Please have a look at EtcdClient constructors, they support multiple uris with varargs

regardfs commented 7 years ago

@lburgazzoli, Hi , I am a totally java greenhand, and spent two days to startup java, then I saw a URI ...baseurl in constructors, thanks a lot !!!