SessionPoolOptions
Constructor
SessionPoolOptions
new SessionPoolOptions(database, options)
Session pool configuration options.
Parameter |
|
---|---|
database |
The DB instance. |
options |
Optional Configuration options. |
Properties
Parameter |
|
---|---|
acquireTimeout |
Optional number Time in milliseconds before giving up trying to acquire a session. If the specified value is
|
concurrency |
Optional number How many concurrent requests the pool is allowed to make. |
fail |
Optional boolean If set to true, an error will be thrown when there are no available sessions for a request. |
idlesAfter |
Optional number How long until a resource becomes idle, in minutes. |
max |
Optional number Maximum number of resources to create at any given time. |
maxIdle |
Optional number Maximum number of idle resources to keep in the pool at any given time. |
min |
Optional number Minimum number of resources to keep in the pool at any given time. |
keepAlive |
Optional number How often to ping idle sessions, in minutes. Must be less than 1 hour. |
writes |
Optional number Percentage of session to be pre-allocated as write sessions. /** Class used to manage connections to Spanner. You don't need to use this class directly, connections will be handled for you. |
- Extends
- EventEmitter