Reputation: 1
Has anybody successfully connected the Studio3T IDE to a MongoDB Atlas replica set rather than to an individual member of the replica set?
Details:
When I try to use the "Replica Set" option in Studio3T to set up a connection to my Atlas replica set, I get the following error when I try to connect:
Connection failed.
Timed out after 5000 ms while waiting for a server that matches com.mongodb.client.internal.MongoClientDelegate$1@1398bb34. Client view of cluster state is {type=REPLICA_SET, servers=[]
This error comes at the "Connecting to Server" step, after getting "OK" results returned from the "initializing the connection" step and "Configuring SSL" step.
I can connect directly to any one of the replica set servers without a problem, and I've added all three of those server addresses and ports to the list of members of the replica set in the connection dialog box. But when I try to have Studio3T choose how to connect to the replica set it fails with this error.
The bigger issue here is that I need to make sure that the connection goes to the primary server for writes and not the secondaries, but Atlas switches primary and secondary around pretty frequently, causing errors in my client code.
Any ideas how to fix this?
Thanks.
Upvotes: 0
Views: 60