Свернуть ↑
## Тонкая настройка (!!только если на 100% уверены, что делаете!!)
# Min no of connections the pool will (initially) create (per partition)
MinConnectionsPerPartition = 20
# Max no of connections the pool will ever create (per partition).
MaxConnectionsPerPartition = 60
# Sets number of partitions to use.
PartitionCount = 10
# Number of new connections to create in 1 batch whenever we need more connections.
AcquireIncrement = 10
# This sets the time (in minutes), for a connection to remain idle before sending a test query to the DB.
IdleConnectionTestPeriod = 10
# Maximum age of an unused connection before it is closed off. In minutes.
IdleMaxAge = 10
# Number of release-connection helper threads to create per partition.
ReleaseHelperThreads = 5
# After attempting to acquire a connection and failing, wait for this value before attempting to acquire a new connection again.
AcquireRetryDelay = 7000
# After attempting to acquire a connection and failing, try to connect these many times before giving up.
AcquireRetryAttempts = 5
# If set to true, the connection pool will remain empty until the first connection is obtained.
LazyInit = False
# If set to true, stores all activity on this connection to allow for replaying it again automatically if it fails. Makes the pool marginally slower.
TransactionRecoveryEnabled = False
# Queries taking longer than this limit to execute are logged.
QueryExecuteTimeLimit = 0
# Time to wait before a call to getConnection() times out and returns an error.
ConnectionTimeout = 0
MaximumDbConnections = 30