Advertisement
Guest User

Untitled

a guest
Dec 4th, 2020
1,529
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.98 KB | None | 0 0
  1. >> MySQLTuner 1.7.20 - Major Hayden <[email protected]>
  2. >> Bug reports, feature requests, and downloads at http://mysqltuner.pl/
  3. >> Run with '--help' for additional options and output filtering
  4.  
  5. [--] Skipped version check for MySQLTuner script
  6. [!!] Successfully authenticated with no password - SECURITY RISK!
  7. [!!] Your MySQL version 10.5.8-MariaDB is EOL software! Upgrade soon!
  8. [OK] Operating on 64-bit architecture
  9.  
  10. -------- Log file Recommendations ------------------------------------------------------------------
  11. [OK] Log file /var/log/mysql.log exists
  12. [--] Log file: /var/log/mysql.log(13K)
  13. [OK] Log file /var/log/mysql.log is readable.
  14. [OK] Log file /var/log/mysql.log is not empty
  15. [OK] Log file /var/log/mysql.log is smaller than 32 Mb
  16. [!!] /var/log/mysql.log contains 5 warning(s).
  17. [OK] /var/log/mysql.log doesn't contain any error.
  18. [--] 3 start(s) detected in /var/log/mysql.log
  19. [--] 1) Dec 4 14:34:16 MySQLServer01-vm mariadbd[25773]: 2020-12-04 14:34:16 0 [Note] /usr/sbin/mariadbd: ready for connections.
  20. [--] 2) Dec 4 14:29:02 MySQLServer01-vm mariadbd[23759]: 2020-12-04 14:29:02 0 [Note] /usr/sbin/mariadbd: ready for connections.
  21. [--] 3) Dec 4 14:26:42 MySQLServer01-vm mariadbd[23228]: 2020-12-04 14:26:42 0 [Note] /usr/sbin/mariadbd: ready for connections.
  22. [--] 3 shutdown(s) detected in /var/log/mysql.log
  23. [--] 1) Dec 4 14:34:15 MySQLServer01-vm mariadbd[23759]: 2020-12-04 14:34:15 0 [Note] /usr/sbin/mariadbd: Shutdown complete
  24. [--] 2) Dec 4 14:29:02 MySQLServer01-vm mariadbd[23228]: 2020-12-04 14:29:02 0 [Note] /usr/sbin/mariadbd: Shutdown complete
  25. [--] 3) Dec 4 14:26:41 MySQLServer01-vm mariadbd[22841]: 2020-12-04 14:26:41 0 [Note] /usr/sbin/mariadbd: Shutdown complete
  26.  
  27. -------- Storage Engine Statistics -----------------------------------------------------------------
  28. [--] Status: +Aria +CSV +InnoDB +MEMORY +MRG_MyISAM +MyISAM +PERFORMANCE_SCHEMA +SEQUENCE
  29. [--] Data in InnoDB tables: 6.9G (Tables: 135)
  30. [OK] Total fragmented tables: 0
  31.  
  32. -------- Analysis Performance Metrics --------------------------------------------------------------
  33. [--] innodb_stats_on_metadata: OFF
  34. [OK] No stat updates during querying INFORMATION_SCHEMA.
  35.  
  36. -------- Security Recommendations ------------------------------------------------------------------
  37. [OK] There are no anonymous accounts for any database users
  38. [!!] User 'mariadb.sys@localhost' has no password set.
  39. [!!] User 'librenms@%' does not specify hostname restrictions.
  40. [--] There are 620 basic passwords in the list.
  41.  
  42. -------- CVE Security Recommendations --------------------------------------------------------------
  43. [OK] NO SECURITY CVE FOUND FOR YOUR VERSION
  44.  
  45. -------- Performance Metrics -----------------------------------------------------------------------
  46. [--] Up for: 11s (42K q [3K qps], 363 conn, TX: 92M, RX: 13M)
  47. [--] Reads / Writes: 68% / 32%
  48. [--] Binary logging is disabled
  49. [--] Physical Memory : 31.3G
  50. [--] Max MySQL memory : 1847.1G
  51. [--] Other process memory: 0B
  52. [--] Total buffers: 417.0M global + 18.9M per thread (100000 max threads)
  53. [--] P_S Max memory usage: 0B
  54. [--] Galera GCache Max memory usage: 0B
  55. [OK] Maximum reached memory usage: 3.7G (11.88% of installed RAM)
  56. [!!] Maximum possible memory usage: 1847.1G (5908.57% of installed RAM)
  57. [!!] Overall possible memory usage with other process exceeded memory
  58. [OK] Slow queries: 0% (0/42K)
  59. [OK] Highest usage of available connections: 0% (179/100000)
  60. [OK] Aborted connections: 0.00% (0/363)
  61. [!!] Query cache may be disabled by default due to mutex contention.
  62. [!!] Query cache efficiency: 0.0% (0 cached / 27K selects)
  63. [OK] Query cache prunes per day: 0
  64. [OK] Sorts requiring temporary tables: 4% (12 temp sorts / 295 sorts)
  65. [OK] No joins without indexes
  66. [OK] Temporary tables created on disk: 21% (184 on disk / 866 total)
  67. [!!] Thread cache hit rate: 50% (179 created / 363 connections)
  68. [OK] Table cache hit rate: 95% (139 open / 145 opened)
  69. [OK] table_definition_cache(400) is upper than number of tables(326)
  70. [OK] Open file limit used: 0% (28/132K)
  71. [OK] Table locks acquired immediately: 100% (149 immediate / 149 locks)
  72.  
  73. -------- Performance schema ------------------------------------------------------------------------
  74. [--] Performance schema is disabled.
  75. [--] Memory used by P_S: 0B
  76. [--] Sys schema isn't installed.
  77.  
  78. -------- ThreadPool Metrics ------------------------------------------------------------------------
  79. [--] ThreadPool stat is enabled.
  80. [--] Thread Pool Size: 8 thread(s).
  81. [--] Using default value is good enough for your version (10.5.8-MariaDB)
  82.  
  83. -------- MyISAM Metrics ----------------------------------------------------------------------------
  84. [!!] Key buffer used: 18.2% (24M used / 134M cache)
  85. [!!] Cannot calculate MyISAM index size - re-run script as root user
  86.  
  87. -------- InnoDB Metrics ----------------------------------------------------------------------------
  88. [--] InnoDB is enabled.
  89. [--] InnoDB Thread Concurrency: 0
  90. [OK] InnoDB File per table is activated
  91. [!!] InnoDB buffer pool / data size: 128.0M/6.9G
  92. [!!] Ratio InnoDB log file size / InnoDB Buffer pool size (75 %): 96.0M * 1/128.0M should be equal to 25%
  93. [--] Number of InnoDB Buffer Pool Chunk : 1 for 1 Buffer Pool Instance(s)
  94. [OK] Innodb_buffer_pool_size aligned with Innodb_buffer_pool_chunk_size & Innodb_buffer_pool_instances
  95. [OK] InnoDB Read buffer efficiency: 99.85% (3039785 hits/ 3044272 total)
  96. [!!] InnoDB Write Log efficiency: 312.24% (5536 hits/ 1773 total)
  97. [OK] InnoDB log waits: 0.00% (0 waits / 7309 writes)
  98.  
  99. -------- AriaDB Metrics ----------------------------------------------------------------------------
  100. [--] AriaDB is enabled.
  101. [OK] Aria pagecache size / total Aria indexes: 128.0M/336.0K
  102. [OK] Aria pagecache hit rate: 99.6% (3K cached / 13 reads)
  103.  
  104. -------- TokuDB Metrics ----------------------------------------------------------------------------
  105. [--] TokuDB is disabled.
  106.  
  107. -------- XtraDB Metrics ----------------------------------------------------------------------------
  108. [--] XtraDB is disabled.
  109.  
  110. -------- Galera Metrics ----------------------------------------------------------------------------
  111. [--] Galera is disabled.
  112.  
  113. -------- Replication Metrics -----------------------------------------------------------------------
  114. [--] Galera Synchronous replication: NO
  115. [--] No replication slave(s) for this server.
  116. [--] Binlog format: MIXED
  117. [--] XA support enabled: ON
  118. [--] Semi synchronous replication Master: OFF
  119. [--] Semi synchronous replication Slave: OFF
  120. [--] This is a standalone server
  121.  
  122. -------- Recommendations ---------------------------------------------------------------------------
  123. General recommendations:
  124. Control warning line(s) into /var/log/mysql.log file
  125. Set up a Secure Password for mariadb.sys@localhost user: SET PASSWORD FOR 'mariadb.sys'@'SpecificDNSorIp' = PASSWORD('secure_password');
  126. Restrict Host for 'librenms'@% to librenms@SpecificDNSorIp
  127. UPDATE mysql.user SET host ='SpecificDNSorIp' WHERE user='librenms' AND host ='%'; FLUSH PRIVILEGES;
  128. MySQL was started within the last 24 hours - recommendations may be inaccurate
  129. Reduce your overall MySQL memory footprint for system stability
  130. Dedicate this server to your database for highest performance.
  131. Performance schema should be activated for better diagnostics
  132. Consider installing Sys schema from https://github.com/mysql/mysql-sys for MySQL
  133. Consider installing Sys schema from https://github.com/FromDual/mariadb-sys for MariaDB
  134. Before changing innodb_log_file_size and/or innodb_log_files_in_group read this: https://bit.ly/2TcGgtU
  135. Variables to adjust:
  136. *** MySQL's maximum memory usage is dangerously high ***
  137. *** Add RAM before increasing MySQL buffer variables ***
  138. query_cache_size (=0)
  139. query_cache_type (=0)
  140. query_cache_limit (> 1M, or use smaller result sets)
  141. thread_cache_size (> 256)
  142. performance_schema = ON enable PFS
  143. innodb_buffer_pool_size (>= 6.9G) if possible.
  144. 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