Global Configuraiton Level:
InnoDB
System Level:
1. Disable DNS Hostname Lookup
3. RAID 10 is must for high I/O performance.
4. ResierFS is recomended filesystem by most of the blog posts but xfs is doing good for us over RAID 10.
Architectural Level:
1. Use VARCHAR datatype instead of CHAR.
2. AUTO_INCREMENT should be BIGINT if there are Million Row insert/delete.
- thread_cache_size
Change if you do a lot of new connections. - table_cache
Change if you have many tables or simultaneous connections - delay_key_write
Set if you need to buffer all key writes - max_heap_table_size
Used with GROUP BY - sort_buffer
Used with ORDER BY and GROUP BY - query_cache_type
Set this ON if you are repeating the sql queries default OFF - query_cache_size
Set this to any perticuler value >= query_cache_limit. To disabled query_cache_size set the value to "0".
- key_buffer_size
Change if you have enough RAM to store available MyISAM table Index - myisam_sort_buffer_size
Useful when Repairing tables. - myisam_use_mmap
Use memory mapping for reading and writing MyISAM tables.
InnoDB
- innodb_buffer_pool_size
Change if you have enough RAM to store available InnoDB table Index. - innodb_support_xa
Turn off if you don't need it for safe binary logging or replication - innodb_doublewrite
If enable then 5-10% performance loss due to use of doublewrite - innodb_lock_wait_timeout
To remove the deadlock process after certain timeout value. - innodb_thread_concurrency
A recommended value is 2 times the number of CPUs plus the number of disks. - innodb_flush_method
On some systems where InnoDB data and log files are located on a SAN, it has been found that setting innodb_flush_method to O_DIRECT can degrade performance of simple SELECT statements by a factor of three. - innodb_flush_log_at_trx_commit
For the greatest possible durability and consistency in a replication setup using InnoDB with transactions, you should use innodb_flush_log_at_trx_commit=1, sync_binlog=1 - innodb_file_per_table
This will create the file per table same as MyISAM
System Level:
1. Disable DNS Hostname Lookup
3. RAID 10 is must for high I/O performance.
4. ResierFS is recomended filesystem by most of the blog posts but xfs is doing good for us over RAID 10.
Architectural Level:
1. Use VARCHAR datatype instead of CHAR.
2. AUTO_INCREMENT should be BIGINT if there are Million Row insert/delete.