I’m trying to setup OSS cluster by connecting to it using TCP client. I set gossip seeds manually, however exceptions about missing dns is popping out.
My connection is the same as in documentation:
EventStoreConnection.Create(
ConnectionSettings.Create().KeepReconnecting(),
ClusterSettings.Create()
.WithGossipTimeoutOf(TimeSpan.FromMilliseconds(500))
.WithGossipSeeds(new []
{
new IPEndPoint(IPAddress.Parse("192.168.0.1"), 2113),
new IPEndPoint(IPAddress.Parse("192.168.0.2"), 2113),
new IPEndPoint(IPAddress.Parse("192.168.0.3"), 2113)
}));
This results in DNS validation exceptions. I’ve looked into client source and it seems it always requires to pass valid dns record.
Am I missing something here or connection using gossip seeds just doesn’t work?
Is this still an issue with the 3.0.0-rc2 nuget package?
I have this code:
var serverIp = Dns.GetHostEntry(“my.server.name”);
var gossipSeeds = new[]
{
new IPEndPoint(serverIp.AddressList.First(), 1113),
new IPEndPoint(serverIp.AddressList.First(), 2113),
new IPEndPoint(serverIp.AddressList.First(), 3113)
};
var connectionSettings = ConnectionSettings.Create().EnableVerboseLogging().UseConsoleLogger();
var clusterSettings = ClusterSettings.Create().WithGossipSeeds(gossipSeeds);
If I try and run that without SetClusterDns it blows up saying it can’t be null, if I set it to the server name that all the nodes are running on (even though just want to use gossip seeds) it fails to discover any candidates.
The cluster is up, and I can connect to nodes individually (the commented out line above) without any problems.
The fix was for a different problem which impacted both scenarios dns and manual. If I now remember correctly i immediately switched to dns mode (i’m not using manual seed configs anymore). So it is very possible that this issue still persists. I think that two similar bugs were reported for similar functionality and it got lost.