tota1907

mysqltuner

Oct 6th, 2018
852
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.37 KB | None | 0 0
  1. -------- Storage Engine Statistics -----------------------------------------------------------------
  2. [--] Status: +ARCHIVE +BLACKHOLE +CSV -FEDERATED +InnoDB +MEMORY +MRG_MYISAM +MyISAM +PERFORMANCE_SCHEMA
  3. [--] Data in MyISAM tables: 533.5M (Tables: 9)
  4. [--] Data in InnoDB tables: 228.8M (Tables: 47)
  5. [OK] Total fragmented tables: 0
  6.  
  7. -------- Analysis Performance Metrics --------------------------------------------------------------
  8. [--] innodb_stats_on_metadata: OFF
  9. [OK] No stat updates during querying INFORMATION_SCHEMA.
  10.  
  11. -------- Security Recommendations ------------------------------------------------------------------
  12. [OK] There are no anonymous accounts for any database users
  13. [OK] All database users have passwords assigned
  14. [!!] There is no basic password file list!
  15.  
  16. -------- CVE Security Recommendations --------------------------------------------------------------
  17. [--] Skipped due to --cvefile option undefined
  18.  
  19. -------- Performance Metrics -----------------------------------------------------------------------
  20. [--] Up for: 19h 5m 27s (9M q [133.395 qps], 1M conn, TX: 1G, RX: 565M)
  21. [--] Reads / Writes: 86% / 14%
  22. [--] Binary logging is disabled
  23. [--] Physical Memory : 31.3G
  24. [--] Max MySQL memory : 22.6G
  25. [--] Other process memory: 1.2G
  26. [--] Total buffers: 1.6G global + 14.4M per thread (1500 max threads)
  27. [--] P_S Max memory usage: 72B
  28. [--] Galera GCache Max memory usage: 0B
  29. [OK] Maximum reached memory usage: 1.9G (6.17% of installed RAM)
  30. [OK] Maximum possible memory usage: 22.6G (72.14% of installed RAM)
  31. [OK] Overall possible memory usage with other process is compatible with memory available
  32. [OK] Slow queries: 0% (0/9M)
  33. [OK] Highest usage of available connections: 1% (27/1500)
  34. [OK] Aborted connections: 0.03% (406/1315684)
  35. [!!] name resolution is active : a reverse name resolution is made for each new connection and can reduce performance
  36. [!!] Query cache may be disabled by default due to mutex contention.
  37. [OK] Query cache efficiency: 26.5% (422K cached / 1M selects)
  38. [OK] Query cache prunes per day: 0
  39. [OK] Sorts requiring temporary tables: 0% (60 temp sorts / 22K sorts)
  40. [!!] Joins performed without indexes: 245
  41. [OK] Temporary tables created on disk: 2% (1K on disk / 60K total)
  42. [OK] Thread cache hit rate: 99% (27 created / 1M connections)
  43. [!!] Table cache hit rate: 9% (1K open / 19K opened)
  44. [OK] Open file limit used: 2% (232/10K)
  45. [!!] Table locks acquired immediately: 68%
  46.  
  47. -------- Performance schema ------------------------------------------------------------------------
  48. [--] Memory used by P_S: 72B
  49. [--] Sys schema is installed.
  50.  
  51. -------- ThreadPool Metrics ------------------------------------------------------------------------
  52. [--] ThreadPool stat is disabled.
  53.  
  54. -------- MyISAM Metrics ----------------------------------------------------------------------------
  55. [!!] Key buffer used: 33.8% (127M used / 377M cache)
  56. [OK] Key buffer size / total MyISAM indexes: 360.0M/311.0M
  57. [OK] Read Key buffer hit rate: 99.3% (4M cached / 34K reads)
  58. [!!] Write Key buffer hit rate: 81.6% (1M cached / 1M writes)
  59.  
  60. -------- InnoDB Metrics ----------------------------------------------------------------------------
  61. [--] InnoDB is enabled.
  62. [--] InnoDB Thread Concurrency: 0
  63. [OK] InnoDB File per table is activated
  64. [OK] InnoDB buffer pool / data size: 1.0G/228.8M
  65. [!!] Ratio InnoDB log file size / InnoDB Buffer pool size (9.375 %): 48.0M * 2/1.0G should be equal 25%
  66. [OK] InnoDB buffer pool instances: 1
  67. [--] Number of InnoDB Buffer Pool Chunk : 8 for 1 Buffer Pool Instance(s)
  68. [OK] Innodb_buffer_pool_size aligned with Innodb_buffer_pool_chunk_size & Innodb_buffer_pool_instances
  69. [OK] InnoDB Read buffer efficiency: 100.00% (1783827282 hits/ 1783833972 total)
  70. [!!] InnoDB Write Log efficiency: 78.61% (138413 hits/ 176074 total)
  71. [OK] InnoDB log waits: 0.00% (0 waits / 314487 writes)
  72.  
  73. -------- AriaDB Metrics ----------------------------------------------------------------------------
  74. [--] AriaDB is disabled.
  75.  
  76. -------- TokuDB Metrics ----------------------------------------------------------------------------
  77. [--] TokuDB is disabled.
  78.  
  79. -------- XtraDB Metrics ----------------------------------------------------------------------------
  80. [--] XtraDB is disabled.
  81.  
  82. -------- Galera Metrics ----------------------------------------------------------------------------
  83. [--] Galera is disabled.
  84.  
  85. -------- Replication Metrics -----------------------------------------------------------------------
  86. [--] Galera Synchronous replication: NO
  87. [--] No replication slave(s) for this server.
  88. [--] Binlog format: ROW
  89. [--] XA support enabled: ON
  90. [--] Semi synchronous replication Master: Not Activated
  91. [--] Semi synchronous replication Slave: Not Activated
  92. [--] This is a standalone server
  93.  
  94. -------- Recommendations ---------------------------------------------------------------------------
  95. General recommendations:
  96. /var/log/mysqld.log is > 32Mb, you should analyze why or implement a rotation log strategy such as logrotate!
  97. Control warning line(s) into /var/log/mysqld.log file
  98. Control error line(s) into /var/log/mysqld.log file
  99. Restrict Host for user@% to user@SpecificDNSorIp
  100. MySQL was started within the last 24 hours - recommendations may be inaccurate
  101. Configure your accounts with ip or subnets only, then update your configuration with skip-name-resolve=1
  102. Adjust your join queries to always utilize indexes
  103. Increase table_open_cache gradually to avoid file descriptor limits
  104. Read this before increasing table_open_cache over 64: http://bit.ly/1mi7c4C
  105. Read this before increasing for MariaDB https://mariadb.com/kb/en/library/optimizing-table_open_cache/
  106. This is MyISAM only table_cache scalability problem, InnoDB not affected.
  107. See more details here: https://bugs.mysql.com/bug.php?id=49177
  108. This bug already fixed in MySQL 5.7.9 and newer MySQL versions.
  109. Beware that open_files_limit (10000) variable
  110. should be greater than table_open_cache (2000)
  111. Optimize queries and/or use InnoDB to reduce lock wait
  112. Before changing innodb_log_file_size and/or innodb_log_files_in_group read this: http://bit.ly/2wgkDvS
  113. Variables to adjust:
  114. query_cache_size (=0)
  115. query_cache_type (=0)
  116. join_buffer_size (> 12.0M, or always use indexes with JOINs)
  117. table_open_cache (> 2000)
  118. innodb_log_file_size should be (=128M) if possible, so InnoDB total log files size equals to 25% of buffer pool size.
Add Comment
Please, Sign In to add comment