Open developez opened 1 year ago
Are you using moleculer-db-adapter-mongo
?
I could confirm that this happens on a Mongo service restart (maybe due to memory) - the pool is not reestablished if the mongo service is down for more than 40 seconds during restart. It should be possible to fix using connection parameters and setting the retry timeout to a higher value:
new MongoDBAdapter("Connection URI",{
poolSize: 100,
wtimeout: 2500,
connectTimeoutMS: 10000,
}
I got a persistence service that uses mongo. When mongo restarts, the persistence service returns "server instance pool was destroyed". I think in reset the persistence service when that thing happens. Is there another idea to deal with this???
Moleculer 0.14.12