Amin Sabet
Well-known member
I know very little about MySQL and would greatly appreciate some help adjusting the settings in my.cnf.
Everything's on one server. I don't have a separate server for MySQL. The server is "bare metal", not virtualized, and has the following specs:
240 GB on-board SSD
2TB "Nearline" SAS
Intel Xeon E5-2640 v2 Processor
RAM: 32 GB 1866 MHz DDR3
Current my.cnf:
Output from Tuning-primer:
Output from mysqlmymonlite is attached (too long to post)
Everything's on one server. I don't have a separate server for MySQL. The server is "bare metal", not virtualized, and has the following specs:
240 GB on-board SSD
2TB "Nearline" SAS
Intel Xeon E5-2640 v2 Processor
RAM: 32 GB 1866 MHz DDR3
Current my.cnf:
Code:
[mysqld]
ft_min_word_len = 1
ft_stopword_file = "/dev/null"
tmpdir = "/tmp"
skip-networking
local-infile = 0
back_log = 100
symbolic-links=0
table_open_cache=8192
thread_cache_size=50
max_connections=200
innodb_buffer_pool_size=8192M
query_cache_type=1
query_cache_size=128M
query_cache_limit=8M
join_buffer_size=1M
table_definition_cache=6384
tmp_table_size=512M
max_heap_table_size=512M
innodb_thread_concurrency=0
key_buffer_size=1024M
max_allowed_packet=32M
sort_buffer_size=2M
read_buffer_size=2M
read_rnd_buffer_size=8M
myisam_sort_buffer_size=64M
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
Output from Tuning-primer:
Code:
-- MYSQL PERFORMANCE TUNING PRIMER --
- By: Matthew Montgomery -
MySQL Version 5.5.42-cll x86_64
Uptime = 1 days 9 hrs 18 min 3 sec
Avg. qps = 55
Total Questions = 6683272
Threads Connected = 2
Warning: Server has not been running for at least 48hrs.
It may not be safe to use these recommendations
To find out more information on how each of these
runtime variables effects performance visit:
http://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html
Visit http://www.mysql.com/products/enterprise/advisors.html
for info about MySQL's Enterprise Monitoring and Advisory Service
SLOW QUERIES
The slow query log is NOT enabled.
Current long_query_time = 10.000000 sec.
You have 0 out of 6683293 that take longer than 10.000000 sec. to complete
Your long_query_time seems to be fine
BINARY UPDATE LOG
The binary update log is NOT enabled.
You will not be able to do point in time recovery
See http://dev.mysql.com/doc/refman/5.5/en/point-in-time-recovery.html
WORKER THREADS
Current thread_cache_size = 50
Current threads_cached = 22
Current threads_per_sec = 0
Historic threads_per_sec = 0
Your thread_cache_size is fine
MAX CONNECTIONS
Current max_connections = 200
Current threads_connected = 2
Historic max_used_connections = 24
The number of used connections is 12% of the configured maximum.
Your max_connections variable seems to be fine.
INNODB STATUS
Current InnoDB index space = 673 M
Current InnoDB data space = 2.37 G
Current InnoDB buffer pool free = 75 %
Current innodb_buffer_pool_size = 8.00 G
Depending on how much space your innodb indexes take up it may be safe
to increase this value to up to 2 / 3 of total system memory
MEMORY USAGE
Max Memory Ever Allocated : 9.45 G
Configured Max Per-thread Buffers : 2.58 G
Configured Max Global Buffers : 9.14 G
Configured Max Memory Limit : 11.72 G
Physical Memory : 31.32 G
Max memory limit seem to be within acceptable norms
KEY BUFFER
Current MyISAM index space = 1.16 G
Current key_buffer_size = 1.00 G
Key cache miss rate is 1 : 5021
Key buffer free ratio = 69 %
Your key_buffer_size seems to be fine
QUERY CACHE
Query cache is enabled
Current query_cache_size = 128 M
Current query_cache_used = 95 M
Current query_cache_limit = 8 M
Current Query cache Memory fill ratio = 74.68 %
Current query_cache_min_res_unit = 4 K
MySQL won't cache query results that are larger than query_cache_limit in size
SORT OPERATIONS
Current sort_buffer_size = 2 M
Current read_rnd_buffer_size = 8 M
Sort buffer seems to be fine
JOINS
Current join_buffer_size = 1.00 M
You have had 0 queries where a join could not use an index properly
Your joins seem to be using indexes properly
OPEN FILES LIMIT
Current open_files_limit = 16594 files
The open_files_limit should typically be set to at least 2x-3x
that of table_cache if you have heavy MyISAM usage.
Your open_files_limit value seems to be fine
TABLE CACHE
Current table_open_cache = 8192 tables
Current table_definition_cache = 6384 tables
You have a total of 2015 tables
You have 2710 open tables.
The table_cache value seems to be fine
TEMP TABLES
Current max_heap_table_size = 512 M
Current tmp_table_size = 512 M
Of 100697 temp tables, 20% were created on disk
Created disk tmp tables ratio seems fine
TABLE SCANS
Current read_buffer_size = 2 M
Current table scan ratio = 96 : 1
read_buffer_size seems to be fine
TABLE LOCKING
Current Lock Wait ratio = 1 : 6503
Your table locking seems to be fine
Output from mysqlmymonlite is attached (too long to post)