Optim - Increase connection idle timeout (#19553)
<img width="1486" height="55" alt="Screenshot 2026-04-10 at 14 20 19" src="https://github.com/user-attachments/assets/29bbd120-e183-4ea3-a6c5-5cd876a81ef5" /> <img width="1490" height="55" alt="Screenshot 2026-04-10 at 14 20 14" src="https://github.com/user-attachments/assets/0455b6c7-032a-4cd7-8741-fd7b73e537e5" /> <img width="1482" height="57" alt="Screenshot 2026-04-10 at 14 20 07" src="https://github.com/user-attachments/assets/18699de8-4e1c-44b8-bcb9-871ed1e6e6d0" /> On last 7 days
This commit is contained in:
@@ -73,6 +73,8 @@ export const typeORMCoreModuleOptions: TypeOrmModuleOptions = {
|
||||
: undefined,
|
||||
extra: {
|
||||
query_timeout: Number(process.env.PG_DATABASE_PRIMARY_TIMEOUT_MS ?? 10000),
|
||||
idleTimeoutMillis: Number(process.env.PG_POOL_IDLE_TIMEOUT_MS ?? 600000),
|
||||
allowExitOnIdle: process.env.PG_POOL_ALLOW_EXIT_ON_IDLE === 'true',
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user