-
-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support atlas shared cluster #337
Comments
Hm yeah we have some trouble with MongoDB Atlas |
So hope it goes in few times need it. pls inform me here if it fixed. |
Which MongoDB atlas service do you use? |
I told it in my Post it's MongoDB Atlas |
@VidarDev MongoDB Atlas has many different clusters. like serverless clusters, dedicated clusters and shared clusters. I can confirm there's not problem with fee M0 tier of dedicated cluster. Also we know serverless clusters are not supported yet. So make sure you created a dedicated M0 cluster with default options |
i have a M0 shared Cluster So I can use shared for free, dedicated not. mine is hosted in the cloud. And not locally. Can this be the problem? |
ok now i generate a cluster local and not cloud and it goes. So any ATA for use clouded and serverless? |
why did you close it? we should improve our atlas support |
sry didnt want close it 🙈 |
@VidarDev I recommend you to use the object version it is faster than srv url: await client.connect({
db: "<db_name>",
tls: true,
servers: [
/*
You can pass the 3 shared cluster url, just copy and paste the object below
three times and edit every single cluster url.
*/
{
host: "<db_cluster_url>",
port: 27017,
},
],
credential: {
username: "<username>",
password: "<password>",
db: "<db_name>",
mechanism: "SCRAM-SHA-1",
},
}); If, we connect to Atlas DB using srv url, it will take too long but we can use the general cluster url generated by mongodb Atlas. Pd. Sorry by my English, I am learning. 🖖🏻 |
Database conected right after a short time get error error:
I connect with srv url
my code
Normally the srv url is in env. if i produce the same on node i get no error
The text was updated successfully, but these errors were encountered: