Skip to content

Commit d792a0a

Browse files
committed
Add warning about buggy DB_MAXSHAREDPOOLSIZE - RMB-1030
1 parent 12c679d commit d792a0a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ RMB implementing modules expect a set of environment variables to be passed in a
356356
- DB_QUERYTIMEOUT
357357
- DB_CHARSET
358358
- DB_MAXPOOLSIZE
359-
- DB_MAXSHAREDPOOLSIZE
359+
- DB_MAXSHAREDPOOLSIZE (buggy, do not use: [RMB-1030](https://folio-org.atlassian.net/browse/RMB-1030))
360360
- DB_CONNECTIONRELEASEDELAY
361361
- DB_MAX_LIFETIME
362362
- DB_RECONNECTATTEMPTS
@@ -373,7 +373,7 @@ See the [Vert.x Async PostgreSQL Client Configuration documentation](https://ver
373373

374374
The environment variable `DB_MAXPOOLSIZE` sets the maximum number of concurrent connections for a tenant that one module instance opens. They are only opened if needed. If all connections for a tenant are in use further requests for that tenant will wait until one connection becomes free. Other tenants and other instances of a module are unaffected. The default is 4.
375375

376-
The environment variable `DB_MAXSHAREDPOOLSIZE` sets the maximum number of concurrent connections that one module instance opens. They are only opened if needed. If all connections are in use further requests will wait until one connection becomes free. This way one tenant may block other tenants. If the variable is set `DB_MAXPOOLSIZE` is ignored and all connections are shared across tenants.
376+
`DB_MAXSHAREDPOOLSIZE` is buggy ([RMB-1030](https://folio-org.atlassian.net/browse/RMB-1030)), DO NOT USE! The environment variable `DB_MAXSHAREDPOOLSIZE` sets the maximum number of concurrent connections that one module instance opens. They are only opened if needed. If all connections are in use further requests will wait until one connection becomes free. This way one tenant may block other tenants. If the variable is set `DB_MAXPOOLSIZE` is ignored and all connections are shared across tenants.
377377

378378
Use `DB_SERVER_PEM` (or `server_pem` in the JSON config) to set SSL/TLS certificate(s) in PEM format to validate the PostgreSQL server certificate, this can be the server certificate, the root CA certificate, or the chain of the intermediate CA and the CA certificate. Defaults to none allowing unencrypted connection only. If set requires a TLSv1.3 connection and a valid server certificate, and rejects unencrypted connections.
379379

0 commit comments

Comments
 (0)