Hello Liviu
Might need update documentation.
I tested Mongodb URI in following formats
modparam("usrloc", "cachedb_url",
"mongodb://node1:27017,node2:27017/opensips_prod01.userlocation")
or
modparam("usrloc", "cachedb_url",
"mongodb://node1:27017/opensips_prod01.userlocation")
they all works. Meaning you can add multiply mongos for redundancy an
HA purpose without adding any extra layers in between.
Reference
https://docs.mongodb.com/manual/reference/connection-string/
volga629
On Wed, Jun 6, 2018 at 2:05 PM, Liviu Chircu <li...@opensips.org> wrote:
Hi Volga,
The comma-separated hosts are correctly parsed by OpenSIPS and fed to
the libmongoc driver, which should be able to use them, as per [1].
So, in theory, this should work! In practice: nobody has yet lived to
tell the story using the latest libmongoc. Please let me know if you
run into any issues, and I'll happily help sort them out.
Best regards,
[1]: https://docs.mongodb.com/manual/reference/connection-string/
Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com
On 06.06.2018 17:30, volga...@networklab.ca wrote:
Hello Everyone,
We have the following config
#### USeR LOCation module
loadmodule "usrloc.so"
modparam("usrloc", "db_url", "postgres://uri/db")
modparam("usrloc", "use_domain", 1)
modparam("usrloc", "working_mode_preset",
"federation-cachedb-cluster")
modparam("usrloc", "location_cluster", 1)
modparam("usrloc", "cachedb_url",
"mongodb://10.100.101.9:27017/opensips_prod01.userlocation")
modparam("usrloc","nat_bflag","NATED_CALLEE")
In our setup we have mongodb cluster with 2 mongos to serve
application. Is possible in modparam("usrloc", "cachedb_url" "uri")
specify URI in format like mongodb module where you specify
mongodb:replica://primary mongos:port,backup mongos:port ?
volga629
_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users