You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,10 +6,19 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
6
6
7
7
## [Unreleased]
8
8
9
+
### Added
10
+
11
+
- Add configurable database connection pool settings to prevent idle connection buildup in multi-tenant deployments [#932](https://github.com/stellar/stellar-disbursement-platform-backend/pull/932)
12
+
13
+
### Changed
14
+
15
+
- Default Max Open Connections per pool changed from 30 to 20 to prevent idle connection buildup in multi-tenant deployments [#932](https://github.com/stellar/stellar-disbursement-platform-backend/pull/932)
16
+
9
17
### Fixed
10
18
11
19
- Fix HTML validation to allow apostrophes in invitation messages while maintaining security against XSS attacks [#930](https://github.com/stellar/stellar-disbursement-platform-backend/pull/930)
Copy file name to clipboardExpand all lines: README.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -386,6 +386,23 @@ The following environment variables can be used to configure the intervals of th
386
386
>Prior to version 3.7.0, background jobs were configured using ENABLE_SCHEDULER=true and EVENT_BROKER_TYPE=NONE.
387
387
>This configuration has been deprecated in favor of using EVENT_BROKER_TYPE=SCHEDULER.
388
388
389
+
### Database connection pool
390
+
391
+
Tune the per-tenant PostgreSQL connection pool with env vars (defaults shown):
392
+
393
+
```sh
394
+
# Maximum open connections per pool (default: 10)
395
+
DB_MAX_OPEN_CONNS=10
396
+
# Maximum idle connections retained (default: 0)
397
+
DB_MAX_IDLE_CONNS=0
398
+
# Close idle connections after N seconds (default: 2)
399
+
DB_CONN_MAX_IDLE_TIME_SECONDS=2
400
+
# Recycle connections after N seconds (default: 300 = 5 minutes)
401
+
DB_CONN_MAX_LIFETIME_SECONDS=300
402
+
```
403
+
404
+
These settings help prevent idle connection buildup across multi-tenant scheduler cycles, especially on constrained databases.
405
+
389
406
## Wallets
390
407
391
408
Please check the [Making Your Wallet SDP-Ready](https://docs.stellar.org/stellar-disbursement-platform/making-your-wallet-sdp-ready) section of the Stellar Docs for more information on how to integrate your wallet with the SDP.
0 commit comments