Skip to content

Commit 836fab6

Browse files
committed
2 parents 062b50f + 791633c commit 836fab6

File tree

11 files changed

+3329
-658
lines changed

11 files changed

+3329
-658
lines changed

.travis.yml

Lines changed: 37 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,47 @@ sudo: false
22

33
language: perl
44
perl:
5-
- "blead"
6-
- "5.20"
7-
- "5.18"
8-
- "5.16"
9-
- "5.14"
10-
- "5.12"
11-
- "5.10"
12-
- "5.8"
5+
- "5.24"
6+
- "5.22"
7+
- "5.20"
8+
- "5.18"
9+
- "5.16"
10+
- "5.14"
11+
- "5.12"
12+
- "5.10"
13+
- "5.8"
1314

1415
matrix:
15-
include:
16-
- addons:
17-
mariadb: "5.5"
18-
perl: "5.20"
19-
- addons:
20-
mariadb: "10.0"
21-
perl: "5.20"
22-
# - addons:
23-
# mariadb: "10.1"
24-
# perl: "5.20"
16+
include:
17+
- addons:
18+
mariadb: "5.5"
19+
perl: "5.20"
20+
- addons:
21+
mariadb: "10.0"
22+
perl: "5.20"
23+
- addons:
24+
mariadb: "10.1"
25+
perl: "5.20"
26+
- addons:
27+
mariadb: "10.2"
28+
perl: "5.20"
2529

2630
before_install:
27-
- git clone git://github.com/haarg/perl-travis-helper
28-
- source perl-travis-helper/init
29-
- build-perl
30-
- perl -V
31+
- git clone git://github.com/haarg/perl-travis-helper
32+
- source perl-travis-helper/init
33+
- build-perl
34+
- perl -V
3135

