-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
50 lines (26 loc) · 856 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
SELECTQKILLER
--------------------
Description:
This is a simple program for finding and killing slow mysql select queries produced by your applications.
Once started, it executes constanlty 'show full processlist' and watches for SELECT queries that are slower than defined time 'config_max_query_time' and kills the slow queries. Killed queries are logged in myslowlogfile.log file.
Who needs this?
Someone who manages projects that using Linux MySQL.
Easy to install (from linux console)
#> make
Easy to configure. It uses ini-like configuration file.
#> vim selectqkiller.cnf
----
[Main]
config_max_query_time=20
[Mysql user config]
config_host=localhost
config_user=root
config_pass=
config_db=test
config_logfilepath=/root/selectqkiller
----
Easy to use
#> ./selectqkiller
#>
Easy to remove (from linux console)
#> make clean