MySQL query time limitation
It would be great, if mysql-fovernor can close connection after 10-15-30 secs of long query.
21
votes

-
AdminIgor Seletskiy (CEO, Cloud Linux) commented
This already exists see:
http://docs.cloudlinux.com/index.html?configuration.html<!-- killing slow SELECT queries (no other queries will be killed) -->
<!-- if "log" attribute was set all killed queries will be saved in log file -->
<slow_queries run="on|off" log="/var/log/dbgovernor-kill.log"/>and
<!-- Time to kill slow SELECT queries for account, can be different for accounts in seconds -->
<!-- enabled only when slow_queries run="on" -->
<limit name="slow" current="30"/> -
Dmitriy commented
+1