Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >> MySQLTuner 1.7.20 - Major Hayden <[email protected]>
- >> Bug reports, feature requests, and downloads at http://mysqltuner.pl/
- >> Run with '--help' for additional options and output filtering
- [--] Skipped version check for MySQLTuner script
- [!!] Successfully authenticated with no password - SECURITY RISK!
- [!!] Your MySQL version 10.5.8-MariaDB is EOL software! Upgrade soon!
- [OK] Operating on 64-bit architecture
- -------- Log file Recommendations ------------------------------------------------------------------
- [OK] Log file /var/log/mysql.log exists
- [--] Log file: /var/log/mysql.log(13K)
- [OK] Log file /var/log/mysql.log is readable.
- [OK] Log file /var/log/mysql.log is not empty
- [OK] Log file /var/log/mysql.log is smaller than 32 Mb
- [!!] /var/log/mysql.log contains 5 warning(s).
- [OK] /var/log/mysql.log doesn't contain any error.
- [--] 3 start(s) detected in /var/log/mysql.log
- [--] 1) Dec 4 14:34:16 MySQLServer01-vm mariadbd[25773]: 2020-12-04 14:34:16 0 [Note] /usr/sbin/mariadbd: ready for connections.
- [--] 2) Dec 4 14:29:02 MySQLServer01-vm mariadbd[23759]: 2020-12-04 14:29:02 0 [Note] /usr/sbin/mariadbd: ready for connections.
- [--] 3) Dec 4 14:26:42 MySQLServer01-vm mariadbd[23228]: 2020-12-04 14:26:42 0 [Note] /usr/sbin/mariadbd: ready for connections.
- [--] 3 shutdown(s) detected in /var/log/mysql.log
- [--] 1) Dec 4 14:34:15 MySQLServer01-vm mariadbd[23759]: 2020-12-04 14:34:15 0 [Note] /usr/sbin/mariadbd: Shutdown complete
- [--] 2) Dec 4 14:29:02 MySQLServer01-vm mariadbd[23228]: 2020-12-04 14:29:02 0 [Note] /usr/sbin/mariadbd: Shutdown complete
- [--] 3) Dec 4 14:26:41 MySQLServer01-vm mariadbd[22841]: 2020-12-04 14:26:41 0 [Note] /usr/sbin/mariadbd: Shutdown complete
- -------- Storage Engine Statistics -----------------------------------------------------------------
- [--] Status: +Aria +CSV +InnoDB +MEMORY +MRG_MyISAM +MyISAM +PERFORMANCE_SCHEMA +SEQUENCE
- [--] Data in InnoDB tables: 6.9G (Tables: 135)
- [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
- [!!] User 'mariadb.sys@localhost' has no password set.
- [!!] User 'librenms@%' does not specify hostname restrictions.
- [--] There are 620 basic passwords in the list.
- -------- CVE Security Recommendations --------------------------------------------------------------
- [OK] NO SECURITY CVE FOUND FOR YOUR VERSION
- -------- Performance Metrics -----------------------------------------------------------------------
- [--] Up for: 11s (42K q [3K qps], 363 conn, TX: 92M, RX: 13M)
- [--] Reads / Writes: 68% / 32%
- [--] Binary logging is disabled
- [--] Physical Memory : 31.3G
- [--] Max MySQL memory : 1847.1G
- [--] Other process memory: 0B
- [--] Total buffers: 417.0M global + 18.9M per thread (100000 max threads)
- [--] P_S Max memory usage: 0B
- [--] Galera GCache Max memory usage: 0B
- [OK] Maximum reached memory usage: 3.7G (11.88% of installed RAM)
- [!!] Maximum possible memory usage: 1847.1G (5908.57% of installed RAM)
- [!!] Overall possible memory usage with other process exceeded memory
- [OK] Slow queries: 0% (0/42K)
- [OK] Highest usage of available connections: 0% (179/100000)
- [OK] Aborted connections: 0.00% (0/363)
- [!!] Query cache may be disabled by default due to mutex contention.
- [!!] Query cache efficiency: 0.0% (0 cached / 27K selects)
- [OK] Query cache prunes per day: 0
- [OK] Sorts requiring temporary tables: 4% (12 temp sorts / 295 sorts)
- [OK] No joins without indexes
- [OK] Temporary tables created on disk: 21% (184 on disk / 866 total)
- [!!] Thread cache hit rate: 50% (179 created / 363 connections)
- [OK] Table cache hit rate: 95% (139 open / 145 opened)
- [OK] table_definition_cache(400) is upper than number of tables(326)
- [OK] Open file limit used: 0% (28/132K)
- [OK] Table locks acquired immediately: 100% (149 immediate / 149 locks)
- -------- Performance schema ------------------------------------------------------------------------
- [--] Performance schema is disabled.
- [--] Memory used by P_S: 0B
- [--] 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.5.8-MariaDB)
- -------- MyISAM Metrics ----------------------------------------------------------------------------
- [!!] Key buffer used: 18.2% (24M used / 134M cache)
- [!!] Cannot calculate MyISAM index size - re-run script as root user
- -------- InnoDB Metrics ----------------------------------------------------------------------------
- [--] InnoDB is enabled.
- [--] InnoDB Thread Concurrency: 0
- [OK] InnoDB File per table is activated
- [!!] InnoDB buffer pool / data size: 128.0M/6.9G
- [!!] Ratio InnoDB log file size / InnoDB Buffer pool size (75 %): 96.0M * 1/128.0M should be equal to 25%
- [--] Number of InnoDB Buffer Pool Chunk : 1 for 1 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: 99.85% (3039785 hits/ 3044272 total)
- [!!] InnoDB Write Log efficiency: 312.24% (5536 hits/ 1773 total)
- [OK] InnoDB log waits: 0.00% (0 waits / 7309 writes)
- -------- AriaDB Metrics ----------------------------------------------------------------------------
- [--] AriaDB is enabled.
- [OK] Aria pagecache size / total Aria indexes: 128.0M/336.0K
- [OK] Aria pagecache hit rate: 99.6% (3K cached / 13 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/log/mysql.log file
- Set up a Secure Password for mariadb.sys@localhost user: SET PASSWORD FOR 'mariadb.sys'@'SpecificDNSorIp' = PASSWORD('secure_password');
- Restrict Host for 'librenms'@% to librenms@SpecificDNSorIp
- UPDATE mysql.user SET host ='SpecificDNSorIp' WHERE user='librenms' 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.
- Performance schema should be activated for better diagnostics
- Consider installing Sys schema from https://github.com/mysql/mysql-sys for MySQL
- Consider installing Sys schema from https://github.com/FromDual/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 ***
- query_cache_size (=0)
- query_cache_type (=0)
- query_cache_limit (> 1M, or use smaller result sets)
- thread_cache_size (> 256)
- performance_schema = ON enable PFS
- innodb_buffer_pool_size (>= 6.9G) if possible.
- innodb_log_file_size should be (=32M) if possible, so InnoDB total log files size equals to 25% of buffer pool size.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement