Skip to content
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

LoadBalanced topology type #189

Open
andrew-ko opened this issue May 17, 2023 · 8 comments
Open

LoadBalanced topology type #189

andrew-ko opened this issue May 17, 2023 · 8 comments

Comments

@andrew-ko
Copy link

Hi, thanks for your work!

Please consider to add support of "LoadBalanced" topology
https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-discovery-and-monitoring.rst#topologytype-loadbalanced

Currently it's unable to connect to MongoDB Atlas with this error:

(Mongo.Error) The server is being accessed through a load balancer, but this driver does not have load balancing enabled 354

As I know officially supported drivers only need load_balanced: true option in this case.

@zookzook
Copy link
Owner

Unfortunately I didn't have the possibility to use a load balancer configuration. There is some work to do to support load balancer. For example the monitoring changes in the case of a load balancer.

@dvic
Copy link
Contributor

dvic commented Jul 10, 2023

Is there a workaround? (to connect to atlas)

@dvic
Copy link
Contributor

dvic commented Jul 10, 2023

By the way @andrew-ko, not sure if you are aware, but the regular deployment type (not serverless) seems to work, I only have the issue with the serverless deployment

@zookzook
Copy link
Owner

No progress so far, I need an environment using a load balancer. There are some changes mentioned in the specifications when using a load balancer.

@csaltos
Copy link

csaltos commented Nov 29, 2023

You may create a free MongoDB Atlas account at https://www.mongodb.com/cloud/atlas/register

Once your new MongoDB Atlas account is created you can refer to the Java setup instructions to get the connection URL and user and password to make tests.

Please, if you need further details or if the free account is not enough, let us know and we can coordinate some viable good alternatives.

By the way, thank you very much for your project and your code, it's very cool, at my company we can use it with our in-house dedicated servers correctly.

@kyri33
Copy link

kyri33 commented Oct 10, 2024

Hi. I am happy to provide you with a Load Balanced mongo environment as well as provide assistance in adding this feature.

We are having to switch to Atlas Shared / Dedicated Cluster from Atlas Serverless Cluster as we are unable to connect from elixir due to this error.

As serverless deployments become more popular in the cloud hosting world, this will likely become more of an issue.

@zookzook
Copy link
Owner

Hi kyri33,

this sounds good. But before I can start the development, I would like to point out that I will be on holiday for the next week. I guess I'll come back to the offer the week after next.

@zookzook
Copy link
Owner

It will take some time. I'm looking at the DBConnection right now because the specs say the connection needs to be pinned. DBConnection does not support this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants