Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >> MySQLTuner 1.7.19 - Major Hayden <[email protected]>
- >> Bug reports, feature requests, and downloads at http://mysqltuner.com/
- >> Run with '--help' for additional options and output filtering
- [--] Skipped version check for MySQLTuner script
- [OK] Logged in using credentials from Debian maintenance account.
- [OK] Currently running supported MySQL version 10.3.17-MariaDB-1:10.3.17+maria~stretch-log
- [OK] Operating on 64-bit architecture
- -------- Log file Recommendations ------------------------------------------------------------------
- [OK] Log file /var/lib/mysql/debian-s-8vcpu-32gb-fra1-01.err exists
- [--] Log file: /var/lib/mysql/debian-s-8vcpu-32gb-fra1-01.err(1M)
- [OK] Log file /var/lib/mysql/debian-s-8vcpu-32gb-fra1-01.err is readable.
- [OK] Log file /var/lib/mysql/debian-s-8vcpu-32gb-fra1-01.err is not empty
- [OK] Log file /var/lib/mysql/debian-s-8vcpu-32gb-fra1-01.err is smaller than 32 Mb
- [!!] /var/lib/mysql/debian-s-8vcpu-32gb-fra1-01.err contains 7272 warning(s).
- [!!] /var/lib/mysql/debian-s-8vcpu-32gb-fra1-01.err contains 7223 error(s).
- [--] 8 start(s) detected in /var/lib/mysql/debian-s-8vcpu-32gb-fra1-01.err
- [--] 1) 2020-01-03 4:58:14 0 [Note] /usr/sbin/mysqld: ready for connections.
- [--] 2) 2020-01-02 8:50:27 0 [Note] /usr/sbin/mysqld: ready for connections.
- [--] 3) 2020-01-02 8:49:41 0 [Note] /usr/sbin/mysqld: ready for connections.
- [--] 4) 2020-01-02 8:20:42 0 [Note] /usr/sbin/mysqld: ready for connections.
- [--] 5) 2020-01-01 14:07:49 0 [Note] /usr/sbin/mysqld: ready for connections.
- [--] 6) 2019-12-18 8:44:55 0 [Note] /usr/sbin/mysqld: ready for connections.
- [--] 7) 2019-12-17 9:44:03 0 [Note] /usr/sbin/mysqld: ready for connections.
- [--] 8) 2019-12-11 11:45:09 0 [Note] /usr/sbin/mysqld: ready for connections.
- [--] 7 shutdown(s) detected in /var/lib/mysql/debian-s-8vcpu-32gb-fra1-01.err
- [--] 1) 2020-01-03 4:57:48 0 [Note] /usr/sbin/mysqld: Shutdown complete
- [--] 2) 2020-01-02 8:49:58 0 [Note] /usr/sbin/mysqld: Shutdown complete
- [--] 3) 2020-01-02 8:49:37 0 [Note] /usr/sbin/mysqld: Shutdown complete
- [--] 4) 2020-01-02 8:20:15 0 [Note] /usr/sbin/mysqld: Shutdown complete
- [--] 5) 2019-12-18 8:44:28 0 [Note] /usr/sbin/mysqld: Shutdown complete
- [--] 6) 2019-12-17 8:43:36 0 [Note] /usr/sbin/mysqld: Shutdown complete
- [--] 7) 2019-12-11 11:39:58 0 [Note] /usr/sbin/mysqld: Shutdown complete
- -------- Storage Engine Statistics -----------------------------------------------------------------
- [--] Status: +Aria +CSV +InnoDB +MEMORY +MRG_MyISAM +MyISAM +PERFORMANCE_SCHEMA +SEQUENCE
- [--] Data in InnoDB tables: 1.8G (Tables: 12)
- [--] Data in MyISAM tables: 6.9G (Tables: 462)
- [--] Data in MEMORY tables: 53.5M (Tables: 18)
- [OK] Total fragmented tables: 0
- -------- Analysis Performance Metrics --------------------------------------------------------------
- [--] innodb_stats_on_metadata: OFF
- [OK] No stat updates during querying INFORMATION_SCHEMA.
- -------- Security Recommendations ------------------------------------------------------------------
- [OK] There are no anonymous accounts for any database users
- [OK] All database users have passwords assigned
- [!!] User 'cron@%' does not specify hostname restrictions.
- [!!] There is no basic password file list!
- -------- CVE Security Recommendations --------------------------------------------------------------
- [--] Skipped due to --cvefile option undefined
- -------- Performance Metrics -----------------------------------------------------------------------
- [--] Up for: 9h 34m 30s (54M q [1K qps], 4M conn, TX: 12G, RX: 7G)
- [--] Reads / Writes: 94% / 6%
- [--] Binary logging is enabled (GTID MODE: OFF)
- [--] Physical Memory : 31.4G
- [--] Max MySQL memory : 72.0G
- [--] Other process memory: 0B
- [--] Total buffers: 4.2G global + 34.3M per thread (2000 max threads)
- [--] P_S Max memory usage: 865M
- [--] Galera GCache Max memory usage: 0B
- [OK] Maximum reached memory usage: 12.1G (38.61% of installed RAM)
- [!!] Maximum possible memory usage: 72.0G (229.01% of installed RAM)
- [!!] Overall possible memory usage with other process exceeded memory
- [OK] Slow queries: 0% (1K/54M)
- [OK] Highest usage of available connections: 10% (213/2000)
- [OK] Aborted connections: 0.00% (0/4725626)
- [OK] Query cache is disabled by default due to mutex contention on multiprocessor machines.
- [OK] Sorts requiring temporary tables: 0% (124 temp sorts / 2M sorts)
- [!!] Joins performed without indexes: 486
- [OK] Temporary tables created on disk: 0% (285 on disk / 1M total)
- [OK] Thread cache hit rate: 99% (1K created / 4M connections)
- [!!] Table cache hit rate: 12% (494 open / 4K opened)
- [OK] table_definition_cache(2048) is upper than number of tables(651)
- [OK] Open file limit used: 1% (398/24K)
- [OK] Table locks acquired immediately: 99% (46M immediate / 46M locks)
- [OK] Binlog cache memory access: 100.00% (316956 Memory / 316956 Total)
- -------- Performance schema ------------------------------------------------------------------------
- [--] Memory used by P_S: 865.9M
- [--] Sys schema isn't installed.
- -------- ThreadPool Metrics ------------------------------------------------------------------------
- [--] ThreadPool stat is enabled.
- [--] Thread Pool Size: 8 thread(s).
- [--] Using default value is good enough for your version (10.3.17-MariaDB-1:10.3.17+maria~stretch-log)
- -------- MyISAM Metrics ----------------------------------------------------------------------------
- [!!] Key buffer used: 20.0% (429M used / 2B cache)
- [OK] Key buffer size / total MyISAM indexes: 2.0G/2.1G
- [OK] Read Key buffer hit rate: 99.9% (313M cached / 197K reads)
- [!!] Write Key buffer hit rate: 93.8% (1M cached / 1M writes)
- -------- InnoDB Metrics ----------------------------------------------------------------------------
- [--] InnoDB is enabled.
- [--] InnoDB Thread Concurrency: 0
- [OK] InnoDB File per table is activated
- [OK] InnoDB buffer pool / data size: 2.0G/1.8G
- [!!] Ratio InnoDB log file size / InnoDB Buffer pool size (1.953125 %): 20.0M * 2/2.0G should be equal to 25%
- [!!] InnoDB buffer pool instances: 8
- [--] Number of InnoDB Buffer Pool Chunk : 16 for 8 Buffer Pool Instance(s)
- [OK] Innodb_buffer_pool_size aligned with Innodb_buffer_pool_chunk_size & Innodb_buffer_pool_instances
- [OK] InnoDB Read buffer efficiency: 100.00% (32120020459 hits/ 32120129823 total)
- [!!] InnoDB Write Log efficiency: 66.45% (610051 hits/ 918022 total)
- [OK] InnoDB log waits: 0.00% (0 waits / 307971 writes)
- -------- AriaDB Metrics ----------------------------------------------------------------------------
- [--] AriaDB is enabled.
- [OK] Aria pagecache size / total Aria indexes: 128.0M/1B
- [OK] Aria pagecache hit rate: 100.0% (40M cached / 285 reads)
- -------- TokuDB Metrics ----------------------------------------------------------------------------
- [--] TokuDB is disabled.
- -------- XtraDB Metrics ----------------------------------------------------------------------------
- [--] XtraDB is disabled.
- -------- Galera Metrics ----------------------------------------------------------------------------
- [--] Galera is disabled.
- -------- Replication Metrics -----------------------------------------------------------------------
- [--] Galera Synchronous replication: NO
- [--] No replication slave(s) for this server.
- [--] Binlog format: MIXED
- [--] XA support enabled: ON
- [--] Semi synchronous replication Master: OFF
- [--] Semi synchronous replication Slave: OFF
- [--] This is a standalone server
- -------- Recommendations ---------------------------------------------------------------------------
- General recommendations:
- Control warning line(s) into /var/lib/mysql/debian-s-8vcpu-32gb-fra1-01.err file
- Control error line(s) into /var/lib/mysql/debian-s-8vcpu-32gb-fra1-01.err file
- Restrict Host for 'cron'@% to cron@SpecificDNSorIp
- UPDATE mysql.user SET host ='SpecificDNSorIp' WHERE user='cron' AND host ='%'; FLUSH PRIVILEGES;
- MySQL was started within the last 24 hours - recommendations may be inaccurate
- Reduce your overall MySQL memory footprint for system stability
- Dedicate this server to your database for highest performance.
- We will suggest raising the 'join_buffer_size' until JOINs not using indexes are found.
- See https://dev.mysql.com/doc/internals/en/join-buffer-size.html
- (specially the conclusions at the bottom of the page).
- Increase table_open_cache gradually to avoid file descriptor limits
- Read this before increasing table_open_cache over 64: https://bit.ly/1mi7c4C
- Read this before increasing for MariaDB https://mariadb.com/kb/en/library/optimizing-table_open_cache/
- This is MyISAM only table_cache scalability problem, InnoDB not affected.
- See more details here: https://bugs.mysql.com/bug.php?id=49177
- This bug already fixed in MySQL 5.7.9 and newer MySQL versions.
- Beware that open_files_limit (24576) variable
- should be greater than table_open_cache (512)
- Consider installing Sys schema from https://github.com/mysql/mysql-sys for MySQL
- Consider installing Sys schema from https://github.com/good-dba/mariadb-sys for MariaDB
- Before changing innodb_log_file_size and/or innodb_log_files_in_group read this: https://bit.ly/2TcGgtU
- Variables to adjust:
- *** MySQL's maximum memory usage is dangerously high ***
- *** Add RAM before increasing MySQL buffer variables ***
- join_buffer_size (> 20.0M, or always use indexes with JOINs)
- table_open_cache (> 512)
- innodb_log_file_size should be (=256M) if possible, so InnoDB total log files size equals to 25% of buffer pool size.
- innodb_buffer_pool_instances(=2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement