From 748b21304ec5224d14ab5b98e7dc0e51ad96b72f Mon Sep 17 00:00:00 2001 From: titanism <101466223+titanism@users.noreply.github.com> Date: Tue, 26 Sep 2023 17:04:45 -0500 Subject: [PATCH] fix: added pmx false per , added connection pool closed error check --- ecosystem-api.json | 2 ++ ecosystem-bree.json | 1 + ecosystem-smtp.json | 3 +++ ecosystem-web.json | 2 ++ helpers/is-socket-error.js | 1 + 5 files changed, 9 insertions(+) diff --git a/ecosystem-api.json b/ecosystem-api.json index fec536528f..3380e3cae8 100644 --- a/ecosystem-api.json +++ b/ecosystem-api.json @@ -6,6 +6,7 @@ "exec_mode": "cluster", "wait_ready": true, "instances": "max", + "pmx": false, "env_production": { "NODE_ENV": "production" } @@ -16,6 +17,7 @@ "exec_mode": "fork", "wait_ready": true, "instances": "1", + "pmx": false, "env_production": { "NODE_ENV": "production" } diff --git a/ecosystem-bree.json b/ecosystem-bree.json index 25510df7ea..e97aa693da 100644 --- a/ecosystem-bree.json +++ b/ecosystem-bree.json @@ -6,6 +6,7 @@ "exec_mode": "fork", "wait_ready": true, "instances": "1", + "pmx": false, "env_production": { "NODE_ENV": "production" } diff --git a/ecosystem-smtp.json b/ecosystem-smtp.json index 067facbd4a..4c12ccf445 100644 --- a/ecosystem-smtp.json +++ b/ecosystem-smtp.json @@ -6,6 +6,7 @@ "exec_mode": "cluster", "wait_ready": true, "instances": "max", + "pmx": false, "env_production": { "NODE_ENV": "production", "SMTP_PORT": 2587 @@ -17,6 +18,7 @@ "exec_mode": "cluster", "wait_ready": true, "instances": "max", + "pmx": false, "env_production": { "NODE_ENV": "production", "SMTP_PORT": 2465 @@ -28,6 +30,7 @@ "exec_mode": "fork", "wait_ready": true, "instances": "1", + "pmx": false, "env_production": { "NODE_ENV": "production" } diff --git a/ecosystem-web.json b/ecosystem-web.json index c55fbface9..024e0c077e 100644 --- a/ecosystem-web.json +++ b/ecosystem-web.json @@ -6,6 +6,7 @@ "exec_mode": "cluster", "wait_ready": true, "instances": "max", + "pmx": false, "env_production": { "NODE_ENV": "production" } @@ -16,6 +17,7 @@ "exec_mode": "fork", "wait_ready": true, "instances": "1", + "pmx": false, "env_production": { "NODE_ENV": "production" } diff --git a/helpers/is-socket-error.js b/helpers/is-socket-error.js index f8b4a76e4b..99f7b7c1b3 100644 --- a/helpers/is-socket-error.js +++ b/helpers/is-socket-error.js @@ -1,6 +1,7 @@ function isSocketError(err) { return Boolean( err.message === 'Connection closed' || + err.message === 'Connection pool was closed' || err.message === 'Connection closed unexpectedly' || err.message === 'Socket closed unexpectedly' || err.message === 'Unexpected socket close' ||