From caf1b1ca2830e986facf639b2127c19e10126f93 Mon Sep 17 00:00:00 2001 From: Carter Grove Date: Sun, 22 Feb 2026 22:30:07 -0500 Subject: [PATCH] Limit HikariCP pool size to avoid exhausting shared DB connections The shared DigitalOcean PostgreSQL cluster has limited connection slots. Reduces HikariCP pool from default 10 to max 5 / min idle 2 to leave room for other services on the cluster. Co-Authored-By: Claude Opus 4.6 --- backend/src/main/resources/application.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/src/main/resources/application.yml b/backend/src/main/resources/application.yml index 32f276c..264ba0b 100644 --- a/backend/src/main/resources/application.yml +++ b/backend/src/main/resources/application.yml @@ -7,6 +7,9 @@ spring: username: ${DATABASE_USERNAME:mlbstats} password: ${DATABASE_PASSWORD:mlbstats} driver-class-name: org.postgresql.Driver + hikari: + maximum-pool-size: ${HIKARI_MAX_POOL_SIZE:5} + minimum-idle: ${HIKARI_MIN_IDLE:2} jpa: hibernate: