-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#2861 - sqlserver input plugin not working with Azure SQL #2864
Conversation
I will test your PR later, and i'll post some feedback |
Thanks @deluxor |
@deluxor Im done - added a param "disable_parallel" that will cause all queries within a server to run one by one - this is for some reason needed by Azure SQL - probably due to DOS detection. |
Great, I'll give it a try and back to you soon. |
The new plugin is running in my production env for a few hours now and it works prefect |
Is this because we are recreating a new connection pool every gather? We have an in progress PR to add this to postgres #2701, would this method work here? |
That was not the issue here, but it will make sense to implement the behavior here as well... |
Okay, so previously we would create multiple new connections per Gather. With this change we can use a single new connection per Gather? I don't really want an option to control if queries are run in parallel. I'm not experienced with the go sql library but it would make more sense to me to be able to configure the connection pool size that is used for the life of the plugin. |
Yes, single connection per connection string per gathering. Currently every run of the gather method, a new connection is being open, if we want one connection it ia a different request. |
I think adding this option as is leaks too much detail about the implementation. What if we added an option called |
Sounds good to me, I will fix the pull request |
I believe this was addressed in #3618 |
#2861 - sqlserver input plugin not working with Azure SQL