Here is the
mysql tuner results:
>> My
SQLTuner 1.7.15 - Major Hayden >> 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] Currently running supported MySQL version 10.3.17-
MariaDB
[OK] Operating on 64-bit architecture
-------- Log file Recommendations ------------------------------------------------------------------
[--] Log file: /var/lib/mysql/learnsysdb.dedicated.co.za.err(477K)
[OK] Log file /var/lib/mysql/learnsysdb.dedicated.co.za.err exists
[OK] Log file /var/lib/mysql/learnsysdb.dedicated.co.za.err is readable.
[OK] Log file /var/lib/mysql/learnsysdb.dedicated.co.za.err is not empty
[OK] Log file /var/lib/mysql/learnsysdb.dedicated.co.za.err is smaller than 32 Mb
[!!] /var/lib/mysql/learnsysdb.dedicated.co.za.err contains 1313 warning(s).
[!!] /var/lib/mysql/learnsysdb.dedicated.co.za.err contains 396 error(s).
[--] 76 start(s) detected in /var/lib/mysql/learnsysdb.dedicated.co.za.err
[--] 1) 2019-08-08 4:34:52 0 [Note] /usr/sbin/mysqld: ready for connections.
[--] 2) 2019-08-07 22:26:03 0 [Note] /usr/sbin/mysqld: ready for connections.
[--] 3) 2019-08-07 22:25:08 0 [Note] /usr/sbin/mysqld: ready for connections.
[--] 4) 2019-08-07 22:19:34 0 [Note] /usr/sbin/mysqld: ready for connections.
[--] 5) 2019-08-07 20:32:01 0 [Note] /usr/sbin/mysqld: ready for connections.
[--] 6) 2019-08-07 20:19:35 0 [Note] /usr/sbin/mysqld: ready for connections.
[--] 7) 2019-08-07 20:08:49 0 [Note] /usr/sbin/mysqld: ready for connections.
[--] 8) 2019-08-07 20:04:43 0 [Note] /usr/sbin/mysqld: ready for connections.
[--] 9) 2019-08-07 18:02:46 0 [Note] /usr/sbin/mysqld: ready for connections.
[--] 10) 2019-08-07 16:45:05 0 [Note] /usr/sbin/mysqld: ready for connections.
[--] 71 shutdown(s) detected in /var/lib/mysql/learnsysdb.dedicated.co.za.err
[--] 1) 2019-08-08 4:34:49 0 [Note] /usr/sbin/mysqld: Shutdown complete
[--] 2) 2019-08-07 22:26:00 0 [Note] /usr/sbin/mysqld: Shutdown complete
[--] 3) 2019-08-07 22:25:04 0 [Note] /usr/sbin/mysqld: Shutdown complete
[--] 4) 2019-08-07 22:17:29 0 [Note] /usr/sbin/mysqld: Shutdown complete
[--] 5) 2019-08-07 20:31:58 0 [Note] /usr/sbin/mysqld: Shutdown complete
[--] 6) 2019-08-07 20:19:33 0 [Note] /usr/sbin/mysqld: Shutdown complete
[--] 7) 2019-08-07 20:08:46 0 [Note] /usr/sbin/mysqld: Shutdown complete
[--] 8) 2019-08-07 20:04:39 0 [Note] /usr/sbin/mysqld: Shutdown complete
[--] 9) 2019-08-07 18:00:05 0 [Note] /usr/sbin/mysqld: Shutdown complete
[--] 10) 2019-08-07 16:45:02 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: 8.4G (Tables: 764)
[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
[!!] There is no basic password file list!
-------- CVE Security Recommendations --------------------------------------------------------------
[--] Skipped due to --cvefile option undefined
-------- Performance Metrics -----------------------------------------------------------------------
[--] Up for: 3h 23m 55s (772K q [63.165 qps], 539 conn, TX: 4G, RX: 102M)
[--] Reads / Writes: 98% / 2%
[--] Binary logging is disabled
[--] Physical Memory : 11.9G
[--] Max MySQL memory : 15.1G
[--] Other process memory: 0B
[--] Total buffers: 9.1G global + 20.2M per thread (300 max threads)
[--] P_S Max memory usage: 129M
[--] Galera GCache Max memory usage: 0B
[OK] Maximum reached memory usage: 9.5G (79.70% of installed RAM)
[!!] Maximum possible memory usage: 15.1G (127.49% of installed RAM)
[!!] Overall possible memory usage with other process exceeded memory
[OK] Slow queries: 0% (45/772K)
[OK] Highest usage of available connections: 4% (13/300)
[!!] Aborted connections: 6.31% (34/539)
[!!] name resolution is active : a reverse name resolution is made for each new connection and can reduce performance
[!!] Query cache may be disabled by default due to mutex contention.
[!!] Query cache efficiency: 0.0% (0 cached / 730K selects)
[OK] Query cache prunes per day: 0
[OK] Sorts requiring temporary tables: 0% (0 temp sorts / 19K sorts)
[!!] Joins performed without indexes: 19943
[OK] Temporary tables created on disk: 7% (1K on disk / 22K total)
[OK] Thread cache hit rate: 95% (25 created / 539 connections)
[OK] Table cache hit rate: 99% (1K open / 1K opened)
[OK] Open file limit used: 0% (55/63K)
[OK] Table locks acquired immediately: 100% (73 immediate / 73 locks)
-------- Performance schema ------------------------------------------------------------------------
[--] Memory used by P_S: 129.9M
[--] Sys schema isn't installed.
-------- ThreadPool Metrics ------------------------------------------------------------------------
[--] ThreadPool stat is enabled.
[--] Thread Pool Size: 6 thread(s).
[--] Using default value is good enough for your version (10.3.17-MariaDB)
-------- MyISAM Metrics ----------------------------------------------------------------------------
[!!] Key buffer used: 18.3% (24M used / 134M cache)
[OK] Key buffer size / total MyISAM indexes: 128.0M/135.0K
[!!] Read Key buffer hit rate: 59.2% (196 cached / 80 reads)
-------- InnoDB Metrics ----------------------------------------------------------------------------
[--] InnoDB is enabled.
[--] InnoDB Thread Concurrency: 0
[OK] InnoDB File per table is activated
[OK] InnoDB buffer pool / data size: 8.8G/8.4G
[!!] Ratio InnoDB log file size / InnoDB Buffer pool size (17.1428571428571 %): 512.0M * 3/8.8G should be equal to 25%
[!!] InnoDB buffer pool instances: 7
[--] Number of InnoDB Buffer Pool Chunk : 70 for 7 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.98% (1673459983 hits/ 1673725194 total)
[!!] InnoDB Write Log efficiency: 7.4% (1307 hits/ 17660 total)
[OK] InnoDB log waits: 0.00% (0 waits / 16353 writes)
-------- AriaDB Metrics ----------------------------------------------------------------------------
[--] AriaDB is enabled.
[OK] Aria pagecache size / total Aria indexes: 128.0M/1B
[OK] Aria pagecache hit rate: 96.2% (45K cached / 1K 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/learnsysdb.dedicated.co.za.err file
Control error line(s) into /var/lib/mysql/learnsysdb.dedicated.co.za.err file
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.
Reduce or eliminate unclosed connections and network issues
Configure your accounts with ip or subnets only, then update your configuration with skip-name-resolve=1
Adjust your join queries to always utilize indexes
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 ***
query_cache_size (=0)
query_cache_type (=0)
query_cache_limit (> 1M, or use smaller result sets)
join_buffer_size (> 2.0M, or always use indexes with JOINs)
innodb_log_file_size should be (=746M) if possible, so InnoDB total log files size equals to 25% of buffer pool size.
innodb_buffer_pool_instances(=8)