Skip to content

EUREKA-935: Configure Hikari pool to recover from Postgres reboots - #283

Merged
dmtkachenko merged 1 commit into
masterfrom
EUREKA-935
Dec 1, 2026
Merged

dmtkachenko merged 1 commit into
masterfrom
EUREKA-935

Conversation

@dmtkachenko

@dmtkachenko dmtkachenko commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Purpose

AWS-forced Postgres minor upgrades and parameter group changes require database reboots, which currently cause about 20 minutes of full cluster downtime because every module has to be stopped and restarted. The HikariCP connection pool was never configured explicitly, so the pool does not recover from short connection drops on its own.

US: EUREKA-935

Approach

  • spring.datasource.hikari in src/main/resources/application.yml now sets the pool properties explicitly. Each value can be overridden through a DB_* environment variable.
  • Keepalive stays disabled by default (DB_KEEPALIVE_TIME=0). Stale connections are validated on checkout and aged out after DB_MAX_LIFETIME.
  • DeployConfig.json declares the ten new DB_* variables with the same defaults.
  • README.md documents the same variables in the environment variables table.

Pre-Review Checklist

  • Self-reviewed Code — Reviewed code for issues, unnecessary parts, and overall quality.
  • Change Notes — NEWS.md updated with clear description and issue key.
  • Testing — Confirmed changes were tested locally or on dev environment.
  • Breaking Changes — Handled all required actions if changes affect API, DB, or interface versions.
    • API/schema changes
    • Interface version updates
    • DB schema changes / migration scripts
  • New Properties / Environment Variables — Updated README.md if new configs were added.
  • Environment Recreation Test (if needed) — Verified that environment can be recreated successfully.

@sonarqubecloud

Copy link
Copy Markdown

@dmtkachenko dmtkachenko added the ai label Nov 30, 2026
@dmtkachenko
dmtkachenko marked this pull request as ready for review November 30, 2026 17:05
@dmtkachenko
dmtkachenko requested a review from a team as a code owner November 30, 2026 17:05
@dmtkachenko
dmtkachenko merged commit a670176 into master Dec 1, 2026
16 checks passed
@dmtkachenko
dmtkachenko deleted the EUREKA-935 branch December 1, 2026 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants