A timeout occured after 30000ms selecting a server using CompositeServerSelector{ Selectors = ReadPreferenceServerSelector{ ReadPreference = { Mode = Primary, TagSets = [] } }, LatencyLimitingServerSelector{ AllowedLatencyRange = 00:00:01 } }. Client view of cluster state is { ClusterId : "5", ConnectionMode : "ReplicaSet", Type : "ReplicaSet", State : "Disconnected", Servers : [{ ServerId: "{ ClusterId : 5, EndPoint : "Unspecified/serverA.domain:27017" }", EndPoint: "Unspecified/serverA.domain:27017", State: "Disconnected", Type: "Unknown" }, { ServerId: "{ ClusterId : 5, EndPoint : "Unspecified/serverB.domain:27017" }", EndPoint: "Unspecified/serverB.domain:27017", State: "Disconnected", Type: "Unknown" }] }.
Thanks
Hi Tiago,
Dows someone knows how the C# MongoDb Driver discover if a sever is Disconnected ou Connected? I’m asking because one of my servers does this very fast, and the other take more than 30 seconds.
The C# Driver Core documentation outlines at a high level how Server Discovery and Monitoring takes place. Essentially the driver will connect to each host in the seed list and issue an isMaster command.
Considering that one application server works while the other doesn’t, could you please confirm that both servers have the same networking configuration and use an identical connection string? If possible could you include an example of the string you are using.
Regards,
John Murphy