MongoDB Replica set

Hello,
Has anyone ever tried to connect genieacs to a mongodb replica set?

mongodb://mongodb0.example.com:27017,mongodb1.example.com:27017,mongodb2.example.com:27017/?replicaSet=myRepl

Thanks,
Abdelhamid

Hi @ahamdaoui were you able to complete the connection using replica set? Greetings

Hello @picharras, No. Genieacs does not support the replica set URI format (I also tested version 1.2.3).

1 Like

Hello @zaidka can you please help ? We need to support replicatset URI format to add more secondary read only nodes. We also need password authentication for mongodb

mongodb://username:password@IPs/?replicaSet=xxx&readPreference=secondary

1 Like

@jvkassi you should be able to do that using MongoDB’s connection string. Any issues in particular you’re facing?

My bad, i used MONGODB_CONNECTION_URL instead of GENIEACS_MONGODB_CONNECTION_URL