Advertisement
kavin-inextrix

Untitled

Jan 3rd, 2020
388
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.49 KB | None | 0 0
  1. >> MySQLTuner 1.7.19 - Major Hayden <[email protected]>
  2. >> Bug reports, feature requests, and downloads at http://mysqltuner.com/
  3. >> Run with '--help' for additional options and output filtering
  4.  
  5. [--] Skipped version check for MySQLTuner script
  6. [OK] Logged in using credentials from Debian maintenance account.
  7. [OK] Currently running supported MySQL version 10.3.17-MariaDB-1:10.3.17+maria~stretch-log
  8. [OK] Operating on 64-bit architecture
  9.  
  10. -------- Log file Recommendations ------------------------------------------------------------------
  11. [OK] Log file /var/lib/mysql/debian-s-8vcpu-32gb-fra1-01.err exists
  12. [--] Log file: /var/lib/mysql/debian-s-8vcpu-32gb-fra1-01.err(1M)
  13. [OK] Log file /var/lib/mysql/debian-s-8vcpu-32gb-fra1-01.err is readable.
  14. [OK] Log file /var/lib/mysql/debian-s-8vcpu-32gb-fra1-01.err is not empty
  15. [OK] Log file /var/lib/mysql/debian-s-8vcpu-32gb-fra1-01.err is smaller than 32 Mb
  16. [!!] /var/lib/mysql/debian-s-8vcpu-32gb-fra1-01.err contains 7272 warning(s).
  17. [!!] /var/lib/mysql/debian-s-8vcpu-32gb-fra1-01.err contains 7223 error(s).
  18. [--] 8 start(s) detected in /var/lib/mysql/debian-s-8vcpu-32gb-fra1-01.err
  19. [--] 1) 2020-01-03 4:58:14 0 [Note] /usr/sbin/mysqld: ready for connections.
  20. [--] 2) 2020-01-02 8:50:27 0 [Note] /usr/sbin/mysqld: ready for connections.
  21. [--] 3) 2020-01-02 8:49:41 0 [Note] /usr/sbin/mysqld: ready for connections.
  22. [--] 4) 2020-01-02 8:20:42 0 [Note] /usr/sbin/mysqld: ready for connections.
  23. [--] 5) 2020-01-01 14:07:49 0 [Note] /usr/sbin/mysqld: ready for connections.
  24. [--] 6) 2019-12-18 8:44:55 0 [Note] /usr/sbin/mysqld: ready for connections.
  25. [--] 7) 2019-12-17 9:44:03 0 [Note] /usr/sbin/mysqld: ready for connections.
  26. [--] 8) 2019-12-11 11:45:09 0 [Note] /usr/sbin/mysqld: ready for connections.
  27. [--] 7 shutdown(s) detected in /var/lib/mysql/debian-s-8vcpu-32gb-fra1-01.err
  28. [--] 1) 2020-01-03 4:57:48 0 [Note] /usr/sbin/mysqld: Shutdown complete
  29. [--] 2) 2020-01-02 8:49:58 0 [Note] /usr/sbin/mysqld: Shutdown complete
  30. [--] 3) 2020-01-02 8:49:37 0 [Note] /usr/sbin/mysqld: Shutdown complete
  31. [--] 4) 2020-01-02 8:20:15 0 [Note] /usr/sbin/mysqld: Shutdown complete
  32. [--] 5) 2019-12-18 8:44:28 0 [Note] /usr/sbin/mysqld: Shutdown complete
  33. [--] 6) 2019-12-17 8:43:36 0 [Note] /usr/sbin/mysqld: Shutdown complete
  34. [--] 7) 2019-12-11 11:39:58 0 [Note] /usr/sbin/mysqld: Shutdown complete
  35.  
  36. -------- Storage Engine Statistics -----------------------------------------------------------------
  37. [--] Status: +Aria +CSV +InnoDB +MEMORY +MRG_MyISAM +MyISAM +PERFORMANCE_SCHEMA +SEQUENCE
  38. [--] Data in InnoDB tables: 1.8G (Tables: 12)
  39. [--] Data in MyISAM tables: 6.9G (Tables: 462)
  40. [--] Data in MEMORY tables: 53.5M (Tables: 18)
  41. [OK] Total fragmented tables: 0
  42.  
  43. -------- Analysis Performance Metrics --------------------------------------------------------------
  44. [--] innodb_stats_on_metadata: OFF
  45. [OK] No stat updates during querying INFORMATION_SCHEMA.
  46.  
  47. -------- Security Recommendations ------------------------------------------------------------------
  48. [OK] There are no anonymous accounts for any database users
  49. [OK] All database users have passwords assigned
  50. [!!] User 'cron@%' does not specify hostname restrictions.
  51. [!!] There is no basic password file list!
  52.  
  53. -------- CVE Security Recommendations --------------------------------------------------------------
  54. [--] Skipped due to --cvefile option undefined
  55.  
  56. -------- Performance Metrics -----------------------------------------------------------------------
  57. [--] Up for: 9h 34m 30s (54M q [1K qps], 4M conn, TX: 12G, RX: 7G)
  58. [--] Reads / Writes: 94% / 6%
  59. [--] Binary logging is enabled (GTID MODE: OFF)
  60. [--] Physical Memory : 31.4G
  61. [--] Max MySQL memory : 72.0G
  62. [--] Other process memory: 0B
  63. [--] Total buffers: 4.2G global + 34.3M per thread (2000 max threads)
  64. [--] P_S Max memory usage: 865M
  65. [--] Galera GCache Max memory usage: 0B
  66. [OK] Maximum reached memory usage: 12.1G (38.61% of installed RAM)
  67. [!!] Maximum possible memory usage: 72.0G (229.01% of installed RAM)
  68. [!!] Overall possible memory usage with other process exceeded memory
  69. [OK] Slow queries: 0% (1K/54M)
  70. [OK] Highest usage of available connections: 10% (213/2000)
  71. [OK] Aborted connections: 0.00% (0/4725626)
  72. [OK] Query cache is disabled by default due to mutex contention on multiprocessor machines.
  73. [OK] Sorts requiring temporary tables: 0% (124 temp sorts / 2M sorts)
  74. [!!] Joins performed without indexes: 486
  75. [OK] Temporary tables created on disk: 0% (285 on disk / 1M total)
  76. [OK] Thread cache hit rate: 99% (1K created / 4M connections)
  77. [!!] Table cache hit rate: 12% (494 open / 4K opened)
  78. [OK] table_definition_cache(2048) is upper than number of tables(651)
  79. [OK] Open file limit used: 1% (398/24K)
  80. [OK] Table locks acquired immediately: 99% (46M immediate / 46M locks)
  81. [OK] Binlog cache memory access: 100.00% (316956 Memory / 316956 Total)
  82.  
  83. -------- Performance schema ------------------------------------------------------------------------
  84. [--] Memory used by P_S: 865.9M
  85. [--] Sys schema isn't installed.
  86.  
  87. -------- ThreadPool Metrics ------------------------------------------------------------------------
  88. [--] ThreadPool stat is enabled.
  89. [--] Thread Pool Size: 8 thread(s).
  90. [--] Using default value is good enough for your version (10.3.17-MariaDB-1:10.3.17+maria~stretch-log)
  91.  
  92. -------- MyISAM Metrics ----------------------------------------------------------------------------
  93. [!!] Key buffer used: 20.0% (429M used / 2B cache)
  94. [OK] Key buffer size / total MyISAM indexes: 2.0G/2.1G
  95. [OK] Read Key buffer hit rate: 99.9% (313M cached / 197K reads)
  96. [!!] Write Key buffer hit rate: 93.8% (1M cached / 1M writes)
  97.  
  98. -------- InnoDB Metrics ----------------------------------------------------------------------------
  99. [--] InnoDB is enabled.
  100. [--] InnoDB Thread Concurrency: 0
  101. [OK] InnoDB File per table is activated
  102. [OK] InnoDB buffer pool / data size: 2.0G/1.8G
  103. [!!] Ratio InnoDB log file size / InnoDB Buffer pool size (1.953125 %): 20.0M * 2/2.0G should be equal to 25%
  104. [!!] InnoDB buffer pool instances: 8
  105. [--] Number of InnoDB Buffer Pool Chunk : 16 for 8 Buffer Pool Instance(s)
  106. [OK] Innodb_buffer_pool_size aligned with Innodb_buffer_pool_chunk_size & Innodb_buffer_pool_instances
  107. [OK] InnoDB Read buffer efficiency: 100.00% (32120020459 hits/ 32120129823 total)
  108. [!!] InnoDB Write Log efficiency: 66.45% (610051 hits/ 918022 total)
  109. [OK] InnoDB log waits: 0.00% (0 waits / 307971 writes)
  110.  
  111. -------- AriaDB Metrics ----------------------------------------------------------------------------
  112. [--] AriaDB is enabled.
  113. [OK] Aria pagecache size / total Aria indexes: 128.0M/1B
  114. [OK] Aria pagecache hit rate: 100.0% (40M cached / 285 reads)
  115.  
  116. -------- TokuDB Metrics ----------------------------------------------------------------------------
  117. [--] TokuDB is disabled.
  118.  
  119. -------- XtraDB Metrics ----------------------------------------------------------------------------
  120. [--] XtraDB is disabled.
  121.  
  122. -------- Galera Metrics ----------------------------------------------------------------------------
  123. [--] Galera is disabled.
  124.  
  125. -------- Replication Metrics -----------------------------------------------------------------------
  126. [--] Galera Synchronous replication: NO
  127. [--] No replication slave(s) for this server.
  128. [--] Binlog format: MIXED
  129. [--] XA support enabled: ON
  130. [--] Semi synchronous replication Master: OFF
  131. [--] Semi synchronous replication Slave: OFF
  132. [--] This is a standalone server
  133.  
  134. -------- Recommendations ---------------------------------------------------------------------------
  135. General recommendations:
  136. Control warning line(s) into /var/lib/mysql/debian-s-8vcpu-32gb-fra1-01.err file
  137. Control error line(s) into /var/lib/mysql/debian-s-8vcpu-32gb-fra1-01.err file
  138. Restrict Host for 'cron'@% to cron@SpecificDNSorIp
  139. UPDATE mysql.user SET host ='SpecificDNSorIp' WHERE user='cron' AND host ='%'; FLUSH PRIVILEGES;
  140. MySQL was started within the last 24 hours - recommendations may be inaccurate
  141. Reduce your overall MySQL memory footprint for system stability
  142. Dedicate this server to your database for highest performance.
  143. We will suggest raising the 'join_buffer_size' until JOINs not using indexes are found.
  144. See https://dev.mysql.com/doc/internals/en/join-buffer-size.html
  145. (specially the conclusions at the bottom of the page).
  146. Increase table_open_cache gradually to avoid file descriptor limits
  147. Read this before increasing table_open_cache over 64: https://bit.ly/1mi7c4C
  148. Read this before increasing for MariaDB https://mariadb.com/kb/en/library/optimizing-table_open_cache/
  149. This is MyISAM only table_cache scalability problem, InnoDB not affected.
  150. See more details here: https://bugs.mysql.com/bug.php?id=49177
  151. This bug already fixed in MySQL 5.7.9 and newer MySQL versions.
  152. Beware that open_files_limit (24576) variable
  153. should be greater than table_open_cache (512)
  154. Consider installing Sys schema from https://github.com/mysql/mysql-sys for MySQL
  155. Consider installing Sys schema from https://github.com/good-dba/mariadb-sys for MariaDB
  156. Before changing innodb_log_file_size and/or innodb_log_files_in_group read this: https://bit.ly/2TcGgtU
  157. Variables to adjust:
  158. *** MySQL's maximum memory usage is dangerously high ***
  159. *** Add RAM before increasing MySQL buffer variables ***
  160. join_buffer_size (> 20.0M, or always use indexes with JOINs)
  161. table_open_cache (> 512)
  162. innodb_log_file_size should be (=256M) if possible, so InnoDB total log files size equals to 25% of buffer pool size.
  163. innodb_buffer_pool_instances(=2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement