Hello,
I've completed the mysqltuner script and here are the results:
And here is the content of my.cnf
I've attempted to read up on these values and have read a lot of posts on here with a similar question, but I'm still uncertain of the best settings to use. I would appreciate someone with more knowledge giving their input.
The server is a E3-1240 with 24GB of RAM. The largest database is 900MB.
Regards,
Piers
I've completed the mysqltuner script and here are the results:
Code:
-------- General Statistics --------------------------------------------------
[--] Skipped version check for MySQLTuner script
[OK] Currently running supported MySQL version 5.5.31-cll
[OK] Operating on 64-bit architecture
-------- Storage Engine Statistics -------------------------------------------
[--] Status: +Archive -BDB -Federated +InnoDB -ISAM -NDBCluster
[--] Data in MyISAM tables: 307M (Tables: 993)
[--] Data in InnoDB tables: 885M (Tables: 1685)
[--] Data in PERFORMANCE_SCHEMA tables: 0B (Tables: 17)
[--] Data in MEMORY tables: 993K (Tables: 24)
[!!] Total fragmented tables: 137
-------- Performance Metrics -------------------------------------------------
[--] Up for: 3d 5h 12m 20s (185M q [665.911 qps], 995K conn, TX: 437B, RX: 24B)
[--] Reads / Writes: 88% / 12%
[--] Total buffers: 2.0G global + 2.8M per thread (5000 max threads)
[OK] Maximum possible memory usage: 15.5G (66% of installed RAM)
[OK] Slow queries: 0% (2K/185M)
[OK] Highest usage of available connections: 2% (106/5000)
[OK] Key buffer size / total MyISAM indexes: 8.0M/77.1M
[OK] Key buffer hit rate: 99.9% (1B cached / 2M reads)
[!!] Query cache is disabled
[OK] Sorts requiring temporary tables: 0% (57 temp sorts / 1M sorts)
[!!] Joins performed without indexes: 46473
[!!] Temporary tables created on disk: 43% (206K on disk / 474K total)
[OK] Thread cache hit rate: 99% (106 created / 995K connections)
[!!] Table cache hit rate: 0% (400 open / 96K opened)
[OK] Open file limit used: 0% (92/25K)
[OK] Table locks acquired immediately: 99% (185M immediate / 185M locks)
[OK] InnoDB data size / buffer pool: 885.2M/2.0G
-------- Recommendations -----------------------------------------------------
General recommendations:
Run OPTIMIZE TABLE to defragment tables for better performance
Enable the slow query log to troubleshoot bad queries
Adjust your join queries to always utilize indexes
When making adjustments, make tmp_table_size/max_heap_table_size equal
Reduce your SELECT DISTINCT queries without LIMIT clauses
Increase table_cache gradually to avoid file descriptor limits
Variables to adjust:
query_cache_size (>= 8M)
join_buffer_size (> 128.0K, or always use indexes with joins)
tmp_table_size (> 16M)
max_heap_table_size (> 16M)
table_cache (> 400)
Code:
local-infile=0
innodb_file_per_table=1
default-storage-engine=MyISAM
open_files_limit=12424
max_user_connections=3000
max_connections=5000
thread_cache_size=1000
innodb_buffer_pool_size=2048M
The server is a E3-1240 with 24GB of RAM. The largest database is 900MB.
Regards,
Piers