Guest User

MySQLTuner report

a guest
Mar 9th, 2023
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.07 KB | None | 0 0
  1. >> MySQLTuner 1.9.9
  2. * Jean-Marie Renouard <[email protected]>
  3. * Major Hayden <[email protected]>
  4. >> Bug reports, feature requests, and downloads at http://mysqltuner.pl/
  5. >> Run with '--help' for additional options and output filtering
  6.  
  7. [--] Skipped version check for MySQLTuner script
  8. [OK] Logged in using credentials passed on the command line
  9. [OK] Currently running supported MySQL version 10.3.38-MariaDB-1:10.3.38+maria~deb10
  10. [OK] Operating on 64-bit architecture
  11.  
  12. -------- Log file Recommendations ------------------------------------------------------------------
  13. [!!] Log file doesn't exist
  14.  
  15. -------- Storage Engine Statistics -----------------------------------------------------------------
  16. [--] Status: +Aria +CSV +InnoDB +MEMORY +MRG_MyISAM +MyISAM +PERFORMANCE_SCHEMA +SEQUENCE
  17. [--] Data in InnoDB tables: 19.8G (Tables: 289)
  18. [!!] Total fragmented tables: 1
  19.  
  20. -------- Analysis Performance Metrics --------------------------------------------------------------
  21. [--] innodb_stats_on_metadata: OFF
  22. [OK] No stat updates during querying INFORMATION_SCHEMA.
  23.  
  24. -------- Views Metrics -----------------------------------------------------------------------------
  25.  
  26. -------- Triggers Metrics --------------------------------------------------------------------------
  27.  
  28. -------- Routines Metrics --------------------------------------------------------------------------
  29.  
  30. -------- Security Recommendations ------------------------------------------------------------------
  31. [OK] There are no anonymous accounts for any database users
  32. [!!] User ''debian-sys-maint'@'localhost'' has no password set.
  33. [!!] User 'XXXXXXXXX'@% does not specify hostname restrictions.
  34. [!!] User 'XXXXXXXXX'@% does not specify hostname restrictions.
  35. [!!] User 'XXXXXXXXX'@% does not specify hostname restrictions.
  36. [!!] User 'XXXXXXXXX'@% does not specify hostname restrictions.
  37. [!!] User 'XXXXXXXXX'@% does not specify hostname restrictions.
  38. [!!] User 'XXXXXXXXX'@% does not specify hostname restrictions.
  39. [!!] User 'XXXXXXXXX'@% does not specify hostname restrictions.
  40. [!!] User 'XXXXXXXXX'@% does not specify hostname restrictions.
  41. [!!] User 'XXXXXXXXX'@% does not specify hostname restrictions.
  42. [--] There are 620 basic passwords in the list.
  43.  
  44. -------- CVE Security Recommendations --------------------------------------------------------------
  45. [OK] NO SECURITY CVE FOUND FOR YOUR VERSION
  46.  
  47. -------- Performance Metrics -----------------------------------------------------------------------
  48. [--] Up for: 1d 0h 10m 43s (42M q [482.713 qps], 234K conn, TX: 68G, RX: 48G)
  49. [--] Reads / Writes: 52% / 48%
  50. [--] Binary logging is disabled
  51. [--] Physical Memory : 31.4G
  52. [--] Max MySQL memory : 23.1G
  53. [--] Other process memory: 0B
  54. [--] Total buffers: 20.3G global + 18.9M per thread (151 max threads)
  55. [--] P_S Max memory usage: 0B
  56. [--] Galera GCache Max memory usage: 0B
  57. [OK] Maximum reached memory usage: 21.6G (68.61% of installed RAM)
  58. [OK] Maximum possible memory usage: 23.1G (73.43% of installed RAM)
  59. [OK] Overall possible memory usage with other process is compatible with memory available
  60. [OK] Slow queries: 0% (53K/42M)
  61. [OK] Highest usage of available connections: 45% (69/151)
  62. [OK] Aborted connections: 0.00% (3/234933)
  63. [!!] Name resolution is active: a reverse name resolution is made for each new connection and can reduce performance
  64. [OK] Query cache is disabled by default due to mutex contention on multiprocessor machines.
  65. [OK] Sorts requiring temporary tables: 0% (23 temp sorts / 111K sorts)
  66. [!!] Joins performed without indexes: 13020
  67. [OK] Temporary tables created on disk: 15% (204K on disk / 1M total)
  68. [OK] Thread cache hit rate: 99% (100 created / 234K connections)
  69. [OK] Table cache hit rate: 99% (55M hits / 55M requests)
  70. [!!] table_definition_cache (400) is less than number of tables (450)
  71. [OK] Open file limit used: 0% (60/16K)
  72. [OK] Table locks acquired immediately: 100% (30K immediate / 30K locks)
  73.  
  74. -------- Performance schema ------------------------------------------------------------------------
  75. [!!] Performance_schema should be activated.
  76. [--] Sys schema isn't installed.
  77.  
  78. -------- ThreadPool Metrics ------------------------------------------------------------------------
  79. [--] ThreadPool stat is disabled.
  80.  
  81. -------- MyISAM Metrics ----------------------------------------------------------------------------
  82. [!!] Key buffer used: 18.2% (23.4M used / 128.0M cache)
  83. [OK] Key buffer size / total MyISAM indexes: 128.0M/115.0K
  84. [OK] Read Key buffer hit rate: 95.7% (94 cached / 4 reads)
  85.  
  86. -------- InnoDB Metrics ----------------------------------------------------------------------------
  87. [--] InnoDB is enabled.
  88. [--] InnoDB Thread Concurrency: 0
  89. [OK] InnoDB File per table is activated
  90. [OK] InnoDB buffer pool / data size: 20.0G/19.8G
  91. [!!] Ratio InnoDB log file size / InnoDB Buffer pool size (0.46875%): 48.0M * 2/20.0G should be equal to 25%
  92. [!!] InnoDB buffer pool instances: 8
  93. [--] Number of InnoDB Buffer Pool Chunk: 160 for 8 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.99% (16933855441 hits/ 16935163100 total)
  96. [OK] InnoDB Write log efficiency: 99.88% (139408110 hits/ 139577954 total)
  97. [OK] InnoDB log waits: 0.00% (0 waits / 169844 writes)
  98.  
  99. -------- Aria Metrics ------------------------------------------------------------------------------
  100. [--] Aria Storage Engine is enabled.
  101. [OK] Aria pagecache size / total Aria indexes: 128.0M/0B
  102. [OK] Aria pagecache hit rate: 99.8% (31M cached / 64K 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. Run OPTIMIZE TABLE to defragment tables for better performance
  125. OPTIMIZE TABLE `XXXXXXXXX`.`XXXXXXXXX`; -- can free 968 MB
  126. Total freed space after theses OPTIMIZE TABLE : 968 Mb
  127. Set up a Secure Password for 'XXXXXXXXX'@'localhost' user: SET PASSWORD FOR 'XXXXXXXXX'@'localhost' = PASSWORD('secure_password');
  128. Restrict Host for 'XXXXXXXXX'@'%' to 'XXXXXXXXX'@LimitedIPRangeOrLocalhost
  129. RENAME USER 'XXXXXXXXX'@'%' TO 'XXXXXXXXX'@LimitedIPRangeOrLocalhost;
  130. Restrict Host for 'XXXXXXXXX'@'%' to 'XXXXXXXXX'@LimitedIPRangeOrLocalhost
  131. RENAME USER 'XXXXXXXXX'@'%' TO 'XXXXXXXXX'@LimitedIPRangeOrLocalhost;
  132. Restrict Host for 'XXXXXXXXX'@'%' to 'XXXXXXXXX'@LimitedIPRangeOrLocalhost
  133. RENAME USER 'XXXXXXXXX'@'%' TO 'XXXXXXXXX'@LimitedIPRangeOrLocalhost;
  134. Restrict Host for 'XXXXXXXXX'@'%' to 'XXXXXXXXX'@LimitedIPRangeOrLocalhost
  135. RENAME USER 'XXXXXXXXX'@'%' TO 'XXXXXXXXX'@LimitedIPRangeOrLocalhost;
  136. Restrict Host for 'XXXXXXXXX'@'%' to 'XXXXXXXXX'@LimitedIPRangeOrLocalhost
  137. RENAME USER 'XXXXXXXXX'@'%' TO 'XXXXXXXXX'@LimitedIPRangeOrLocalhost;
  138. Restrict Host for 'XXXXXXXXX'@'%' to 'XXXXXXXXX'@LimitedIPRangeOrLocalhost
  139. RENAME USER 'XXXXXXXXX'@'%' TO 'XXXXXXXXX'@LimitedIPRangeOrLocalhost;
  140. Restrict Host for 'XXXXXXXXX'@'%' to 'XXXXXXXXX'@LimitedIPRangeOrLocalhost
  141. RENAME USER 'XXXXXXXXX'@'%' TO 'XXXXXXXXX'@LimitedIPRangeOrLocalhost;
  142. Restrict Host for 'XXXXXXXXX'@'%' to 'XXXXXXXXX'@LimitedIPRangeOrLocalhost
  143. RENAME USER 'XXXXXXXXX'@'%' TO 'XXXXXXXXX'@LimitedIPRangeOrLocalhost;
  144. Restrict Host for 'XXXXXXXXX'@'%' to 'XXXXXXXXX'@LimitedIPRangeOrLocalhost
  145. RENAME USER 'XXXXXXXXX'@'%' TO 'XXXXXXXXX'@LimitedIPRangeOrLocalhost;
  146. Configure your accounts with ip or subnets only, then update your configuration with skip-name-resolve=1
  147. We will suggest raising the 'join_buffer_size' until JOINs not using indexes are found.
  148. See https://dev.mysql.com/doc/internals/en/join-buffer-size.html
  149. (specially the conclusions at the bottom of the page).
  150. Performance schema should be activated for better diagnostics
  151. Consider installing Sys schema from https://github.com/mysql/mysql-sys for MySQL
  152. Before changing innodb_log_file_size and/or innodb_log_files_in_group read this: https://bit.ly/2TcGgtU
  153. Variables to adjust:
  154. skip-name-resolve=1
  155. join_buffer_size (> 256.0K, or always use indexes with JOINs)
  156. table_definition_cache(400) > 450 or -1 (autosizing if supported)
  157. performance_schema=ON
  158. key_buffer_size (~ 24M)
  159. innodb_log_file_size should be (=2G) if possible, so InnoDB total log files size equals 25% of buffer pool size.
  160. innodb_buffer_pool_instances(=20)
Add Comment
Please, Sign In to add comment