Skip to content

Commit 2d49171

Browse files
committed
fix: TypeOrm retryAttempts 속성 추가
1 parent 86923c3 commit 2d49171

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/type-orm/database.module.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@ import {
2525
process.env.NODE_ENV === 'production' ? ['error', 'warn'] : 'all',
2626
logger: 'advanced-console',
2727
poolSize: process.env.NODE_ENV === 'production' ? 5 : 1, // 풀 사이즈 조절
28-
maxQueryExecutionTime: 3000, // 롱 쿼리 로그 출력 시간
28+
maxQueryExecutionTime: 2000, // 롱 쿼리 로그 출력 시간
29+
retryAttempts: 2,
30+
retryDelay: 1000,
2931
extra: {
30-
max: 10, // 최대 연결 수
31-
connectionTimeoutMillis: 4000, // 최대 커넥션 대기 시간
32+
max: 5, // 최대 연결 수
33+
connectionTimeoutMillis: 3000, // 최대 커넥션 대기 시간
3234
},
3335
}),
3436
async dataSourceFactory(options) {

0 commit comments

Comments
 (0)