3236
install:
33-
- cpanm --quiet --notest Data::Dumper
34-
- cpanm --quiet --notest Text::Template
35-
- cpanm --quiet --notest JSON
36-
37+
- cpanm --quiet --notest Data::Dumper
38+
- cpanm --quiet --notest JSON
39+
- cpanm --quiet --notest Perl::Critic
40+
- cpanm --quiet --notest Text::Template
41+
42+
before_script:
43+
- echo -e "[client]\nuser=root\npassword=\"\"" > .my.cnf
44+
- chmod 600 .my.cnf
45+
3746
script:
38-
- echo -e "[client]\nuser=root\npassword=\"\"" > .my.cnf
39-
- chmod 600 .my.cnf
40-
- ./mysqltuner.pl --idxstat --dbstat
47+
- perlcritic mysqltuner.pl
48+
- ./mysqltuner.pl --idxstat --dbstat

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ Copy of the license is available at [LICENSE](https://github.com/major/MySQLTune
182182
<a name="code-conventions"></a>
183183
#### MySQLTuner Code Conventions
184184

185-
1. Check code convention using **perltidy**
185+
1. Check code convention using **perltidy** and **perlcritic**
186186
2. Don't manually update the version number in `mysqltuner.pl`.
187187

188188

INTERNALS.md

Lines changed: 125 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,18 @@
1717
* [Global buffer information](#mysqltuner-global-buffer-information)
1818
* [Query cache checks](#mysqltuner-query-cache-checks)
1919
* [Slow queries checks](#mysqltuner-slow-queries-checks)
20+
* [ThreadPool information](#mysqltuner-threadpool-information)
2021
* [Replication checks](#mysqltuner-replication-checks)
2122
* [InnoDB information](#mysqltuner-innodb-information)
22-
* [ARIADB information](#mysqltuner-ariadb-information)
2323
* [MYISAM information](#mysqltuner-myisam-information)
24-
* [GALERA information](#mysqltuner-galera-information)
24+
* [ARIADB information](#mysqltuner-ariadb-information)
25+
* [XTRADB information](#mysqltuner-xtradb-information)
2526
* [TOKUDB information](#mysqltuner-tokudb-information)
26-
* [ThreadPool information](#mysqltuner-threadpool-information)
27+
* [ROCKDB information](#mysqltuner-rockdb-information)
28+
* [CONNECT information](#mysqltuner-connect-information)
29+
* [SPIDER information](#mysqltuner-spider-information)
30+
* [GALERA information](#mysqltuner-galera-information)
31+
* [Performance Schema information](#mysqltuner-performance-schema-and-sysschema-information)
2732

2833
## MySQLTuner steps
2934

@@ -150,6 +155,7 @@
150155
* Number of join performed without using indexes (<250)
151156
* Percentage of temporary table written on disk(<25%)
152157
* Thread cache (=4)
158+
* Thread cache hit ratio (>50%) if thread_handling is different of pools-of-threads
153159
* Table cache hit ratio(>2°%)
154160
* Percentage of open file and open file limit(<85%)
155161
* Percentage of table locks (<95%)
@@ -211,6 +217,8 @@
211217
* Ratio of write without locks
212218
* InnoDB Log Waits
213219
* Checks that no lock is used on Innodb Log.
220+
* InnoDB Chunk Size
221+
* Check InnoDB Buffer Pool size is a multiple of InnoDB Buffer Pool chunk size * InnoDB Buffer Pool instances
214222

215223
## MySQLTuner ARIADB information
216224

@@ -262,7 +270,121 @@
262270
* tokudb_cleaner_iterations
263271
* tokudb_fanout
264272

273+
## MySQLTuner XtraDB information
274+
275+
* Nothing for the moment
276+
277+
## MySQLTuner Connect information
278+
279+
* Nothing for the moment
280+
281+
## MySQLTuner Spider information
282+
283+
* Nothing for the moment
284+
285+
## MySQLTuner RocksDb information
286+
287+
* Nothing for the moment
288+
265289
## MySQLTuner Thread pool information
266290

267291
* thread_pool_size between 16 to 36 for Innodb usage
268292
* thread_pool_size between 4 to 8 for MyIsam usage
293+
294+
## MySQLTuner performance schema and sysschema information
295+
296+
* sys Schema version
297+
* Top user per connection
298+
* Top user per statement
299+
* Top user per statement latency
300+
* Top user per lock latency
301+
* Top user per full scans
302+
* Top user per row_sent
303+
* Top user per row modified
304+
* Top user per io
305+
* Top user per io latency
306+
* Top host per connection
307+
* Top host per statement
308+
* Top host per statement latency
309+
* Top host per lock latency
310+
* Top host per full scans
311+
* Top host per rows sent
312+
* Top host per rows modified
313+
* Top host per io
314+
* Top 5 host per io latency
315+
* Top IO type order by total io
316+
* Top IO type order by total latency
317+
* Top IO type order by max latency
318+
* Top Stages order by total io
319+
* Top Stages order by total latency
320+
* Top Stages order by avg latency
321+
* Top host per table scans
322+
* InnoDB Buffer Pool by schema
323+
* InnoDB Buffer Pool by table
324+
* Process per allocated memory
325+
* InnoDB Lock Waits
326+
* Threads IO Latency
327+
* High Cost SQL statements
328+
* Top 5% slower queries
329+
* Top 10 nb statement type
330+
* Top statement by total latency
331+
* Top statement by lock latency
332+
* Top statement by full scans
333+
* Top statement by rows sent
334+
* Top statement by rows modified
335+
* Use temporary tables
336+
* Unused Indexes
337+
* Full table scans
338+
* Latest file IO by latency
339+
* File by IO read bytes
340+
* File by IO written bytes
341+
* File per IO total latency
342+
* File per IO read latency
343+
* File per IO write latency
344+
* Event Wait by read bytes
345+
* Event Wait by write bytes
346+
* Event per wait total latency
347+
* Event per wait read latency
348+
* Event per wait write latency
349+
* TOP 15 most read indexes
350+
* TOP 15 most modified indexes
351+
* TOP 15 high select latency index
352+
* TOP 15 high insert latency index
353+
* TOP 15 high update latency index
354+
* TOP 15 high delete latency index
355+
* TOP 15 most read tables
356+
* TOP 15 most modified tables
357+
* TOP 15 high select latency tables
358+
* TOP 15 high insert latency tables
359+
* TOP 15 high update latency tables
360+
* TOP 15 high delete latency tables
361+
* Redundant indexes
362+
* Tables not using InnoDb buffer
363+
* Top 15 Tables using InnoDb buffer
364+
* Top 15 Tables with InnoDb buffer free
365+
* Top 15 Most executed queries
366+
* Latest SQL queries in errors or warnings
367+
* Top 20 queries with full table scans
368+
* TOP 15 reader queries (95% percentile)
369+
* TOP 15 row look queries (95% percentile)
370+
* TOP 15 total latency queries (95% percentile)
371+
* TOP 15 max latency queries (95% percentile)
372+
* TOP 15 average latency queries (95% percentile)
373+
* Top 20 queries with sort
374+
* Last 50 queries with sort
375+
* TOP 15 row sorting queries with sort
376+
* TOP 15 total latency queries with sort
377+
* TOP 15 merge queries with sort
378+
* TOP 15 average sort merges queries with sort
379+
* TOP 15 scans queries with sort
380+
* TOP 15 range queries with sort
381+
* Top 20 queries with temp table
382+
* Last 50 queries with temp table
383+
* TOP 15 total latency queries with temp table
384+
* TOP 15 queries with temp table to disk
385+
* TOP 15 class events by number
386+
* TOP 30 events by number
387+
* TOP 15 class events by total latency
388+
* TOP 30 events by total latency
389+
* TOP 15 class events by max latency
390+
* TOP 30 events by max latency

0 commit comments

Comments
 (0)