umongo
umongo copied to clipboard
URI support for mulitple servers in sharded cluster connection string
umongo 1.4.2 (100.0) OSX 10.6.8 Java: 1.6.0_45
Hopefully, I am just not understanding something and someone can hit me with the clue-stick.
I am trying to connect via URI to a sharded cluster using the 3 mongos instances in the URI. The connection string spec indicates that one can use multiple servers for just such a case, I assume:
http://docs.mongodb.org/manual/reference/connection-string/
If I only use one of the three servers, the connection works. If I put 2 or more, it does not. It doesn't matter which of the 3 servers I choose in either case - one host in the URI works, more than one does not. For instance:
mongodb://host1/ # works mongodb://host2/ # works mongodb://host1,host2/ # does not work
Here is a quick 90-sec screencast that I did to show what I am seeing:
http://www.screencast.com/t/dQ8L346l
Any suggestions are appreciated.
thanks for report. Support for multiple mongos is not implemented yet. The java driver supports it, but really only uses 1 mongos at a time. Not sure how useful it will be to have in umongo, only interest is to flush mongos configs or get their logs I guess.
Thanks for the reply. Mostly I was looking for verification that I wasn't doing something incorrectly. I understand your point about this not being useful in umongo, but the ability to verify/connect to a production cluster with the same connection string one would use in code would be a nice thing. Obviously, not a big deal. Thanks again.
reopening it, multi mongos should be supported somehow in future. thanks