From c926985328235bdc29a72b8ccce4cf75e609c9db Mon Sep 17 00:00:00 2001 From: Debiancc Date: Wed, 17 Oct 2018 10:29:22 +0800 Subject: [PATCH] fix - Update mongodb reconnect tries(#133) --- config/config.default.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, }, };