I have a problem with the configuration of my server.
I use a dedicated server for mysql:
CPU: 2 x Quad Core Xeon Nehalem 16 core
MEMORY: 16GB RAM
HDD1: 64GB SLC SSD
HDD2: 64GB SLC SSD
RAID disks for # 1-2: RAID-0 (Stripe)
OS: CentOS 64-bit
All databses that we use are Innodb
this is my.cnf file:
port = 3306
socket = /var/lib/mysql/mysql.sock
back_log = 50
local-infile=0
max_connections = 10000
max_connect_errors = 10
table_open_cache = 2048
max_allowed_packet = 16M
binlog_cache_size = 1M
log-bin-trust-function-creators = 1
max_heap_table_size = 64M
read_buffer_size = 2M
read_rnd_buffer_size = 16M
sort_buffer_size = 8M
join_buffer_size = 8M
thread_cache_size = 8
thread_concurrency = 32
query_cache_size = 64M
query_cache_limit = 2M
ft_min_word_len = 4
default-storage-engine = InnoDB
thread_stack = 192K
transaction_isolation = REPEATABLE-READ
tmp_table_size = 64M
log-bin=mysql-bin
binlog_format=mixed
slow_query_log
long_query_time = 2
server-id = 1
key_buffer_size = 32M
bulk_insert_buffer_size = 64M
myisam_sort_buffer_size = 128M
myisam_max_sort_file_size = 10G
myisam_repair_threads = 1
myisam_recover
innodb_additional_mem_pool_size = 32M
innodb_buffer_pool_size = 12G
innodb_change_buffering=all
innodb_file_per_table
innodb_write_io_threads = 64
innodb_read_io_threads = 64
innodb_thread_concurrency = 32
innodb_flush_method=O_DIRECT
innodb_flush_log_at_trx_commit = 1
innodb_io_capacity=2000
innodb_log_files_in_group = 3
innodb_max_dirty_pages_pct = 90
innodb_lock_wait_timeout = 100
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_buffer_size = 16M
innodb_log_file_size = 256M
now I work with this value :innodb_data_file_path = ibdata1:10M:autoextend
when I try to change innodb_data_file_path from = ibdata1:10M:autoextend to = innodb_data_file_path = ibdata1:50M;ibdata2:50M:autoextend and
I try to Set the log file size to about 25% of the buffer pool size.
innodb_log_file_size = 2048M
The server don't start.
In the log I see:
110917 0:59:56 InnoDB: Starting shutdown...
110917 0:59:59 InnoDB: Shutdown completed; log sequence number 1892374235
110917 0:59:59 [Note] /usr/sbin/mysqld: Shutdown complete
110917 00:59:59 mysqld_safe mysqld from pid file /var/lib/mysql/mydb.pid ended
110917 00:59:59 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
110917 0:59:59 [Note] Plugin 'FEDERATED' is disabled.
110917 0:59:59 InnoDB: The InnoDB memory heap is disabled
110917 0:59:59 InnoDB: Mutexes and rw_locks use GCC atomic builtins
110917 0:59:59 InnoDB: Compressed tables use zlib 1.2.3
110917 0:59:59 InnoDB: Using Linux native AIO
110917 1:00:00 InnoDB: Initializing buffer pool, size = 12.0G
110917 1:00:00 InnoDB: Completed initialization of buffer pool
110917 1:00:00 InnoDB: Error: combined size of log files must be < 4 GB
110917 1:00:00 [ERROR] Plugin 'InnoDB' init function returned error.
110917 1:00:00 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
110917 1:00:00 [ERROR] Unknown/unsupported storage engine: InnoDB
110917 1:00:00 [ERROR] Aborting
Can you please suggest a right setting for my server (I look for max performace) and the correct procedure to change it.
Thanks in advanced
Mike
I use a dedicated server for mysql:
CPU: 2 x Quad Core Xeon Nehalem 16 core
MEMORY: 16GB RAM
HDD1: 64GB SLC SSD
HDD2: 64GB SLC SSD
RAID disks for # 1-2: RAID-0 (Stripe)
OS: CentOS 64-bit
All databses that we use are Innodb
this is my.cnf file:
port = 3306
socket = /var/lib/mysql/mysql.sock
back_log = 50
local-infile=0
max_connections = 10000
max_connect_errors = 10
table_open_cache = 2048
max_allowed_packet = 16M
binlog_cache_size = 1M
log-bin-trust-function-creators = 1
max_heap_table_size = 64M
read_buffer_size = 2M
read_rnd_buffer_size = 16M
sort_buffer_size = 8M
join_buffer_size = 8M
thread_cache_size = 8
thread_concurrency = 32
query_cache_size = 64M
query_cache_limit = 2M
ft_min_word_len = 4
default-storage-engine = InnoDB
thread_stack = 192K
transaction_isolation = REPEATABLE-READ
tmp_table_size = 64M
log-bin=mysql-bin
binlog_format=mixed
slow_query_log
long_query_time = 2
server-id = 1
key_buffer_size = 32M
bulk_insert_buffer_size = 64M
myisam_sort_buffer_size = 128M
myisam_max_sort_file_size = 10G
myisam_repair_threads = 1
myisam_recover
innodb_additional_mem_pool_size = 32M
innodb_buffer_pool_size = 12G
innodb_change_buffering=all
innodb_file_per_table
innodb_write_io_threads = 64
innodb_read_io_threads = 64
innodb_thread_concurrency = 32
innodb_flush_method=O_DIRECT
innodb_flush_log_at_trx_commit = 1
innodb_io_capacity=2000
innodb_log_files_in_group = 3
innodb_max_dirty_pages_pct = 90
innodb_lock_wait_timeout = 100
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_buffer_size = 16M
innodb_log_file_size = 256M
now I work with this value :innodb_data_file_path = ibdata1:10M:autoextend
when I try to change innodb_data_file_path from = ibdata1:10M:autoextend to = innodb_data_file_path = ibdata1:50M;ibdata2:50M:autoextend and
I try to Set the log file size to about 25% of the buffer pool size.
innodb_log_file_size = 2048M
The server don't start.
In the log I see:
110917 0:59:56 InnoDB: Starting shutdown...
110917 0:59:59 InnoDB: Shutdown completed; log sequence number 1892374235
110917 0:59:59 [Note] /usr/sbin/mysqld: Shutdown complete
110917 00:59:59 mysqld_safe mysqld from pid file /var/lib/mysql/mydb.pid ended
110917 00:59:59 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
110917 0:59:59 [Note] Plugin 'FEDERATED' is disabled.
110917 0:59:59 InnoDB: The InnoDB memory heap is disabled
110917 0:59:59 InnoDB: Mutexes and rw_locks use GCC atomic builtins
110917 0:59:59 InnoDB: Compressed tables use zlib 1.2.3
110917 0:59:59 InnoDB: Using Linux native AIO
110917 1:00:00 InnoDB: Initializing buffer pool, size = 12.0G
110917 1:00:00 InnoDB: Completed initialization of buffer pool
110917 1:00:00 InnoDB: Error: combined size of log files must be < 4 GB
110917 1:00:00 [ERROR] Plugin 'InnoDB' init function returned error.
110917 1:00:00 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
110917 1:00:00 [ERROR] Unknown/unsupported storage engine: InnoDB
110917 1:00:00 [ERROR] Aborting
Can you please suggest a right setting for my server (I look for max performace) and the correct procedure to change it.
Thanks in advanced
Mike