We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d84f10 commit 60c8f66Copy full SHA for 60c8f66
src/configs/db.config.ts
@@ -13,6 +13,9 @@ const poolConfig: pg.PoolConfig = {
13
host: process.env.POSTGRES_HOST,
14
password: process.env.POSTGRES_PASSWORD,
15
port: Number(process.env.POSTGRES_PORT),
16
+ max: 10, // 최대 연결 수
17
+ idleTimeoutMillis: 30000, // 연결 유휴 시간 (30초)
18
+ connectionTimeoutMillis: 5000, // 연결 시간 초과 (5초)
19
};
20
21
if (process.env.NODE_ENV === 'production') {
0 commit comments