LINUX.ORG.RU
ФорумAdmin

Помогите подтюнить mariadb после mysqltuner.pl

 ,


0

1

Привет. Вот разультаты работы скрипта:

 >>  MySQLTuner 1.6.1 - Major Hayden <major@mhtx.net>
 >>  Bug reports, feature requests, and downloads at http://mysqltuner.com/
 >>  Run with '--help' for additional options and output filtering
[--] Skipped version check for MySQLTuner script
[OK] Currently running supported MySQL version 5.5.44-MariaDB
[OK] Operating on 64-bit architecture

-------- Storage Engine Statistics -------------------------------------------
[--] Status: +ARCHIVE +Aria +BLACKHOLE +CSV +FEDERATED -InnoDB +MRG_MYISAM
[--] Data in MyISAM tables: 17M (Tables: 3)
[!!] Total fragmented tables: 1

-------- Security Recommendations  -------------------------------------------
[OK] There are no anonymous accounts for any database users
[OK] All database users have passwords assigned
[!!] User 'mysqluser@%' hasn't specific host restriction.
[!!] There is no basic password file list!

-------- Performance Metrics -------------------------------------------------
[--] Up for: 9h 9m 10s (255K q [7.766 qps], 1K conn, TX: 203M, RX: 19M)
[--] Reads / Writes: 92% / 8%
[--] Binary logging is disabled
[--] Total buffers: 272.0M global + 2.8M per thread (151 max threads)
[OK] Maximum reached memory usage: 564.0M (4.86% of installed RAM)
[OK] Maximum possible memory usage: 692.0M (5.96% of installed RAM)
[OK] Slow queries: 0% (0/255K)
[OK] Highest usage of available connections: 69% (105/151)
[!!] Aborted connections: 85.24%  (1097/1287)
[!!] Query cache is disabled
[!!] Temporary tables created on disk: 97% (90 on disk / 92 total)
[!!] Thread cache is disabled
[OK] Table cache hit rate: 580% (29 open / 5 opened)
[OK] Open file limit used: 2% (26/1K)
[OK] Table locks acquired immediately: 99% (254K immediate / 255K locks)

-------- MyISAM Metrics -----------------------------------------------------
[!!] Key buffer used: 18.4% (24M used / 134M cache)
[OK] Key buffer size / total MyISAM indexes: 128.0M/4.3M
[OK] Read Key buffer hit rate: 100.0% (770K cached / 1 reads)
[!!] Write Key buffer hit rate: 0.0% (9K cached / 9K writes)

-------- InnoDB Metrics -----------------------------------------------------
[--] InnoDB is disabled.
[!!] InnoDB Storage engine is disabled. InnoDB is the default storage engine

-------- 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
    MySQL started within last 24 hours - recommendations may be inaccurate
    Enable the slow query log to troubleshoot bad queries
    Reduce or eliminate unclosed connections and network issues
    When making adjustments, make tmp_table_size/max_heap_table_size equal
    Reduce your SELECT DISTINCT queries which have no LIMIT clause
    Set thread_cache_size to 4 as a starting value
Variables to adjust:
    query_cache_size (>= 8M)
    tmp_table_size (> 16M)
    max_heap_table_size (> 16M)
    thread_cache_size (start at 4)

Вот что добавлял в my.cnf при установке сервера

[mysqld]
skip-innodb
default-storage-engine=MyISAM

Сервер AMD FX6300 (6 ядер), 12Гб ОЗУ


после mysqltuner.pl

сам он тебе ничего тюнить не будет, он ПОКАЗЫВАЕТ в каком месте крутить. См «Variables to adjust».

Поменял - ребутнул - оставил поработать для набора статистики. Повторять пока не исчезнут варнинги.

anonymous
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.