I have the following pt-kill daemon
setup. It works but doesn't kill a query such as SELECT GET_LOCK(300)
. If I remove --ignore-state 'User lock'
will this fix it?
sudo /usr/bin/pt-kill --ignore-state 'User lock' --rds --match-command Query --victims all --match-user phppoint --daemonize --busy-time 15 --kill --print h=HOST,u=master,p=PASSWORD,P=3306
It looks like if I don't specify --ignore-state
the default is locked. Will this still work?
From manual:
The default is to keep threads from being killed if they are locked waiting for another thread.
What are the downsides of killing locked queries?