Advertisement
Guest User

Untitled

a guest
Aug 9th, 2017
575
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.72 KB | None | 0 0
  1. >> MySQLTuner 1.7.3 - 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. [OK] Logged in using credentials from debian maintenance account.
  7. [OK] Currently running supported MySQL version 10.2.7-MariaDB-10.2.7+maria~jessie-log
  8. [OK] Operating on 64-bit architecture
  9.  
  10. -------- Log file Recommendations ------------------------------------------------------------------
  11. [--] Log file: /var/lib/mysql/mysql-error.log(9M)
  12. [OK] Log file /var/lib/mysql/mysql-error.log exists
  13. [OK] Log file /var/lib/mysql/mysql-error.log is readable.
  14. [OK] Log file /var/lib/mysql/mysql-error.log is not empty
  15. [OK] Log file /var/lib/mysql/mysql-error.log is smaller than 32 Mb
  16. [!!] /var/lib/mysql/mysql-error.log contains 9145 warning(s).
  17. [!!] /var/lib/mysql/mysql-error.log contains 1241 error(s).
  18. [--] 21 start(s) detected in /var/lib/mysql/mysql-error.log
  19. [--] 1) 2017-08-09 11:30:23 140359067707136 [Note] WSREP: Synchronized with group, ready for connections
  20. [--] 2) 2017-08-09 11:29:14 140358959879936 [Note] WSREP: Synchronized with group, ready for connections
  21. [--] 3) 2017-08-09 11:29:14 140544984819584 [Note] /usr/sbin/mysqld: ready for connections.
  22. [--] 4) 2017-08-09 10:54:52 140365505582848 [Note] WSREP: Synchronized with group, ready for connections
  23. [--] 5) 2017-08-09 10:51:38 140185952925440 [Note] WSREP: Synchronized with group, ready for connections
  24. [--] 6) 2017-08-09 10:51:36 140371969177472 [Note] /usr/sbin/mysqld: ready for connections.
  25. [--] 7) 2017-08-09 10:36:55 140384880781056 [Note] WSREP: Synchronized with group, ready for connections
  26. [--] 8) 2017-08-09 10:36:53 140571566520192 [Note] /usr/sbin/mysqld: ready for connections.
  27. [--] 9) 2017-08-09 10:35:10 139830927935232 [Note] WSREP: Synchronized with group, ready for connections
  28. [--] 10) 2017-08-09 10:32:17 139830932784896 [Note] WSREP: Synchronized with group, ready for connections
  29. [--] 6 shutdown(s) detected in /var/lib/mysql/mysql-error.log
  30. [--] 1) 2017-08-09 11:28:39 140185921402624 [Note] /usr/sbin/mysqld: Shutdown complete
  31. [--] 2) 2017-08-09 10:51:01 140384866232064 [Note] /usr/sbin/mysqld: Shutdown complete
  32. [--] 3) 2017-08-09 10:36:16 139830178424576 [Note] /usr/sbin/mysqld: Shutdown complete
  33. [--] 4) 2017-08-09 10:26:14 140206811657984 [Note] /usr/sbin/mysqld: Shutdown complete
  34. [--] 5) 2017-08-08 13:47:29 139746829362944 [Note] /usr/sbin/mysqld: Shutdown complete
  35. [--] 6) 2017-08-08 13:33:22 140406307497728 [Note] /usr/sbin/mysqld: Shutdown complete
  36.  
  37. -------- Storage Engine Statistics -----------------------------------------------------------------
  38. [--] Status: +Aria +CSV +InnoDB +MEMORY +MRG_MyISAM +MyISAM +PERFORMANCE_SCHEMA +SEQUENCE 
  39. [--] Data in MEMORY tables: 0B (Tables: 1)
  40. [--] Data in InnoDB tables: 52G (Tables: 146)
  41. [OK] Total fragmented tables: 0
  42.  
  43. -------- Security Recommendations ------------------------------------------------------------------
  44. [OK] There are no anonymous accounts for any database users
  45. [OK] All database users have passwords assigned
  46. [!!] User 'a2test2@%' hasn't specific host restriction.
  47. [!!] User 'a2test@%' hasn't specific host restriction.
  48. [!!] There is no basic password file list!
  49.  
  50. -------- CVE Security Recommendations --------------------------------------------------------------
  51. [--] Skipped due to --cvefile option undefined
  52.  
  53. -------- Performance Metrics -----------------------------------------------------------------------
  54. [--] Up for: 52m 53s (3M q [1K qps], 1K conn, TX: 41G, RX: 332M)
  55. [--] Reads / Writes: 95% / 5%
  56. [--] Binary logging is enabled (GTID MODE: OFF)
  57. [--] Physical Memory : 189.3G
  58. [--] Max MySQL memory : 174.2G
  59. [--] Other process memory: 159.5M
  60. [--] Total buffers: 162.2G global + 13.4M per thread (500 max threads)
  61. [--] P_S Max memory usage: 463M
  62. [--] Galera GCache Max memory usage: 5G
  63. [!!] Maximum reached memory usage: 168.2G (88.85% of installed RAM)
  64. [!!] Maximum possible memory usage: 174.2G (92.02% of installed RAM)
  65. [OK] Overall possible memory usage with other process is compatible with memory available
  66. [OK] Slow queries: 0% (4K/3M)
  67. [OK] Highest usage of available connections: 8% (42/500)
  68. [!!] Aborted connections: 40.43% (729/1803)
  69. [OK] Query cache is disabled by default due to mutex contention on multiprocessor machines.
  70. [OK] Sorts requiring temporary tables: 0% (0 temp sorts / 40K sorts)
  71. [OK] No joins without indexes
  72. [OK] Temporary tables created on disk: 8% (3K on disk / 42K total)
  73. [!!] Thread cache hit rate: 38% (1K created / 1K connections)
  74. [OK] Table cache hit rate: 98% (441 open / 447 opened)
  75. [OK] Open file limit used: 0% (61/16K)
  76. [OK] Table locks acquired immediately: 100% (52 immediate / 52 locks)
  77. [OK] Binlog cache memory access: 100.00% (111289 Memory / 111289 Total)
  78.  
  79. -------- Performance schema ------------------------------------------------------------------------
  80. [--] Memory used by P_S: 463.3M
  81. [--] Sys schema isn't installed.
  82.  
  83. -------- ThreadPool Metrics ------------------------------------------------------------------------
  84. [--] ThreadPool stat is enabled.
  85. [--] Thread Pool Size: 32 thread(s).
  86. [--] Using default value is good enough for your version (10.2.7-MariaDB-10.2.7+maria~jessie-log)
  87.  
  88. -------- MyISAM Metrics ----------------------------------------------------------------------------
  89. [!!] Key buffer used: 18.3% (6M used / 33M cache)
  90. [OK] Key buffer size / total MyISAM indexes: 32.0M/129.0K
  91. [!!] Read Key buffer hit rate: 81.0% (42 cached / 8 reads)
  92.  
  93. -------- InnoDB Metrics ----------------------------------------------------------------------------
  94. [--] InnoDB is enabled.
  95. [--] InnoDB Thread Concurrency: 0
  96. [OK] InnoDB File per table is activated
  97. [OK] InnoDB buffer pool / data size: 160.0G/52.5G
  98. [!!] Ratio InnoDB log file size / InnoDB Buffer pool size (0.3125 %): 256.0M * 2/160.0G should be equal 25%
  99. [!!] InnoDB buffer pool instances: 2
  100. [--] Number of InnoDB Buffer Pool Chunk : 1280 for 2 Buffer Pool Instance(s)
  101. [OK] Innodb_buffer_pool_size aligned with Innodb_buffer_pool_chunk_size & Innodb_buffer_pool_instances
  102. [OK] InnoDB Read buffer efficiency: 99.96% (295670319 hits/ 295799243 total)
  103. [OK] InnoDB Write log efficiency: 98.19% (192428 hits/ 195977 total)
  104. [OK] InnoDB log waits: 0.00% (0 waits / 3549 writes)
  105.  
  106. -------- AriaDB Metrics ----------------------------------------------------------------------------
  107. [--] AriaDB is enabled.
  108. [OK] Aria pagecache size / total Aria indexes: 128.0M/1B
  109. [OK] Aria pagecache hit rate: 98.6% (273K cached / 3K reads)
  110.  
  111. -------- TokuDB Metrics ----------------------------------------------------------------------------
  112. [--] TokuDB is disabled.
  113.  
  114. -------- XtraDB Metrics ----------------------------------------------------------------------------
  115. [--] XtraDB is disabled.
  116.  
  117. -------- RocksDB Metrics ---------------------------------------------------------------------------
  118. [--] RocksDB is disabled.
  119.  
  120. -------- Spider Metrics ----------------------------------------------------------------------------
  121. [--] Spider is disabled.
  122.  
  123. -------- Connect Metrics ---------------------------------------------------------------------------
  124. [--] Connect is disabled.
  125.  
  126. -------- Galera Metrics ----------------------------------------------------------------------------
  127. [--] Galera is enabled.
  128. [--] GCache is using 0B
  129. [OK] wsrep_slave_threads is equal to 2, 3 or 4 times number of CPU(s)
  130. [!!] gcs.limit should be equal to 5 * wsrep_slave_threads
  131. [--] wsrep parallel slave can cause frequent inconsistency crash.
  132. [!!] gcs.fc_limit should be equal to 5 * wsrep_slave_threads
  133. [!!] gcs.fc_factor should be equal to 0.8
  134. [OK] Flow control fraction seems to be OK (wsrep_flow_control_paused<=0.02)
  135. [!!] Following table(s) don't have primary key:
  136. [!!] a2billing.card_repair
  137. [!!] a2billing.cc_version
  138. [!!] a2billing.qiwi_customers
  139. [!!] Following table(s) are not InnoDB table:
  140. [!!] a2billing.cc_exten_state
  141. [OK] Binlog format is in ROW mode.
  142. [OK] InnoDB flush log at each commit is disabled for Galera.
  143. [--] Read consistency mode :OFF
  144. [OK] Galera WsREP is enabled.
  145. [OK] Galera Cluster address is defined: gcomm://172.31.254.55,172.20.71.224
  146. [--] There are 2 nodes in wsrep_cluster_address
  147. [OK] There are 3 nodes in wsrep_cluster_size.
  148. [OK] All cluster nodes detected.
  149. [OK] Galera Cluster name is defined: galera-cluster
  150. [OK] Galera Node name is defined: galera-node1
  151. [!!] Galera Notify command is not defined.
  152. [OK] SST Method is based on xtrabackup.
  153. [OK] TOI is default mode for upgrade.
  154. [--] Max WsRep message : 2.0G
  155. [OK] Node is connected
  156. [OK] Node is ready
  157. [--] Cluster status :Primary
  158. [OK] Galera cluster is consistent and ready for operations
  159. [OK] Node and whole cluster at the same level: ac061580-7921-11e7-9ec5-9ad23d7fc3ea
  160. [OK] Node is synced with whole cluster.
  161. [OK] There is no certification failures detected.
  162.  
  163. -------- Replication Metrics -----------------------------------------------------------------------
  164. [--] Galera Synchronous replication: YES
  165. [--] No replication slave(s) for this server.
  166. [--] This is a standalone server.
  167.  
  168. -------- Recommendations ---------------------------------------------------------------------------
  169. General recommendations:
  170. Control warning line(s) into /var/lib/mysql/mysql-error.log file
  171. Control error line(s) into /var/lib/mysql/mysql-error.log file
  172. Restrict Host for user@% to user@SpecificDNSorIp
  173. MySQL started within last 24 hours - recommendations may be inaccurate
  174. Reduce your overall MySQL memory footprint for system stability
  175. Reduce or eliminate unclosed connections and network issues
  176. Consider installing Sys schema from https://github.com/mysql/mysql-sys
  177. Ensure that all table(s) are InnoDB tables for Galera replication
  178. Variables to adjust:
  179. *** MySQL's maximum memory usage is dangerously high ***
  180. *** Add RAM before increasing MySQL buffer variables ***
  181. thread_cache_size (> 128)
  182. innodb_log_file_size should be (=20G) if possible, so InnoDB total log files size equals to 25% of buffer pool size.
  183. innodb_buffer_pool_instances(=64)
  184. gcs.limit= wsrep_slave_threads * 5
  185. Set wsrep_slave_threads to 1 in case of HA_ERR_FOUND_DUPP_KEY crash on slave
  186. gcs.fc_limit= wsrep_slave_threads * 5
  187. gcs.fc_factor=0.8
  188. set up parameter wsrep_notify_cmd to be notify
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement