telegraf icon indicating copy to clipboard operation
telegraf copied to clipboard

telegraf for windows - [inputs.sqlserver] Set deadlock priority to LOW

Open asterix67 opened this issue 4 years ago • 11 comments

Hello, I use telegraf 1.22.0 for windows. I have few deadlock.

When I trace telegraf's queries, I see all queries dont use SET DEADLOCK_PRIORITY -10 Only queries SQLServerPerformanceCounters and SQLServerDatabaseIO do "SET DEADLOCK_PRIORITY -10"

Personnally, iI use queries SQLServerRequests, SQLServerVolumeSpace, SQLServerCpu, SQLServerProperties, SQLServerMemoryClerks and it make deadlocks.

asterix67 avatar Mar 29 '22 09:03 asterix67

next steps: look into adding SET DEADLOCK_PRIORITY -10; to all queries.

powersj avatar Mar 29 '22 15:03 powersj

Sorry, I'm french and beginner with github :).

next steps: look into adding SET DEADLOCK_PRIORITY -10; to all queries.

I dont understand. Where I must look ?

asterix67 avatar Mar 30 '22 07:03 asterix67

Sorry, I'm french and beginner with github :).

No worries :)

The team was going through older issues yesterday and evaluating them. We agree with your request and in order to mark it ready for development, I like to put a note on the issue with what the next steps are and add the help wanted label.

If you are interested in working on this, all the queries are kept in the inpus.sqlserver folder. That's where those would need to be updated to include the deadlock priority option.

Happy to have you, or anyone else in the community work on updating this.

powersj avatar Mar 30 '22 13:03 powersj

Thank you for your answer.

I'm waiting a next version of telegraf for windows (actually i have 1.2.2).

asterix67 avatar Mar 30 '22 13:03 asterix67

Hello,

Up about this subject. Do you know if the next version will use SET DEADLOCK_PRIORITY -10 ?

asterix67 avatar Apr 28 '22 14:04 asterix67

Hi,

Do you know if the next version will use SET DEADLOCK_PRIORITY -10 ?

Once this issue is closed it will show up in our next release.

powersj avatar Apr 28 '22 15:04 powersj

Ok, Thank you.

asterix67 avatar Apr 29 '22 08:04 asterix67

This would be helpful for me as I am also running into this issue when restoring databases to my QA and Development Environments. Thanks for all your help with this

SteveKnowless avatar May 21 '22 02:05 SteveKnowless

As a reference, a similar issue that was temporarily solved in previous versions: [inputs.sqlserver] Set deadlock priority to LOW #4988

tesibelda avatar Jun 04 '22 17:06 tesibelda

Hi,

Is it planned to be fixed in the next version?

As a reference, a similar issue that was temporarily solved in previous versions: [inputs.sqlserver] Set deadlock priority to LOW #4988

asterix67 avatar Jun 06 '22 06:06 asterix67

#11522 added these priorities, this will go out in the next bug fix release, v1.23.3 possibly next week.

powersj avatar Jul 19 '22 16:07 powersj