-
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
input/sqlserver: Add service and save connection pools #8596
input/sqlserver: Add service and save connection pools #8596
Conversation
Thanks for reopening @mjiderhamn is this something you or @nwneisen are currently working on? |
efeff95
to
40e9c99
Compare
Signed-off-by: Nick Neisen <nwneisen@gmail.com>
cddca7a
to
4c9d327
Compare
4c9d327
to
95cde44
Compare
I'd be willing to try to take this to a mergeable state. I have rebased onto |
@mjiderhamn sounds good, that's great! Nothing currently on my side. |
Any news on getting this merged, @helenosheaa |
@mjiderhamn it looks like it has conflicts with master, if you can address those. After that it needs to be reviewed, I'll take a look and request another reviewer :) |
# Conflicts: # plugins/inputs/sqlserver/sqlserver_test.go
14973f8
to
55d97e6
Compare
@helenosheaa |
@denzilribeiro or @Trovalo would either of you mind taking a look at this? |
@avinash-nigam would you or anyone else on your team be able to take a review on this PR? |
DatabaseType string `toml:"database_type"` | ||
IncludeQuery []string `toml:"include_query"` | ||
ExcludeQuery []string `toml:"exclude_query"` | ||
pools []*sql.DB |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIK, for connection pooling, we usually have a default pool size and add connection to pool if the number of connections is less than pool size. was there a specific reason of not having that mechanism? Is it safe to have any number of pools in the list? I think it might be ok considering it depends on the number of connection string from Servers []string toml:"servers"
. However would like to understand your thinking.
Looks good to me! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Would be curious to better understand how masree's comment might effect this but other than that this seems to make sense.
I did leave a reply to @masree , which is marked as "Pending" :-/ I wrote
|
@mjiderhamn could you address the merge conflicts again, then we can merge. Thanks for your work on this. |
Sorry, I meant to say if we need to set max open and idle connections. Thanks for clarifying. |
6df2543
to
bfcc4e8
Compare
bbb8795
to
57fbada
Compare
@helenosheaa I fixed the merge issues, but I don't understand what's up with CircleCI. If I run Edit: Oh wait, you've switched to Go 1.16. |
# Conflicts: # go.mod # plugins/inputs/sqlserver/sqlserver.go # plugins/inputs/sqlserver/sqlserver_test.go
383867a
to
b67d713
Compare
# Conflicts: # go.mod # plugins/inputs/sqlserver/sqlserver.go # plugins/inputs/sqlserver/sqlserver_test.go
b67d713
to
bdae599
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Required for all PRs:
Since the issue persists while #6713 was closed by author @nwneisen , I'm opening up a new PR to fix #5898.