MySQLTuner 1.7.19 - Major Hayden major@mhtx.net
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
[OK] Logged in using credentials from Debian maintenance account.
[OK] Currently running supported MySQL version 10.3.25-MariaDB-1:10.3.25+mariafocal-log
[OK] Operating on 64-bit architecture
-------- Log file Recommendations ------------------------------------------------------------------
[!!] Log file doesn't exist
-------- Storage Engine Statistics -----------------------------------------------------------------
[--] Status: +Aria +CSV +InnoDB +MEMORY +MRG_MyISAM +MyISAM +PERFORMANCE_SCHEMA +SEQUENCE
[--] Data in InnoDB tables: 2.0M (Tables: 8)
[--] Data in MyISAM tables: 284.6M (Tables: 76)
[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 'netdata@127.0.0.1' has no password set.
[!!] There is no basic password file list!
-------- CVE Security Recommendations --------------------------------------------------------------
[--] Skipped due to --cvefile option undefined
-------- Performance Metrics -----------------------------------------------------------------------
[--] Up for: 1d 17h 54m 2s (11M q [76.316 qps], 52K conn, TX: 50G, RX: 3G)
[--] Reads / Writes: 97% / 3%
[--] Binary logging is disabled
[--] Physical Memory : 3.8G
[--] Max MySQL memory : 9.6G
[--] Other process memory: 0B
[--] Total buffers: 2.7G global + 71.5M per thread (100 max threads)
[--] P_S Max memory usage: 0B
[--] Galera GCache Max memory usage: 0B
[!!] Maximum reached memory usage: 5.2G (136.52% of installed RAM)
[!!] Maximum possible memory usage: 9.6G (251.01% of installed RAM)
[!!] Overall possible memory usage with other process exceeded memory
[OK] Slow queries: 0% (153/11M)
[OK] Highest usage of available connections: 37% (37/100)
[OK] Aborted connections: 0.04% (19/52808)
[!!] name resolution is active : a reverse name resolution is made for each new connection and can reduce >performance
[OK] Query cache is disabled by default due to mutex contention on multiprocessor machines.
[OK] Sorts requiring temporary tables: 0% (0 temp sorts / 4M sorts)
[OK] No joins without indexes
[!!] Temporary tables created on disk: 71% (1M on disk / 2M total)
[OK] Thread cache hit rate: 99% (61 created / 52K connections)
[OK] Table cache hit rate: 98% (432 open / 438 opened)
[OK] table_definition_cache(400) is upper than number of tables(243)
[OK] Open file limit used: 0% (471/500K)
[OK] Table locks acquired immediately: 99% (15M immediate / 15M 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: 2 thread(s).
[--] Using default value is good enough for your version (10.3.25-MariaDB-1:10.3.25+mariafocal-log)
-------- MyISAM Metrics ----------------------------------------------------------------------------
[!!] Key buffer used: 29.6% (39M used / 134M cache)
[OK] Key buffer size / total MyISAM indexes: 128.0M/69.7M
[OK] Read Key buffer hit rate: 100.0% (2B cached / 14K reads)
[!!] Write Key buffer hit rate: 85.2% (385K cached / 328K 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/2.0M
[!!] Ratio InnoDB log file size / InnoDB Buffer pool size (14.35546875 %): 147.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: 99.97% (1325690 hits/ 1326121 total)
[!!] InnoDB Write Log efficiency: 37.14% (325 hits/ 875 total)
[OK] InnoDB log waits: 0.00% (0 waits / 1200 writes)
-------- AriaDB Metrics ----------------------------------------------------------------------------
[--] AriaDB is enabled.
[OK] Aria pagecache size / total Aria indexes: 128.0M/1B
[OK] Aria pagecache hit rate: 98.5% (83M cached / 1M 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: ROW
[--] XA support enabled: ON
[--] Semi synchronous replication Master: OFF
[--] Semi synchronous replication Slave: OFF
[--] This is a standalone server
-------- Recommendations ---------------------------------------------------------------------------
General recommendations:
Set up a Secure Password for netdata@127.0.0.1 user: SET PASSWORD FOR 'netdata'@'SpecificDNSorIp' = >PASSWORD('secure_password');
Reduce your overall MySQL memory footprint for system stability
Dedicate this server to your database for highest performance.
>Configure your accounts with ip or subnets only, then update your configuration with skip-name-resolve=1
>When making adjustments, make tmp_table_size/max_heap_table_size equal
>Reduce your SELECT DISTINCT queries which have no LIMIT clause
>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 ***
>tmp_table_size (> 128M)
max_heap_table_size (> 128M)
performance_schema = ON enable PFS
>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)