Guest User

Untitled

a guest
Aug 16th, 2021
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.11 KB | None | 0 0
  1. >> MySQLTuner 1.7.13 - 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 passed on the command line
  7. [!!] Currently running unsupported MySQL version 8.0.26-0ubuntu0.20.04.2
  8. [OK] Operating on 64-bit architecture
  9.  
  10. -------- Log file Recommendations ------------------------------------------------------------------
  11. [--] Log file: /var/log/mysql/error.log(17K)
  12. [OK] Log file /var/log/mysql/error.log exists
  13. [OK] Log file /var/log/mysql/error.log is readable.
  14. [OK] Log file /var/log/mysql/error.log is not empty
  15. [OK] Log file /var/log/mysql/error.log is smaller than 32 Mb
  16. [!!] /var/log/mysql/error.log contains 81 warning(s).
  17. [OK] /var/log/mysql/error.log doesn't contain any error.
  18. [--] 8 start(s) detected in /var/log/mysql/error.log
  19. [--] 1) 2021-08-16T04:45:55.610703Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.26-0ubuntu0.20.04.2' socket: '/var/run/mysqld/mysqld.sock' port: 3306 (Ubuntu).
  20. [--] 2) 2021-08-16T04:45:55.610357Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
  21. [--] 3) 2021-08-16T04:39:05.922038Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.26-0ubuntu0.20.04.2' socket: '/var/run/mysqld/mysqld.sock' port: 3306 (Ubuntu).
  22. [--] 4) 2021-08-16T04:39:05.921925Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
  23. [--] 5) 2021-08-16T02:41:18.976888Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.26-0ubuntu0.20.04.2' socket: '/var/run/mysqld/mysqld.sock' port: 3306 (Ubuntu).
  24. [--] 6) 2021-08-16T02:41:18.976818Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
  25. [--] 7) 2021-08-16T00:02:04.489409Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.26-0ubuntu0.20.04.2' socket: '/var/run/mysqld/mysqld.sock' port: 3306 (Ubuntu).
  26. [--] 8) 2021-08-16T00:02:04.489354Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
  27. [--] 3 shutdown(s) detected in /var/log/mysql/error.log
  28. [--] 1) 2021-08-16T04:45:02.862785Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.26-0ubuntu0.20.04.2) (Ubuntu).
  29. [--] 2) 2021-08-16T04:39:01.094194Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.26-0ubuntu0.20.04.2) (Ubuntu).
  30. [--] 3) 2021-08-16T02:38:29.780742Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.26-0ubuntu0.20.04.2) (Ubuntu).
  31.  
  32. -------- Storage Engine Statistics -----------------------------------------------------------------
  33. [--] Status: +ARCHIVE +BLACKHOLE +CSV -FEDERATED +InnoDB +MEMORY +MRG_MYISAM +MyISAM +PERFORMANCE_SCHEMA
  34. [--] Data in MEMORY tables: 245.0K (Tables: 2)
  35. [--] Data in InnoDB tables: 14.3G (Tables: 434)
  36. [OK] Total fragmented tables: 0
  37.  
  38. -------- Analysis Performance Metrics --------------------------------------------------------------
  39. [--] innodb_stats_on_metadata: OFF
  40. [OK] No stat updates during querying INFORMATION_SCHEMA.
  41.  
  42. -------- Security Recommendations ------------------------------------------------------------------
  43. [--] Skipped due to unsupported feature for MySQL 8
  44.  
  45. -------- CVE Security Recommendations --------------------------------------------------------------
  46. [OK] NO SECURITY CVE FOUND FOR YOUR VERSION
  47.  
  48. -------- Performance Metrics -----------------------------------------------------------------------
  49. [--] Up for: 1h 31m 47s (545K q [99.064 qps], 36K conn, TX: 3G, RX: 79M)
  50. [--] Reads / Writes: 98% / 2%
  51. [--] Binary logging is enabled (GTID MODE: OFF)
  52. [--] Physical Memory : 3.8G
  53. [--] Max MySQL memory : 2.4G
  54. [--] Other process memory: 94.4M
  55. [--] Total buffers: 2.0G global + 3.4M per thread (100 max threads)
  56. [--] P_S Max memory usage: 0B
  57. [--] Galera GCache Max memory usage: 0B
  58. [OK] Maximum reached memory usage: 2.3G (59.44% of installed RAM)
  59. [OK] Maximum possible memory usage: 2.4G (61.88% of installed RAM)
  60. [OK] Overall possible memory usage with other process is compatible with memory available
  61. [OK] Slow queries: 0% (62/545K)
  62. [OK] Highest usage of available connections: 72% (72/100)
  63. [OK] Aborted connections: 0.09% (33/36053)
  64. [--] Query cache have been removed in MySQL 8
  65. [OK] Sorts requiring temporary tables: 0% (60 temp sorts / 86K sorts)
  66. [!!] Joins performed without indexes: 1729
  67. [OK] Temporary tables created on disk: 0% (0 on disk / 15K total)
  68. [OK] Thread cache hit rate: 99% (72 created / 36K connections)
  69. [OK] Table cache hit rate: 96% (3K open / 3K opened)
  70. [OK] Open file limit used: 0% (3/40K)
  71. [OK] Table locks acquired immediately: 98% (2K immediate / 2K locks)
  72. [OK] Binlog cache memory access: 97.45% (6543 Memory / 6714 Total)
  73.  
  74. -------- Performance schema ------------------------------------------------------------------------
  75. [--] Performance schema is disabled.
  76. [--] Memory used by P_S: 0B
  77. [--] Sys schema is installed.
  78.  
  79. -------- ThreadPool Metrics ------------------------------------------------------------------------
  80. [--] ThreadPool stat is disabled.
  81.  
  82. -------- MyISAM Metrics ----------------------------------------------------------------------------
  83. [!!] Key buffer used: 1.4% (117K used / 8M cache)
  84. [!!] Cannot calculate MyISAM index size - re-run script as root user
  85.  
  86. -------- InnoDB Metrics ----------------------------------------------------------------------------
  87. [--] InnoDB is enabled.
  88. [--] InnoDB Thread Concurrency: 0
  89. [OK] InnoDB File per table is activated
  90. [!!] InnoDB buffer pool / data size: 2.0G/14.3G
  91. [!!] Ratio InnoDB log file size / InnoDB Buffer pool size (11.71875 %): 120.0M * 2/2.0G should be equal 25%
  92. [!!] InnoDB buffer pool instances: 8
  93. [--] Number of InnoDB Buffer Pool Chunk : 16 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.53% (68749176 hits/ 69070802 total)
  96. [!!] InnoDB Write Log efficiency: 86.24% (208872 hits/ 242201 total)
  97. [OK] InnoDB log waits: 0.00% (0 waits / 33329 writes)
  98.  
  99. -------- AriaDB Metrics ----------------------------------------------------------------------------
  100. [--] AriaDB is disabled.
  101.  
  102. -------- TokuDB Metrics ----------------------------------------------------------------------------
  103. [--] TokuDB is disabled.
  104.  
  105. -------- XtraDB Metrics ----------------------------------------------------------------------------
  106. [--] XtraDB is disabled.
  107.  
  108. -------- Galera Metrics ----------------------------------------------------------------------------
  109. [--] Galera is disabled.
  110.  
  111. -------- Replication Metrics -----------------------------------------------------------------------
  112. [--] Galera Synchronous replication: NO
  113. [--] No replication slave(s) for this server.
  114. [--] Binlog format: ROW
  115. [--] XA support enabled: ON
  116. [--] Semi synchronous replication Master: Not Activated
  117. [--] Semi synchronous replication Slave: Not Activated
  118. [--] This is a standalone server
  119.  
  120. -------- Recommendations ---------------------------------------------------------------------------
  121. General recommendations:
  122. Control warning line(s) into /var/log/mysql/error.log file
  123. MySQL was started within the last 24 hours - recommendations may be inaccurate
  124. Adjust your join queries to always utilize indexes
  125. Performance schema should be activated for better diagnostics
  126. Before changing innodb_log_file_size and/or innodb_log_files_in_group read this: https://bit.ly/2TcGgtU
  127. Variables to adjust:
  128. join_buffer_size (> 1.0M, or always use indexes with JOINs)
  129. performance_schema = ON enable PFS
  130. innodb_buffer_pool_size (>= 14.3G) if possible.
  131. innodb_log_file_size should be (=256M) if possible, so InnoDB total log files size equals to 25% of buffer pool size.
  132. innodb_buffer_pool_instances(=2)
  133.  
Add Comment
Please, Sign In to add comment