Hi Palantir Community,
I’m encountering persistent issues trying to connect Foundry to MongoDB Atlas. Despite trying multiple connection strategies, I keep getting connection timeout errors. Here’s what I’ve tried so far:
Attempted Strategies:
Atlas Connection Type:
- Host: account1.abcd.mongodb.net (in this format)
- Authentication
- Add network access in Mongo with foundry IP
- Connection options: ssl, retryWrites, w=majority
Common Error Message:
MongoTimeoutException: Timed out after 30000 ms while waiting for a server that matches ReadPreferenceServerSelector{readPreference=primary}.
*The connection works fine in using standard MongoDB connection string (not with foundry)
Questions:
- Are there specific network/DNS configurations needed for Foundry to connect to MongoDB Atlas?
- Is there a recommended connection strategy for MongoDB Atlas in Foundry?
- Are there any known limitations or requirements when connecting Foundry to MongoDB Atlas?
Any guidance or best practices would be greatly appreciated.