From f906b3b817726af29a68f3dd15723d2eb49331aa Mon Sep 17 00:00:00 2001 From: Ricardo Pinto Date: Mon, 14 Apr 2025 09:22:36 +0100 Subject: [PATCH] Increased connection pool limits closes https://linear.app/ghost/issue/AP-1069 - Increases connection pool limits. There were timeouts occuring due to connection pool being exhausted. --- src/db.ts | 2 +- src/db.unit.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/db.ts b/src/db.ts index e2339f9a0..fde438260 100644 --- a/src/db.ts +++ b/src/db.ts @@ -20,7 +20,7 @@ export const client = Knex({ }, pool: { min: 1, - max: 50, + max: 200, }, }); diff --git a/src/db.unit.test.ts b/src/db.unit.test.ts index 2b157675d..18e9d850d 100644 --- a/src/db.unit.test.ts +++ b/src/db.unit.test.ts @@ -11,7 +11,7 @@ describe('Knex Configuration', () => { it('should have correct pool settings', () => { expect(client.client.pool).toMatchObject({ min: 1, - max: 50, + max: 200, }); }); });