Skip to content

Commit ad7a6f2

Browse files
committed
Increased DB connection pool size
- the default of 10 is too small for this instance and it looks like we're running into stalled requests - by increasing this, we should be able to get more throughput to the DB, and still stay under the connection limit imposed by Cloud SQL
1 parent e15fc0f commit ad7a6f2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/db.ts

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ export const client = Knex({
1010
password: process.env.MYSQL_PASSWORD,
1111
database: process.env.MYSQL_DATABASE,
1212
},
13+
pool: {
14+
min: 1,
15+
max: 25,
16+
},
1317
});
1418

1519
type ActivityMeta = {

0 commit comments

Comments
 (0)