[SR-Users] ndb_mongodb, db_mongodb and replicasets
Daniel-Constantin Mierla
miconda at gmail.com
Mon Nov 16 10:39:06 CET 2015
Quickly looking at the code, the ndb_mongodb should work with this kind
of uri. Do you get any errors?
Can you run with debug=3 and watch for log messages from ndb_mongodb
containing '... added server ...'. Does it have the replica set uri there?
Cheers,
Daniel
On 16/11/15 09:57, Kelvin Chua wrote:
> yes,
>
> for example:
>
> mongodb://10.0.1.1
> <http://10.0.1.1>,10.0.1.2,10.0.1.3/replicaSet=rs0&slaveOk=true&readPreference=primaryPreferred
> <http://10.0.1.3/replicaSet=rs0&slaveOk=true&readPreference=primaryPreferred>
>
> i tried this but it didn't work.
>
>
> according to mongoc documentation, this URI should be valid
>
> http://api.mongodb.org/c/1.2.1/mongoc_uri_t.html
>
>
>
> Kelvin Chua
>
> On Thu, Nov 12, 2015 at 3:53 PM, Daniel-Constantin Mierla
> <miconda at gmail.com <mailto:miconda at gmail.com>> wrote:
>
> Is there a specific format of the url for this case?
>
> Cheers,
> Daniel
>
>
> On 11/11/15 11:41, Kelvin Chua wrote:
>> anybody ever tried using a mongodb url with replicasets and
>> parameters to work
>> with kamailio?
>>
>> Kelvin Chua
>>
>>
>> _______________________________________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users at lists.sip-router.org <mailto:sr-users at lists.sip-router.org>
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
> --
> Daniel-Constantin Mierla
> http://twitter.com/#!/miconda <http://twitter.com/#%21/miconda> - http://www.linkedin.com/in/miconda
> Book: SIP Routing With Kamailio - http://www.asipto.com
> Kamailio Advanced Training, Nov 30-Dec 2, Berlin - http://asipto.com/kat
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing
> list
> sr-users at lists.sip-router.org <mailto:sr-users at lists.sip-router.org>
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com
Kamailio Advanced Training, Nov 30-Dec 2, Berlin - http://asipto.com/kat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20151116/3af86a7b/attachment.html>
More information about the sr-users
mailing list