feat(inputs.sqlserver): Set pool size and idle connection - #17796
Conversation
srebhan
left a comment
There was a problem hiding this comment.
Thank you for your PR @meorkamil! A few comments from my side.
srebhan
left a comment
There was a problem hiding this comment.
Thanks @meorkamil for the update! Some more comments...
| ## Connection pool configuration. | ||
| ## Set the maximum number of open connections to the database. | ||
| ## Default is 0 (unlimited) | ||
| # max_open_connections = 0 |
There was a problem hiding this comment.
Please be brief. You don't need to mention the default as this is in the commented option...
| ## Connection pool configuration. | |
| ## Set the maximum number of open connections to the database. | |
| ## Default is 0 (unlimited) | |
| # max_open_connections = 0 | |
| ## Maximum number of open connections to the database, 0 allows the driver to decide | |
| # max_open_connections = 0 |
| ## Set the maximum number of connections in the idle connection pool. | ||
| ## Default is 2 | ||
| # max_idle_connections = 2 |
There was a problem hiding this comment.
| ## Set the maximum number of connections in the idle connection pool. | |
| ## Default is 2 | |
| # max_idle_connections = 2 | |
| ## Maximum number of idle connections in the connection pool, 0 allows the driver to decide | |
| # max_idle_connections = 0 |
There was a problem hiding this comment.
Similar to max_open_connections, Noted.
0f5c408 to
c081819
Compare
|
Download PR build artifacts for linux_amd64.tar.gz, darwin_arm64.tar.gz, and windows_amd64.zip. 📦 Click here to get additional PR build artifactsArtifact URLs |
skartikey
left a comment
There was a problem hiding this comment.
@meorkamil Thanks for the contribution!
Summary
[[inputs.sqlserver]]do not support connection pooling. Hence it created multiple connection to the database. This PR is to add the connection pool.Checklist
Related issues
resolves #17781