Advertisement
Guest User

Untitled

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