mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
connection idle timeout in 10 seconds
This commit is contained in:
parent
942b2374b8
commit
59d4d78f78
1 changed files with 5 additions and 1 deletions
|
|
@ -153,8 +153,12 @@ const main = async () => {
|
|||
subscribers: [__dirname + '/events/**/*{.js,.ts}'],
|
||||
namingStrategy: new SnakeNamingStrategy(),
|
||||
logger: new CustomTypeOrmLogger(['query', 'info']),
|
||||
connectTimeoutMS: 40000, // 40 seconds
|
||||
connectTimeoutMS: 10000, // 10 seconds
|
||||
maxQueryExecutionTime: 10000, // 10 seconds
|
||||
extra: {
|
||||
max: env.pg.pool.max,
|
||||
idleTimeoutMillis: 10000, // 10 seconds
|
||||
},
|
||||
})
|
||||
|
||||
// respond healthy to auto-scaler.
|
||||
|
|
|
|||
Loading…
Reference in a new issue