No primary server available when failover happens: MongoDB, Node.js, Mongoose -


i facing issue when failover happens in mongodb replica set. app fails reconnect newly elected primary server , fails perform subsequent write operations.

restarting app reconnects successfully.

the failover happens instantly , new primary elected. however, app fails connect new primary.

mongodb version: 3.2.6 mongoose version: 4.3.4 node.js version:0.10.26

any appreciated.

i have primary, secondary , arbiter set running in 3 different nodes. how connect using mongoose , failover works fine.

mongoose.connect('mongodb://user:pwd@a.com:27017,b.com:27017,c.com:27017/dbname'); 

so, expect mongodb:// variables.


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -