[root@Filter ~]# perl mysqltuner.pl
 >>  MySQLTuner 1.7.13 - Major Hayden <major@mhtx.net>
 >>  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.1.30-MariaDB
[OK] Operating on 64-bit architecture

-------- Log file Recommendations ----------------------------------------------                                                                                                            --------------------
[--] Log file: /var/lib/mysql/Filter.globalvision.net.err(0B)
[OK] Log file /var/lib/mysql/Filter.globalvision.net.err exists
[OK] Log file /var/lib/mysql/Filter.globalvision.net.err is readable.
[!!] Log file /var/lib/mysql/Filter.globalvision.net.err is empty
[OK] Log file /var/lib/mysql/Filter.globalvision.net.err is smaller than 32 Mb
[OK] /var/lib/mysql/Filter.globalvision.net.err doesn't contain any warning.
[OK] /var/lib/mysql/Filter.globalvision.net.err doesn't contain any error.
[--] 0 start(s) detected in /var/lib/mysql/Filter.globalvision.net.err
[--] 0 shutdown(s) detected in /var/lib/mysql/Filter.globalvision.net.err

-------- Storage Engine Statistics ---------------------------------------------                                                                                                            --------------------
[--] Status: +Aria +CSV +InnoDB +MEMORY +MRG_MyISAM +MyISAM +PERFORMANCE_SCHEMA                                                                                                             +SEQUENCE
[--] Data in MyISAM tables: 69.2M (Tables: 14)
[--] Data in InnoDB tables: 12.4G (Tables: 21)
[!!] Total fragmented tables: 2

-------- 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: 13d 17h 41m 13s (28M q [23.609 qps], 338K conn, TX: 225G, RX: 6G)
[--] Reads / Writes: 43% / 57%
[--] Binary logging is disabled
[--] Physical Memory     : 15.6G
[--] Max MySQL memory    : 1.7G
[--] Other process memory: 3.0G
[--] Total buffers: 1.2G global + 3.2M per thread (151 max threads)
[--] P_S Max memory usage: 0B
[--] Galera GCache Max memory usage: 0B
[OK] Maximum reached memory usage: 1.7G (10.89% of installed RAM)
[OK] Maximum possible memory usage: 1.7G (10.87% of installed RAM)
[OK] Overall possible memory usage with other process is compatible with memory available
[OK] Slow queries: 0% (110K/28M)
[!!] Highest connection usage: 100%  (152/151)
[!!] Aborted connections: 3.06%  (10354/338367)
[!!] Query cache may be disabled by default due to mutex contention.
[!!] Query cache efficiency: 0.0% (0 cached / 11M selects)
[OK] Query cache prunes per day: 0
[OK] Sorts requiring temporary tables: 0% (0 temp sorts / 731 sorts)
[!!] Joins performed without indexes: 11319
[!!] Temporary tables created on disk: 62% (4K on disk / 6K total)
[!!] Thread cache is disabled
[OK] Table cache hit rate: 67% (347 open / 511 opened)
[OK] Open file limit used: 3% (134/4K)
[OK] Table locks acquired immediately: 99% (26M immediate / 26M 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.1.30-MariaDB)

-------- MyISAM Metrics ----------------------------------------------------------------------------
[!!] Key buffer used: 64.6% (32M used / 50M cache)
[OK] Key buffer size / total MyISAM indexes: 48.0M/35.6M
[OK] Read Key buffer hit rate: 99.9% (63M cached / 64K reads)
[!!] Write Key buffer hit rate: 7.2% (11M cached / 804K writes)

-------- InnoDB Metrics ----------------------------------------------------------------------------
[--] InnoDB is enabled.
[--] InnoDB Thread Concurrency: 0
[OK] InnoDB File per table is activated
[!!] InnoDB buffer pool / data size: 1.0G/12.4G
[OK] Ratio InnoDB log file size / InnoDB Buffer pool size: 125.0M * 2/1.0G should be equal 25%
[OK] InnoDB buffer pool instances: 1
[--] InnoDB Buffer Pool Chunk Size not used or defined in your version
[OK] InnoDB Read buffer efficiency: 99.99% (1018183924994 hits/ 1018245602815 total)
[!!] InnoDB Write Log efficiency: 82.15% (70527970 hits/ 85850448 total)
[OK] InnoDB log waits: 0.00% (0 waits / 15322478 writes)

-------- AriaDB Metrics ----------------------------------------------------------------------------
[--] AriaDB is enabled.
[OK] Aria pagecache size / total Aria indexes: 128.0M/1B
[OK] Aria pagecache hit rate: 99.8% (2M cached / 4K 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: STATEMENT
[--] XA support enabled: ON
[--] Semi synchronous replication Master: Not Activated
[--] Semi synchronous replication Slave: Not Activated
[--] This is a standalone server

-------- Recommendations ---------------------------------------------------------------------------
General recommendations:
    Run OPTIMIZE TABLE to defragment tables for better performance
      OPTIMIZE TABLE `mailscanner`.`maillog`; -- can free 5961 MB
      OPTIMIZE TABLE `sa_bayes`.`bayes_seen`; -- can free 7609 MB
    Total freed space after theses OPTIMIZE TABLE : 13570 Mb
    Reduce or eliminate persistent connections to reduce connection usage
    Reduce or eliminate unclosed connections and network issues
    Adjust your join queries to always utilize indexes
    When making adjustments, make tmp_table_size/max_heap_table_size equal
    Reduce your SELECT DISTINCT queries which have no LIMIT clause
    Set thread_cache_size to 4 as a starting value
    Performance schema should be activated for better diagnostics
    Consider installing Sys schema from https://github.com/mysql/mysql-sys
Variables to adjust:
    max_connections (> 151)
    wait_timeout (< 28800)
    interactive_timeout (< 28800)
    query_cache_size (=0)
    query_cache_type (=0)
    query_cache_limit (> 1M, or use smaller result sets)
    join_buffer_size (> 512.0K, or always use indexes with JOINs)
    tmp_table_size (> 16M)
    max_heap_table_size (> 16M)
    thread_cache_size (start at 4)
    performance_schema = ON enable PFS
    innodb_buffer_pool_size (>= 12.4G) if possible.