diff --git a/config/config.default.js b/config/config.default.js index 96a25a04..1c0107a5 100644 --- a/config/config.default.js +++ b/config/config.default.js @@ -118,7 +118,7 @@ module.exports = appInfo => { url: process.env.EGG_MONGODB_URL || 'mongodb://127.0.0.1:27017/egg_cnode', options: { server: { poolSize: 20 }, - reconnectTries: Number.MAX_VALUE, + reconnectTries: 10, reconnectInterval: 500, }, };