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

You begin maintain golang mongo driver based on go-mgo/mgo? #34

Closed
xkeyideal opened this issue Sep 7, 2017 · 5 comments
Closed

You begin maintain golang mongo driver based on go-mgo/mgo? #34

xkeyideal opened this issue Sep 7, 2017 · 5 comments

Comments

@xkeyideal
Copy link

No description provided.

@xkeyideal xkeyideal changed the title You begin maintain golang mongo driver base go-mgo/mgo? You begin maintain golang mongo driver based on go-mgo/mgo? Sep 7, 2017
@domodwyer
Copy link

Hi @xkeyideal

Yes, we (@globalsign) are maintaining this fork of mgo that we use internally - we're committed to keeping it alive and updated for the long term and are open to PRs from others :)

We merge PRs into development, which is then tested in a sharded, replicated environment in our datacenter for regressions. Once everyone is happy, we merge to master - this is to maintain a bit of quality control past the usual PR process.

@xkeyideal
Copy link
Author

Please see the issue
https://github.com/go-mgo/mgo/issues/487

@xkeyideal
Copy link
Author

I found the reason, see the issue.

I think you should fix it, the mode of nearest should visit localhost server mongodb possibly, not just check the network latency.

@domodwyer
Copy link

Hi @xkeyideal

If you want to talk to the local database only and ignore the rest of the cluster, you should use the connect=direct dial string parameter - check the documentation.

The current behaviour works for our needs and seems to be correct so we won't be changing it ourselves. Saying that, if you think the current behaviour is broken you're welcome to open a PR.

Dom

@xkeyideal
Copy link
Author

I know connect=direct, but if the local database disconnect, then the server will down.

So I need nearest support as the mongodb documentation.

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

2 participants