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(1M)
- [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 8317 warning(s).
- [!!] /var/log/mysql.log contains 105 error(s).
- [--] 6 start(s) detected in /var/log/mysql.log
- [--] 1) Dec 4 15:25:38 MySQLServer01-vm mariadbd[32202]: 2020-12-04 15:25:38 0 [Note] /usr/sbin/mariadbd: ready for connections.
- [--] 2) Dec 4 14:42:02 MySQLServer01-vm mariadbd[29571]: 2020-12-04 14:42:02 0 [Note] /usr/sbin/mariadbd: ready for connections.
- [--] 3) Dec 4 14:40:02 MySQLServer01-vm mariadbd[27802]: 2020-12-04 14:40:02 0 [Note] /usr/sbin/mariadbd: ready for connections.
- [--] 4) Dec 4 14:34:16 MySQLServer01-vm mariadbd[25773]: 2020-12-04 14:34:16 0 [Note] /usr/sbin/mariadbd: ready for connections.
- [--] 5) Dec 4 14:29:02 MySQLServer01-vm mariadbd[23759]: 2020-12-04 14:29:02 0 [Note] /usr/sbin/mariadbd: ready for connections.
- [--] 6) Dec 4 14:26:42 MySQLServer01-vm mariadbd[23228]: 2020-12-04 14:26:42 0 [Note] /usr/sbin/mariadbd: ready for connections.
- [--] 6 shutdown(s) detected in /var/log/mysql.log
- [--] 1) Dec 4 15:25:38 MySQLServer01-vm mariadbd[29571]: 2020-12-04 15:25:38 0 [Note] /usr/sbin/mariadbd: Shutdown complete
- [--] 2) Dec 4 14:42:02 MySQLServer01-vm mariadbd[27802]: 2020-12-04 14:42:02 0 [Note] /usr/sbin/mariadbd: Shutdown complete
- [--] 3) Dec 4 14:40:02 MySQLServer01-vm mariadbd[25773]: 2020-12-04 14:40:02 0 [Note] /usr/sbin/mariadbd: Shutdown complete
- [--] 4) Dec 4 14:34:15 MySQLServer01-vm mariadbd[23759]: 2020-12-04 14:34:15 0 [Note] /usr/sbin/mariadbd: Shutdown complete
- [--] 5) Dec 4 14:29:02 MySQLServer01-vm mariadbd[23228]: 2020-12-04 14:29:02 0 [Note] /usr/sbin/mariadbd: Shutdown complete
- [--] 6) 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: 8.0G (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: 3d 0h 14m 4s (1B q [4K qps], 5M conn, TX: 2367G, RX: 403G)
- [--] Reads / Writes: 72% / 28%
- [--] 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: 9.6G (30.60% 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/1B)
- [OK] Highest usage of available connections: 0% (496/100000)
- [OK] Aborted connections: 0.14% (7940/5603502)
- [!!] Query cache may be disabled by default due to mutex contention.
- [!!] Query cache efficiency: 0.0% (0 cached / 801M selects)
- [OK] Query cache prunes per day: 0
- [OK] Sorts requiring temporary tables: 3% (279K temp sorts / 8M sorts)
- [OK] No joins without indexes
- [OK] Temporary tables created on disk: 21% (5M on disk / 26M total)
- [OK] Thread cache hit rate: 99% (707 created / 5M connections)
- [OK] Table cache hit rate: 99% (685 open / 691 opened)
- [OK] table_definition_cache(400) is upper than number of tables(326)
- [OK] Open file limit used: 0% (30/132K)
- [OK] Table locks acquired immediately: 100% (284 immediate / 284 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/8.0G
- [!!] 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.97% (94354320437 hits/ 94382526046 total)
- [!!] InnoDB Write Log efficiency: 471.15% (156413576 hits/ 33198531 total)
- [OK] InnoDB log waits: 0.00% (0 waits / 189612107 writes)
- -------- AriaDB Metrics ----------------------------------------------------------------------------
- [--] AriaDB is enabled.
- [OK] Aria pagecache size / total Aria indexes: 128.0M/336.0K
- [OK] Aria pagecache hit rate: 100.0% (114M cached / 67 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
- Control error 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;
- 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)
- performance_schema = ON enable PFS
- innodb_buffer_pool_size (>= 8.0G) 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