Advertisement
bslinger

MYSQL Tuner

Jun 25th, 2019
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.93 KB | None | 0 0
  1. >> MySQLTuner 1.7.15 - Major Hayden <major@mhtx.net>
  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. [--] Performing tests on <redacted>.rds.amazonaws.com:3306
  7. [OK] Logged in using credentials passed on the command line
  8. [--] Assuming 16384 MB of physical memory
  9. [--] Assuming 100 MB of swap space
  10. [OK] Currently running supported MySQL version 5.6.43-log
  11.  
  12. -------- Log file Recommendations ------------------------------------------------------------------
  13. [--] Log file: /rdsdbdata/db/ip-172-17-3-73.err(0B)
  14. [!!] Log file /rdsdbdata/db/ip-172-17-3-73.err doesn't exist
  15. [!!] Log file /rdsdbdata/db/ip-172-17-3-73.err isn't readable.
  16.  
  17. -------- Storage Engine Statistics -----------------------------------------------------------------
  18. [--] Status: +ARCHIVE +BLACKHOLE +CSV -FEDERATED +InnoDB +MEMORY +MRG_MYISAM +MyISAM +PERFORMANCE_SCHEMA
  19. [--] Data in InnoDB tables: 377.4G (Tables: 61)
  20. [!!] Total fragmented tables: 1
  21.  
  22. -------- Analysis Performance Metrics --------------------------------------------------------------
  23. [--] innodb_stats_on_metadata: OFF
  24. [OK] No stat updates during querying INFORMATION_SCHEMA.
  25.  
  26. -------- Security Recommendations ------------------------------------------------------------------
  27. [OK] There are no anonymous accounts for any database users
  28. [!!] User '<redacted>@*' has no password set.
  29. [!!] User '<redacted>@%' has no password set.
  30. [!!] User '<redacted>@%' does not specify hostname restrictions.
  31. [!!] User '<redacted>@%' does not specify hostname restrictions.
  32. [!!] User '<redacted>@%' does not specify hostname restrictions.
  33. [!!] User '<redacted>@%' does not specify hostname restrictions.
  34. [--] There are 618 basic passwords in the list.
  35.  
  36. -------- CVE Security Recommendations --------------------------------------------------------------
  37. [OK] NO SECURITY CVE FOUND FOR YOUR VERSION
  38.  
  39. -------- Performance Metrics -----------------------------------------------------------------------
  40. [--] Up for: 17d 19h 40m 49s (1B q [768.965 qps], 6M conn, TX: 10371G, RX: 704G)
  41. [--] Reads / Writes: 84% / 16%
  42. [--] Binary logging is enabled (GTID MODE: OFF)
  43. [--] Physical Memory : 16.0G
  44. [--] Max MySQL memory : 13.2G
  45. [--] Other process memory: 0B
  46. [--] Total buffers: 11.3G global + 1.5M per thread (1282 max threads)
  47. [--] P_S Max memory usage: 0B
  48. [--] Galera GCache Max memory usage: 0B
  49. [OK] Maximum reached memory usage: 12.3G (77.16% of installed RAM)
  50. [OK] Maximum possible memory usage: 13.2G (82.48% of installed RAM)
  51. [OK] Overall possible memory usage with other process is compatible with memory available
  52. [OK] Slow queries: 0% (3M/1B)
  53. [OK] Highest usage of available connections: 54% (701/1282)
  54. [OK] Aborted connections: 0.00% (1/6143636)
  55. [!!] name resolution is active : a reverse name resolution is made for each new connection and can reduce performance
  56. [!!] Query cache may be disabled by default due to mutex contention.
  57. [!!] Query cache efficiency: 0.0% (0 cached / 975M selects)
  58. [OK] Query cache prunes per day: 0
  59. [OK] Sorts requiring temporary tables: 0% (82K temp sorts / 193M sorts)
  60. [!!] Joins performed without indexes: 6151
  61. [!!] Temporary tables created on disk: 99% (192M on disk / 192M total)
  62. [OK] Thread cache hit rate: 92% (448K created / 6M connections)
  63. [!!] Table cache hit rate: 10% (2K open / 19K opened)
  64. [OK] Open file limit used: 0% (379/65K)
  65. [OK] Table locks acquired immediately: 100% (1B immediate / 1B locks)
  66. [OK] Binlog cache memory access: 98.21% (182341100 Memory / 185657272 Total)
  67.  
  68. -------- Performance schema ------------------------------------------------------------------------
  69. [--] Performance schema is disabled.
  70. [--] Memory used by P_S: 0B
  71. [--] Sys schema is installed.
  72.  
  73. -------- ThreadPool Metrics ------------------------------------------------------------------------
  74. [--] ThreadPool stat is disabled.
  75.  
  76. -------- MyISAM Metrics ----------------------------------------------------------------------------
  77. [!!] Key buffer used: 18.3% (3M used / 16M cache)
  78. [OK] Key buffer size / total MyISAM indexes: 16.0M/2.4M
  79. [OK] Read Key buffer hit rate: 100.0% (263M cached / 24 reads)
  80. [!!] Write Key buffer hit rate: 0.0% (199M cached / 0 writes)
  81.  
  82. -------- InnoDB Metrics ----------------------------------------------------------------------------
  83. [--] InnoDB is enabled.
  84. [--] InnoDB Thread Concurrency: 0
  85. [OK] InnoDB File per table is activated
  86. [!!] InnoDB buffer pool / data size: 11.3G/377.4G
  87. [!!] Ratio InnoDB log file size / InnoDB Buffer pool size (2.21817866735985 %): 128.0M * 2/11.3G should be equal to 25%
  88. [!!] InnoDB buffer pool instances: 8
  89. [--] InnoDB Buffer Pool Chunk Size not used or defined in your version
  90. [OK] InnoDB Read buffer efficiency: 99.40% (252149023619 hits/ 253674949410 total)
  91. [OK] InnoDB Write log efficiency: 92.83% (1310145641 hits/ 1411414399 total)
  92. [OK] InnoDB log waits: 0.00% (0 waits / 101268758 writes)
  93.  
  94. -------- AriaDB Metrics ----------------------------------------------------------------------------
  95. [--] AriaDB is disabled.
  96.  
  97. -------- TokuDB Metrics ----------------------------------------------------------------------------
  98. [--] TokuDB is disabled.
  99.  
  100. -------- XtraDB Metrics ----------------------------------------------------------------------------
  101. [--] XtraDB is disabled.
  102.  
  103. -------- Galera Metrics ----------------------------------------------------------------------------
  104. [--] Galera is disabled.
  105.  
  106. -------- Replication Metrics -----------------------------------------------------------------------
  107. [--] Galera Synchronous replication: NO
  108. [--] No replication slave(s) for this server.
  109. [--] Binlog format: MIXED
  110. [--] XA support enabled: ON
  111. [--] Semi synchronous replication Master: Not Activated
  112. [--] Semi synchronous replication Slave: Not Activated
  113. [--] This is a standalone server
  114.  
  115. -------- Recommendations ---------------------------------------------------------------------------
  116. General recommendations:
  117. Run OPTIMIZE TABLE to defragment tables for better performance
  118. OPTIMIZE TABLE `<redacted>`.`Podcast`; -- can free 8460 MB
  119. Total freed space after theses OPTIMIZE TABLE : 8460 Mb
  120. Set up a Password for user with the following SQL statement ( SET PASSWORD FOR 'user'@'SpecificDNSorIp' = PASSWORD('secure_password'); )
  121. Restrict Host for user@% to user@SpecificDNSorIp
  122. Configure your accounts with ip or subnets only, then update your configuration with skip-name-resolve=1
  123. Adjust your join queries to always utilize indexes
  124. When making adjustments, make tmp_table_size/max_heap_table_size equal
  125. Reduce your SELECT DISTINCT queries which have no LIMIT clause
  126. Increase table_open_cache gradually to avoid file descriptor limits
  127. Read this before increasing table_open_cache over 64: https://bit.ly/1mi7c4C
  128. Read this before increasing for MariaDB https://mariadb.com/kb/en/library/optimizing-table_open_cache/
  129. This is MyISAM only table_cache scalability problem, InnoDB not affected.
  130. See more details here: https://bugs.mysql.com/bug.php?id=49177
  131. This bug already fixed in MySQL 5.7.9 and newer MySQL versions.
  132. Beware that open_files_limit (65535) variable
  133. should be greater than table_open_cache (2000)
  134. Performance schema should be activated for better diagnostics
  135. Before changing innodb_log_file_size and/or innodb_log_files_in_group read this: https://bit.ly/2TcGgtU
  136. Variables to adjust:
  137. query_cache_size (=0)
  138. query_cache_type (=0)
  139. query_cache_limit (> 1M, or use smaller result sets)
  140. join_buffer_size (> 256.0K, or always use indexes with JOINs)
  141. tmp_table_size (> 16M)
  142. max_heap_table_size (> 16M)
  143. table_open_cache (> 2000)
  144. performance_schema = ON enable PFS
  145. innodb_buffer_pool_size (>= 377.4G) if possible.
  146. innodb_log_file_size should be (=1G) if possible, so InnoDB total log files size equals to 25% of buffer pool size.
  147. innodb_buffer_pool_instances(=11)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement