Advertisement
Guest User

Untitled

a guest
Oct 21st, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.83 KB | None | 0 0
  1. [mysqld]
  2. log-error=/var/lib/mysql/animexunknown.iamhero.net.err
  3. default-storage-engine = MyISAM
  4. innodb_file_per_table = 1
  5. performance-schema = 1
  6. performance_schema_events_waits_history_size = 20
  7. performance_schema_events_waits_history_long_size = 15000
  8. max_allowed_packet = 268435456
  9. local-infile = 0
  10. open_files_limit = 10192
  11. table_open_cache = 24000
  12. table_definition_cache = 1024
  13. max_connections = 500
  14. query_cache_size = 512M
  15. query_cache_type = 0
  16. query_cache_limit = 4M
  17. join_buffer_size = 256.0K
  18. thread_cache_size = 8
  19. table_cache = 8192
  20. tmp_table_size = 16M
  21. max_heap_table_size = 256M
  22. innodb_buffer_pool_size = 15G
  23. innodb_log_file_size = 512M
  24. thread_stack = 128K
  25. key_buffer_size = 1280M
  26.  
  27. [root@anime src]# perl mysqltuner.pl
  28. >> MySQLTuner 1.7.4 - Major Hayden <major@mhtx.net>
  29. >> Bug reports, feature requests, and downloads at http://mysqltuner.com/
  30. >> Run with '--help' for additional options and output filtering
  31.  
  32. [--] Skipped version check for MySQLTuner script
  33. [OK] Currently running supported MySQL version 10.2.9-MariaDB
  34. [OK] Operating on 64-bit architecture
  35.  
  36. -------- Log file Recommendations ------------------------------------------------------------------
  37. [--] Log file: /var/lib/mysql/animexunknown.iamhero.net.err(1M)
  38. [OK] Log file /var/lib/mysql/animexunknown.iamhero.net.err exists
  39. [OK] Log file /var/lib/mysql/animexunknown.iamhero.net.err is readable.
  40. [OK] Log file /var/lib/mysql/animexunknown.iamhero.net.err is not empty
  41. [OK] Log file /var/lib/mysql/animexunknown.iamhero.net.err is smaller than 32 Mb
  42. [!!] /var/lib/mysql/animexunknown.iamhero.net.err contains 2391 warning(s).
  43. [!!] /var/lib/mysql/animexunknown.iamhero.net.err contains 2293 error(s).
  44. [--] 92 start(s) detected in /var/lib/mysql/animexunknown.iamhero.net.err
  45. [--] 1) 2017-10-21 3:18:26 140421808523392 [Note] /usr/sbin/mysqld: ready for connections.
  46. [--] 2) 2017-10-21 3:08:04 140085739542656 [Note] /usr/sbin/mysqld: ready for connections.
  47. [--] 3) 2017-10-21 2:08:28 140208588351616 [Note] /usr/sbin/mysqld: ready for connections.
  48. [--] 4) 2017-10-19 2:36:44 140705789565056 [Note] /usr/sbin/mysqld: ready for connections.
  49. [--] 5) 2017-10-19 2:36:33 140568863770752 [Note] /usr/sbin/mysqld: ready for connections.
  50. [--] 6) 2017-10-17 19:30:14 140586253817984 [Note] /usr/sbin/mysqld: ready for connections.
  51. [--] 7) 2017-10-17 19:30:04 139620718205056 [Note] /usr/sbin/mysqld: ready for connections.
  52. [--] 8) 2017-10-14 19:51:50 140700734711936 [Note] /usr/sbin/mysqld: ready for connections.
  53. [--] 9) 2017-10-14 19:51:40 139751456983168 [Note] /usr/sbin/mysqld: ready for connections.
  54. [--] 10) 2017-10-04 16:23:04 139651866327168 [Note] /usr/sbin/mysqld: ready for connections.
  55. [--] 91 shutdown(s) detected in /var/lib/mysql/animexunknown.iamhero.net.err
  56. [--] 1) 2017-10-21 3:08:06 140085462673152 [Note] /usr/sbin/mysqld: Shutdown complete
  57. [--] 2) 2017-10-21 3:03:06 140207802783488 [Note] /usr/sbin/mysqld: Shutdown complete
  58. [--] 3) 2017-10-21 2:07:00 140705346029312 [Note] /usr/sbin/mysqld: Shutdown complete
  59. [--] 4) 2017-10-19 2:36:35 140568586901248 [Note] /usr/sbin/mysqld: Shutdown complete
  60. [--] 5) 2017-10-19 2:34:13 140585760294656 [Note] /usr/sbin/mysqld: Shutdown complete
  61. [--] 6) 2017-10-17 19:30:06 139620597221120 [Note] /usr/sbin/mysqld: Shutdown complete
  62. [--] 7) 2017-10-17 19:27:59 140700247639808 [Note] /usr/sbin/mysqld: Shutdown complete
  63. [--] 8) 2017-10-14 19:51:41 139751017780992 [Note] /usr/sbin/mysqld: Shutdown complete
  64. [--] 9) 2017-10-14 19:49:50 139651063711488 [Note] /usr/sbin/mysqld: Shutdown complete
  65. [--] 10) 2017-10-04 16:22:56 140438602782464 [Note] /usr/sbin/mysqld: Shutdown complete
  66.  
  67. -------- Storage Engine Statistics -----------------------------------------------------------------
  68. [--] Status: +Aria +CSV +InnoDB +MEMORY +MRG_MyISAM +MyISAM +PERFORMANCE_SCHEMA +SEQUENCE
  69. [--] Data in MyISAM tables: 472M (Tables: 89)
  70. [--] Data in InnoDB tables: 4G (Tables: 1295)
  71. [--] Data in MEMORY tables: 2M (Tables: 24)
  72. [OK] Total fragmented tables: 0
  73.  
  74. -------- Security Recommendations ------------------------------------------------------------------
  75. [OK] There are no anonymous accounts for any database users
  76. [OK] All database users have passwords assigned
  77. [--] There are 612 basic passwords in the list.
  78.  
  79. -------- CVE Security Recommendations --------------------------------------------------------------
  80. [OK] NO SECURITY CVE FOUND FOR YOUR VERSION
  81.  
  82. -------- Performance Metrics -----------------------------------------------------------------------
  83. [--] Up for: 13h 17m 8s (6M q [132.711 qps], 293K conn, TX: 269G, RX: 2G)
  84. [--] Reads / Writes: 87% / 13%
  85. [--] Binary logging is disabled
  86. [--] Physical Memory : 29.3G
  87. [--] Max MySQL memory : 1.8G
  88. [--] Other process memory: 1.0G
  89. [--] Total buffers: 417.0M global + 2.9M per thread (500 max threads)
  90. [--] P_S Max memory usage: 0B
  91. [--] Galera GCache Max memory usage: 0B
  92. [OK] Maximum reached memory usage: 446.1M (1.49% of installed RAM)
  93. [OK] Maximum possible memory usage: 1.8G (6.24% of installed RAM)
  94. [OK] Overall possible memory usage with other process is compatible with memory available
  95. [OK] Slow queries: 0% (0/6M)
  96. [OK] Highest usage of available connections: 2% (10/500)
  97. [OK] Aborted connections: 0.04% (104/293007)
  98. [!!] name resolution is active : a reverse name resolution is made for each new connection and can reduce performance
  99. [!!] Query cache may be disabled by default due to mutex contention.
  100. [!!] Query cache efficiency: 0.0% (0 cached / 4M selects)
  101. [OK] Query cache prunes per day: 0
  102. [OK] Sorts requiring temporary tables: 0% (1 temp sorts / 320K sorts)
  103. [!!] Joins performed without indexes: 506
  104. [!!] Temporary tables created on disk: 98% (218K on disk / 221K total)
  105. [OK] Thread cache hit rate: 99% (10 created / 293K connections)
  106. [OK] Table cache hit rate: 82% (1K open / 1K opened)
  107. [OK] Open file limit used: 0% (107/240K)
  108. [OK] Table locks acquired immediately: 99% (1M immediate / 1M locks)
  109.  
  110. -------- Performance schema ------------------------------------------------------------------------
  111. [--] Performance schema is disabled.
  112. [--] Memory used by P_S: 0B
  113. [--] Sys schema isn't installed.
  114.  
  115. -------- ThreadPool Metrics ------------------------------------------------------------------------
  116. [--] ThreadPool stat is enabled.
  117. [--] Thread Pool Size: 6 thread(s).
  118. [--] Using default value is good enough for your version (10.2.9-MariaDB)
  119.  
  120. -------- MyISAM Metrics ----------------------------------------------------------------------------
  121. [!!] Key buffer used: 31.4% (42M used / 134M cache)
  122. [OK] Key buffer size / total MyISAM indexes: 128.0M/261.0M
  123. [OK] Read Key buffer hit rate: 99.6% (4M cached / 15K reads)
  124. [!!] Write Key buffer hit rate: 56.4% (659K cached / 371K writes)
  125.  
  126. -------- InnoDB Metrics ----------------------------------------------------------------------------
  127. [--] InnoDB is enabled.
  128. [--] InnoDB Thread Concurrency: 0
  129. [OK] InnoDB File per table is activated
  130. [!!] InnoDB buffer pool / data size: 128.0M/4.1G
  131. [!!] Ratio InnoDB log file size / InnoDB Buffer pool size (75 %): 48.0M * 2/128.0M should be equal 25%
  132. [OK] InnoDB buffer pool instances: 1
  133. [--] Number of InnoDB Buffer Pool Chunk : 1 for 1 Buffer Pool Instance(s)
  134. [OK] Innodb_buffer_pool_size aligned with Innodb_buffer_pool_chunk_size & Innodb_buffer_pool_instances
  135. [OK] InnoDB Read buffer efficiency: 99.96% (361634378 hits/ 361761376 total)
  136. [OK] InnoDB Write log efficiency: 91.95% (1527951 hits/ 1661676 total)
  137. [OK] InnoDB log waits: 0.00% (0 waits / 133725 writes)
  138.  
  139. -------- AriaDB Metrics ----------------------------------------------------------------------------
  140. [--] AriaDB is enabled.
  141. [OK] Aria pagecache size / total Aria indexes: 128.0M/1B
  142. [OK] Aria pagecache hit rate: 98.9% (20M cached / 218K reads)
  143.  
  144. -------- TokuDB Metrics ----------------------------------------------------------------------------
  145. [--] TokuDB is disabled.
  146.  
  147. -------- XtraDB Metrics ----------------------------------------------------------------------------
  148. [--] XtraDB is disabled.
  149.  
  150. -------- RocksDB Metrics ---------------------------------------------------------------------------
  151. [--] RocksDB is disabled.
  152.  
  153. -------- Spider Metrics ----------------------------------------------------------------------------
  154. [--] Spider is disabled.
  155.  
  156. -------- Connect Metrics ---------------------------------------------------------------------------
  157. [--] Connect is disabled.
  158.  
  159. -------- Galera Metrics ----------------------------------------------------------------------------
  160. [--] Galera is disabled.
  161.  
  162. -------- Replication Metrics -----------------------------------------------------------------------
  163. [--] Galera Synchronous replication: NO
  164. [--] No replication slave(s) for this server.
  165. [--] This is a standalone server.
  166.  
  167. -------- Recommendations ---------------------------------------------------------------------------
  168. General recommendations:
  169. Control warning line(s) into /var/lib/mysql/animexunknown.iamhero.net.err file
  170. Control error line(s) into /var/lib/mysql/animexunknown.iamhero.net.err file
  171. MySQL started within last 24 hours - recommendations may be inaccurate
  172. Configure your accounts with ip or subnets only, then update your configuration with skip-name-resolve=1
  173. Adjust your join queries to always utilize indexes
  174. When making adjustments, make tmp_table_size/max_heap_table_size equal
  175. Reduce your SELECT DISTINCT queries which have no LIMIT clause
  176. Performance should be activated for better diagnostics
  177. Consider installing Sys schema from https://github.com/mysql/mysql-sys
  178. Read this before changing innodb_log_file_size and/or innodb_log_files_in_group: bit.ly/2wgkDvS
  179. Variables to adjust:
  180. query_cache_size (=0)
  181. query_cache_type (=0)
  182. query_cache_limit (> 1M, or use smaller result sets)
  183. join_buffer_size (> 256.0K, or always use indexes with joins)
  184. tmp_table_size (> 16M)
  185. max_heap_table_size (> 16M)
  186. performance_schema = ON enable PFS
  187. innodb_buffer_pool_size (>= 4G) if possible.
  188. innodb_log_file_size should be (=16M) 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