Skip to content

Commit ba420ec

Browse files
authored
Merge pull request #220 from topcoder-platform/hotfix/db-performance
[PROD] [Hotfix] DB performance config
2 parents fde2680 + 0a54843 commit ba420ec

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

config/default.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ module.exports = {
1111
ssl: process.env.DATABASE_SSL != null,
1212
},
1313
pool: {
14-
max: 5,
15-
min: 0,
16-
idle: 10000,
14+
max: process.env.DATABASE_POOL_MAX || 5,
15+
min: process.env.DATABASE_POOL_MIN || 0,
16+
idle: process.env.DATABASE_POOL_IDLE || 20000,
17+
acquire: process.env.DATABASE_POOL_ACQUIRE || 50000,
1718
},
1819
},
1920

0 commit comments

Comments
 (0)