File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -1723,15 +1723,20 @@ oracledb.poolMax = 4;
1723
1723
Number poolMaxPerShard
1724
1724
```
1725
1725
1726
- Sets the maximum number of connections per [shard](#sharding) for connection
1727
- pools. This ensures that the pool is balanced towards each shard.
1726
+ Sets the maximum number of connection in the pool that can be used for any
1727
+ given shard in a sharded database. This lets connections in the pool be
1728
+ balanced across the shards. A value of zero will not set any maximum number of
1729
+ sessions for each shard.
1728
1730
1729
1731
This property may be overridden when [creating a connection pool](#createpool).
1730
1732
1731
- When this property is set, and a new connection request would cause the number
1732
- of connections to the target shard to exceed the limit, then that new connection
1733
- request will block until a suitable connection has been released back to the
1734
- pool. The pending connection request will consume one worker thread.
1733
+ When this property is greater than zero, and a new connection request would
1734
+ cause the number of connections to the target shard to exceed the limit, then
1735
+ that new connection request will block until a suitable connection has been
1736
+ released back to the pool. The pending connection request will consume one
1737
+ worker thread.
1738
+
1739
+ See [Connecting to Sharded Databases](#sharding) for more information.
1735
1740
1736
1741
This property was added in node-oracledb 4.1. It is available when
1737
1742
node-oracledb uses Oracle client libraries 18.3, or later.
You can’t perform that action at this time.
0 commit comments