Hi,
We have some issues connecting to an EventStore cluster. It seems it tries to connect to an internal IP. We do specify the “ExtIpAdvertiseAs” though.
Any help is welcome.
Thanks
Guillaume
Setup :
-
V3.8.1
-
2 nodes cluster running on Docker Swarm mode
-
JVM client V2.0.3
Logs:
2016-09-12 15:42:10,089 INFO e.cluster.ClusterDiscovererActor akka://perfimmo-eventstore/user/$a/cluster - Discovering cluster: attempt 1/10 successful: best candidate is MemberInfo(cf132853-5555-4177-a410-aa91d7a92bb0,2016-09-12T13:42:09.326Z,Master,true,/10.0.0.4:1112,/10.0.0.4:1116,/10.0.0.4:0,/10.0.0.4:0,/10.0.0.4:2112,/10.0.0.4:2116,2977893586,2977915544,2977915544,2977743091,19,8f8f1c2d-71e1-430f-87e2-06e7de2ad931,10)
2016-09-12 15:42:11,144 WARN eventstore.tcp.ConnectionActor akka://perfimmo-eventstore/user/$a - Connection failed to /10.0.0.4:1116
2016-09-12 15:42:21,113 INFO e.cluster.ClusterDiscovererActor akka://perfimmo-eventstore/user/$a/cluster - Failed to reach cluster best node MemberInfo(cf132853-5555-4177-a410-aa91d7a92bb0,2016-09-12T13:42:09.326Z,Master,true,/10.0.0.4:1112,/10.0.0.4:1116,/10.0.0.4:0,/10.0.0.4:0,/10.0.0.4:2112,/10.0.0.4:2116,2977893586,2977915544,2977915544,2977743091,19,8f8f1c2d-71e1-430f-87e2-06e7de2ad931,10) with error: java.util.concurrent.TimeoutException: Futures timed out after [10 seconds]
2016-09-12 15:42:21,129 WARN s.can.client.HttpClientConnection akka://perfimmo-eventstore/user/IO-HTTP/group-0/2 - Configured connecting timeout of 10 seconds expired, stopping
2016-09-12 15:42:21,132 WARN s.can.client.HttpHostConnectionSlot akka://perfimmo-eventstore/user/IO-HTTP/host-connector-2/0 - Connection attempt to 10.0.0.4:2116 failed in response to GET request to /gossip?format=json with 5 retries left, retrying…
``
EventStore Options
MODIFIED OPTIONS:
DB: /data/db (Command Line)
LOG: /data/logs (Command Line)
RUN PROJECTIONS: all (Command Line)
EXT IP: 0.0.0.0 (Command Line)
INT IP: 0.0.0.0 (Command Line)
CLUSTER SIZE: 2 (Command Line)
CLUSTER DNS: eventstore-test (Command Line)
CLUSTER GOSSIP PORT: 2112 (Command Line)
CONFIG: /data/eventstore.yml (Command Line)
MAX MEM TABLE SIZE: 100000 (Environment Variable)
WORKER THREADS: 12 (Environment Variable)
EXT IP ADVERTISE AS: X.X.X.X (Config File)
EXT TCP PORT ADVERTISE AS: 1116 (Config File)
EXT HTTP PORT ADVERTISE AS: 2116 (Config File)
``
Connection code
lazy val settings = Settings(
address = new InetSocketAddress(“X.X.X.X”, 1116),
defaultCredentials = (login |@| password) { (l,p) => UserCredentials(l,p) },
maxReconnections = -1,
operationTimeout = 20 seconds,
operationMaxRetries = 5,
requireMaster = false,
cluster = ClusterSettings(
gossipSeedsOrDns = GossipSeedsOrDns.GossipSeeds(new InetSocketAddress(“X.X.X.X”, 2116), new InetSocketAddress(“Y.Y.Y.Y”, 2116)),
gossipTimeout = 10 seconds
).some
)
``
X.X.X.X , Y.Y.Y.Y are our external IPs