Number of processes and connections of builtin zone MTA is now configurable via Mailtrains config.

This commit is contained in:
Tomas Bures 2019-03-09 14:07:11 +01:00
parent 97bb700334
commit 9b32e59b50
2 changed files with 4 additions and 2 deletions

View file

@ -217,6 +217,8 @@ builtinZoneMTA:
redis: redis://localhost:6379/2 redis: redis://localhost:6379/2
log: log:
level: warn level: warn
processes: 2
connections: 5
seleniumWebDriver: seleniumWebDriver:
browser: phantomjs browser: phantomjs

View file

@ -108,8 +108,8 @@ async function createConfig() {
default: { default: {
preferIPv6: false, preferIPv6: false,
ignoreIPv6: true, ignoreIPv6: true,
processes: 1, processes: config.builtinZoneMTA.processes,
connections: 5, connections: config.builtinZoneMTA.connections,
pool: 'default' pool: 'default'
} }
} }