You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to take a look at making this change.
From what I can tell from looking at the PostgresSql plugin, the initialization and stop code for SqlServer should be moved into a Service. The service plugin will setup the connection pool to be used by the regular input plugin. When telegraf is terminated, the service plugin will be responsible for cleaning up the connection pool. This should also cleanup the structure of the SqlServer plugin as it currently has a number of checks to make sure everything is initialized.
I think I've got everything I need to start on this but wanted to lay out the plan in case someone sees something I'm missing.
Feature Request
Proposal:
The sqlserver input should reuse connections from the connection pool.
Current behavior:
New connection pool is created every interval.
Desired behavior:
Hang on to the connection pool and reuse.
Use case:
Should be a lighter resource load on Telegraf and the server.
See also #3485 (comment)
The text was updated successfully, but these errors were encountered: