Elffuss BraidHub

kikocis/EDC public

main · 4.7 KiBRenderedRawPermalink
1# SQL Pool Apache Commons Pool
2
3This extension registers named `javax.sql.DataSource`s to
4the `org.eclipse.edc.transaction.datasource.spi.DataSourceRegistry`
5capable of pooling `java.sql.Connection`s. The pooling mechanism is backed by
6the [Apache Commons Pool library](https://commons.apache.org/proper/commons-pool/).
7
8## Old Configuration (Deprecated since 0.3.1)
9
10| Key | Description | Mandatory |
11|:--------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------|-----------|
12| edc.datasource.<datasource_name>.url | JDBC driver url | X |
13| edc.datasource.<datasource_name>.pool.maxIdleConnections | The maximum amount of idling connections maintained by the pool | |
14| edc.datasource.<datasource_name>.pool.maxTotalConnections | The maximum amount of total connections maintained by the pool | |
15| edc.datasource.<datasource_name>.pool.minIdleConnections | The minimum amount of idling connections maintained by the pool | |
16| edc.datasource.<datasource_name>.pool.testConnectionOnBorrow | Flag to define whether connections will be validated when a connection has been obtained from the pool | |
17| edc.datasource.<datasource_name>.pool.testConnectionOnCreate | Flag to define whether connections will be validated when a connection has been established | |
18| edc.datasource.<datasource_name>.pool.testConnectionOnReturn | Flag to define whether connections will be validated when a connection has been returned to the pool | |
19| edc.datasource.<datasource_name>.pool.testConnectionWhileIdle | Flag to define whether idling connections will be validated | |
20| edc.datasource.<datasource_name>.pool.testQuery | Test query to validate a connection maintained by the pool | |
21| edc.datasource.<datasource_name>.<jdbc_properties> | JDBC driver specific configuration properties | |
22
23## New Configuration (since 0.3.1)
24
25| Key | Description | Mandatory |
26|:-----------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------|-----------|
27| edc.datasource.<datasource_name>.url | JDBC driver url | X |
28| edc.datasource.<datasource_name>.pool.connections.max-idle | The maximum amount of idling connections maintained by the pool | |
29| edc.datasource.<datasource_name>.pool.connections.max-total | The maximum amount of total connections maintained by the pool | |
30| edc.datasource.<datasource_name>.pool.connections.min-idle | The minimum amount of idling connections maintained by the pool | |
31| edc.datasource.<datasource_name>.pool.connection.test.on-borrow | Flag to define whether connections will be validated when a connection has been obtained from the pool | |
32| edc.datasource.<datasource_name>.pool.connection.test.on-create | Flag to define whether connections will be validated when a connection has been established | |
33| edc.datasource.<datasource_name>.pool.connection.test.on-return | Flag to define whether connections will be validated when a connection has been returned to the pool | |
34| edc.datasource.<datasource_name>.pool.connection.test.while-idle | Flag to define whether idling connections will be validated | |
35| edc.datasource.<datasource_name>.pool.connection.test.query | Test query to validate a connection maintained by the pool | |
36| edc.datasource.<datasource_name>.<jdbc_properties> | JDBC driver specific configuration properties | |