Skip to content

Standardize maxLifetime to 55 minutes across examples#248

Merged
amaksimo merged 1 commit intomainfrom
fix/standardize-max-lifetime
Jan 9, 2026
Merged

Standardize maxLifetime to 55 minutes across examples#248
amaksimo merged 1 commit intomainfrom
fix/standardize-max-lifetime

Conversation

@amaksimo
Copy link
Copy Markdown
Contributor

@amaksimo amaksimo commented Jan 8, 2026

Update connection pool maxLifetime settings to 3300 seconds (55 minutes) to align with connector best practices.

Rationale

The connector handles token refresh automatically, so connections can live longer without manual token management. 55 minutes is just under the 1-hour DSQL session limit.

Changes

File Before After
java/pgjdbc/ExamplePreferred.java 600000 (10 min) 3300000 (55 min)
java/spring_boot/application.yml 1800000 (30 min) 3300000 (55 min)
typescript/type-orm/data-source.ts 2700 (45 min) 3300 (55 min)

Also updated idleTimeout to 600000 (10 min) for consistency.

Update connection pool maxLifetime settings to 3300 seconds (55 minutes)
to align with connector best practices. The connector handles token
refresh automatically, so connections can live longer.

Changes:
- java/pgjdbc: 600000 (10 min) -> 3300000 (55 min)
- java/spring_boot: 1800000 (30 min) -> 3300000 (55 min)
- typescript/type-orm: 2700 (45 min) -> 3300 (55 min)

Also updated idleTimeout to 600000 (10 min) for consistency.
@amaksimo amaksimo marked this pull request as ready for review January 9, 2026 18:49
@amaksimo amaksimo enabled auto-merge (squash) January 9, 2026 18:49
@amaksimo amaksimo merged commit a90814c into main Jan 9, 2026
16 checks passed
@amaksimo amaksimo deleted the fix/standardize-max-lifetime branch January 9, 2026 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants