Replicasets

279 views
Skip to first unread message

Luke Galea

unread,
May 19, 2011, 11:58:18 PM5/19/11
to mongoo...@googlegroups.com
Hi all,

I'm trying to setup a replica set using mongoose v1.3.6.

My uri is in the form: mongodb://server/db,server2/db, server3/db

It's actually creating a db called: db,mongodb:server2-db (,etc) which is breaking the replicaset (I guess 10gen doesn't expect crazy names like that).

Does anyone have a working replicaset? What url format are you using?

Thanks in advance!

Aaron Heckmann

unread,
May 20, 2011, 9:54:14 AM5/20/11
to mongoo...@googlegroups.com
Try this: mongodb://server/db,mongodb://server2/db,mongodb://server3/db
--
Aaron


Luke Galea

unread,
May 20, 2011, 10:08:35 AM5/20/11
to mongoo...@googlegroups.com
Sorry, no luck there. That doesn't work either. Still tries to create a nutty database. :(

Aaron Heckmann

unread,
May 20, 2011, 11:05:45 AM5/20/11
to mongoo...@googlegroups.com
Are you using mongoose.createSetConnection(connectionString) ?


On Fri, May 20, 2011 at 10:08 AM, Luke Galea <ldg...@gmail.com> wrote:
Sorry, no luck there. That doesn't work either. Still tries to create a nutty database. :(



--
Aaron


Luke Galea

unread,
May 20, 2011, 11:25:52 AM5/20/11
to mongoo...@googlegroups.com
Argh. No, I'm using connect.. I guess that's my problem eh? I'll give that a go. Thanks!

Luke Galea

unread,
May 25, 2011, 8:46:03 PM5/25/11
to mongoo...@googlegroups.com
I finally got around to trying this and it's not actually connecting. Does createSetConnection *replace* the call to connect? (that doesn't seem to be the case). 

Is there documentation anywhere on this? 

Thanks in advance!

Aaron Heckmann

unread,
May 25, 2011, 9:32:58 PM5/25/11
to mongoo...@googlegroups.com
post an failing example?
--
Aaron


Luke Galea

unread,
May 26, 2011, 11:35:46 AM5/26/11
to mongoo...@googlegroups.com
There's an open ticket https://github.com/LearnBoost/mongoose/issues/351

I just added a sample there.  Thanks Aaron.
Reply all
Reply to author
Forward
0 new messages