dandandan
Мой дом здесь!
- Регистрация
- 7 Авг 2008
- Сообщения
- 1.036
- Реакции
- 293
- Автор темы
- #11
что говорит mysqltuner.pl ? no нужно смотреть как все работает и логи,
Какие именно логи смотреть / показать.
>> MySQLTuner 1.6.0 - Major Hayden
>> Bug reports, feature requests, and downloads
>> Run with '--help' for additional options and output filtering
[--] Skipped version check for MySQLTuner script
[OK] Currently running supported MySQL version 5.5.47-MariaDB
[OK] Operating on 64-bit architecture
-------- Storage Engine Statistics -------------------------------------------
[--] Status: +ARCHIVE +Aria +BLACKHOLE +CSV +FEDERATED +InnoDB +MRG_MYISAM
[--] Data in MyISAM tables: 437M (Tables: 77)
[--] Data in InnoDB tables: 7G (Tables: 14)
[!!] Total fragmented tables: 25
-------- Security Recommendations -------------------------------------------
[OK] There is no anonymous account in all database users
[OK] All database users have passwords assigned
[!!] User 'ad@%' hasn't specific host restriction.
[!!] User 'el@%' hasn't specific host restriction.
[!!] User 'ff@%' hasn't specific host restriction.
[!!] User 'fo@%' hasn't specific host restriction.
[!!] User 'gr@%' hasn't specific host restriction.
[!!] User 'hyp@%' hasn't specific host restriction.
[!!] User 'ma@%' hasn't specific host restriction.
[!!] User 'pk@%' hasn't specific host restriction.
[!!] User 'va@%' hasn't specific host restriction.
[!!] User 'vo@%' hasn't specific host restriction.
-------- Performance Metrics -------------------------------------------------
[--] Up for: 4d 1h 51m 8s (11M q [32.328 qps], 260K conn, TX: 65B, RX: 1B)
[--] Reads / Writes: 98% / 2%
[--] Binary logging is disabled
[--] Total buffers: 2.9G global + 60.4M per thread (50 max threads)
[!!] Maximum reached memory usage: 3.6G (95.58% of installed RAM)
[!!] Maximum possible memory usage: 5.9G (154.35% of installed RAM)
[OK] Slow queries: 0% (73/11M)
[OK] Highest usage of available connections: 24% (12/50)
[OK] Aborted connections: 0.20% (525/260908)
[OK] Query cache efficiency: 23.3% (3M cached / 13M selects)
[!!] Query cache prunes per day: 15576
[OK] Sorts requiring temporary tables: 0% (505 temp sorts / 1M sorts)
[OK] Temporary tables created on disk: 1% (4K on disk / 216K total)
[OK] Thread cache hit rate: 99% (21 created / 260K connections)
[OK] Table cache hit rate: 114% (193 open / 168 opened)
[OK] Open file limit used: 21% (218/1K)
[OK] Table locks acquired immediately: 99% (11M immediate / 11M locks)
-------- MyISAM Metrics -----------------------------------------------------
[!!] Key buffer used: 20.4% (547M used / 2B cache)
[OK] Key buffer size / total MyISAM indexes: 2.5G/269.4M
[OK] Read Key buffer hit rate: 100.0% (88B cached / 33K reads)
[!!] Write Key buffer hit rate: 0.0% (39K cached / 39K writes)
-------- InnoDB Metrics -----------------------------------------------------
[--] InnoDB is enabled.
[!!] InnoDB buffer pool / data size: 128.0M/7.2G
[OK] InnoDB buffer pool instances: 1
[OK] InnoDB Used buffer: 100.00% (8191 used/ 8191 total)
[OK] InnoDB Read buffer efficiency: 99.71% (10400927972 hits/ 10430664047 total)
[!!] InnoDB Write buffer efficiency: 0.00% (0 hits/ 1 total)
[OK] InnoDB log waits: 0.00% (0 waits / 124568 writes)
-------- AriaDB Metrics -----------------------------------------------------
[--] AriaDB is disabled.
-------- Replication Metrics -------------------------------------------------
[--] No replication slave(s) for this server.
[--] This is a standalone server..
-------- Recommendations -----------------------------------------------------
General recommendations:
Run OPTIMIZE TABLE to defragment tables for better performance
Restrict Host for user@% to user@SpecificDNSorIp
Reduce your overall MySQL memory footprint for system stability
Enable the slow query log to troubleshoot bad queries
Increasing the query_cache size over 128M may reduce performance
Variables to adjust:
*** MySQL's maximum memory usage is dangerously high ***
*** Add RAM before increasing MySQL buffer variables ***
long_query_time (<= 10)
query_cache_size (> 160M) [see warning above]
innodb_buffer_pool_size (>= 7G) if possible.
>> Bug reports, feature requests, and downloads
>> Run with '--help' for additional options and output filtering
[--] Skipped version check for MySQLTuner script
[OK] Currently running supported MySQL version 5.5.47-MariaDB
[OK] Operating on 64-bit architecture
-------- Storage Engine Statistics -------------------------------------------
[--] Status: +ARCHIVE +Aria +BLACKHOLE +CSV +FEDERATED +InnoDB +MRG_MYISAM
[--] Data in MyISAM tables: 437M (Tables: 77)
[--] Data in InnoDB tables: 7G (Tables: 14)
[!!] Total fragmented tables: 25
-------- Security Recommendations -------------------------------------------
[OK] There is no anonymous account in all database users
[OK] All database users have passwords assigned
[!!] User 'ad@%' hasn't specific host restriction.
[!!] User 'el@%' hasn't specific host restriction.
[!!] User 'ff@%' hasn't specific host restriction.
[!!] User 'fo@%' hasn't specific host restriction.
[!!] User 'gr@%' hasn't specific host restriction.
[!!] User 'hyp@%' hasn't specific host restriction.
[!!] User 'ma@%' hasn't specific host restriction.
[!!] User 'pk@%' hasn't specific host restriction.
[!!] User 'va@%' hasn't specific host restriction.
[!!] User 'vo@%' hasn't specific host restriction.
-------- Performance Metrics -------------------------------------------------
[--] Up for: 4d 1h 51m 8s (11M q [32.328 qps], 260K conn, TX: 65B, RX: 1B)
[--] Reads / Writes: 98% / 2%
[--] Binary logging is disabled
[--] Total buffers: 2.9G global + 60.4M per thread (50 max threads)
[!!] Maximum reached memory usage: 3.6G (95.58% of installed RAM)
[!!] Maximum possible memory usage: 5.9G (154.35% of installed RAM)
[OK] Slow queries: 0% (73/11M)
[OK] Highest usage of available connections: 24% (12/50)
[OK] Aborted connections: 0.20% (525/260908)
[OK] Query cache efficiency: 23.3% (3M cached / 13M selects)
[!!] Query cache prunes per day: 15576
[OK] Sorts requiring temporary tables: 0% (505 temp sorts / 1M sorts)
[OK] Temporary tables created on disk: 1% (4K on disk / 216K total)
[OK] Thread cache hit rate: 99% (21 created / 260K connections)
[OK] Table cache hit rate: 114% (193 open / 168 opened)
[OK] Open file limit used: 21% (218/1K)
[OK] Table locks acquired immediately: 99% (11M immediate / 11M locks)
-------- MyISAM Metrics -----------------------------------------------------
[!!] Key buffer used: 20.4% (547M used / 2B cache)
[OK] Key buffer size / total MyISAM indexes: 2.5G/269.4M
[OK] Read Key buffer hit rate: 100.0% (88B cached / 33K reads)
[!!] Write Key buffer hit rate: 0.0% (39K cached / 39K writes)
-------- InnoDB Metrics -----------------------------------------------------
[--] InnoDB is enabled.
[!!] InnoDB buffer pool / data size: 128.0M/7.2G
[OK] InnoDB buffer pool instances: 1
[OK] InnoDB Used buffer: 100.00% (8191 used/ 8191 total)
[OK] InnoDB Read buffer efficiency: 99.71% (10400927972 hits/ 10430664047 total)
[!!] InnoDB Write buffer efficiency: 0.00% (0 hits/ 1 total)
[OK] InnoDB log waits: 0.00% (0 waits / 124568 writes)
-------- AriaDB Metrics -----------------------------------------------------
[--] AriaDB is disabled.
-------- Replication Metrics -------------------------------------------------
[--] No replication slave(s) for this server.
[--] This is a standalone server..
-------- Recommendations -----------------------------------------------------
General recommendations:
Run OPTIMIZE TABLE to defragment tables for better performance
Restrict Host for user@% to user@SpecificDNSorIp
Reduce your overall MySQL memory footprint for system stability
Enable the slow query log to troubleshoot bad queries
Increasing the query_cache size over 128M may reduce performance
Variables to adjust:
*** MySQL's maximum memory usage is dangerously high ***
*** Add RAM before increasing MySQL buffer variables ***
long_query_time (<= 10)
query_cache_size (> 160M) [see warning above]
innodb_buffer_pool_size (>= 7G) if possible.
Каждая база весит от 0,5 до 1,5 Гб