Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## InnoDB Plugin Dependent Settings
- #ignore-builtin-innodb
- #plugin-load=innodb=ha_innodb_plugin.so;innodb_trx=ha_innodb_plugin.so;innodb_locks=ha_innodb_plugin.so;innodb_cmp=ha_innodb_plugin.so;innodb_cmp_reset=ha_innodb_plugin.so;innodb_cmpmem=ha_innodb_plugin.so;innodb_cmpmem_reset=ha_innodb_plugin.so;innodb_lock_waits=ha_innodb_plugin.so
- ## InnoDB IO Capacity - 5.1.x plugin, 5.5.x
- #innodb_io_capacity = 200
- ## InnoDB IO settings - 5.1.x only
- #innodb_file_io_threads = 16
- ## InnoDB IO settings - 5.5.x and greater
- #innodb_write_io_threads = 16
- #innodb_read_io_threads = 16
- ## InnoDB Plugin Independent Settings
- innodb_data_home_dir = /var/lib/mysql
- innodb_data_file_path = ibdata1:128M;ibdata2:10M:autoextend
- innodb_log_file_size = 512M #64G_RAM+ = 768, 24G_RAM+ = 512, 8G_RAM+ = 256, 2G_RAM+ = 128
- innodb_log_files_in_group = 4 #combined size of all logs <4GB. <2G_RAM = 2, >2G_RAM = 4
- innodb_buffer_pool_size = 18G #global buffer
- innodb_additional_mem_pool_size = 4M #global buffer
- innodb_status_file #extra reporting
- innodb_file_per_table #enable always
- innodb_flush_log_at_trx_commit = 2 #2/0 = perf, 1 = ACID
- innodb_table_locks = 0 #preserve table locks
- innodb_log_buffer_size = 128M #global buffer
- innodb_lock_wait_timeout = 60
- innodb_thread_concurrency = 16 #recommend 2x core quantity
- innodb_commit_concurrency = 16 #recommend 4x num disks
- #innodb_flush_method = O_DIRECT #O_DIRECT = local/DAS, O_DSYNC = SAN/iSCSI
- innodb_support_xa = 0 #recommend 0, disable xa to negate extra disk flush
- skip-innodb-doublewrite
- ## Binlog sync settings
- ## XA transactions = 1, otherwise set to 0 for best performance
- sync_binlog = 0
- ## TX Isolation
- transaction-isolation = REPEATABLE-READ #REPEATABLE-READ req for ACID, SERIALIZABLE req XA
- ## Per-Thread Buffer memory utilization equation:
- #(read_buffer_size + read_rnd_buffer_size + sort_buffer_size + thread_stack + join_buffer_size + binlog_cache_size) * max_connections
- ## Global Buffer memory utilization equation:
- # innodb_buffer_pool_size + innodb_additional_mem_pool_size + innodb_log_buffer_size + key_buffer_size + query_cache_size
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement