Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. ## InnoDB Plugin Dependent Settings
  2. #ignore-builtin-innodb
  3. #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
  4.  
  5. ## InnoDB IO Capacity - 5.1.x plugin, 5.5.x
  6. #innodb_io_capacity = 200
  7.  
  8. ## InnoDB IO settings - 5.1.x only
  9. #innodb_file_io_threads = 16
  10.  
  11. ## InnoDB IO settings - 5.5.x and greater
  12. #innodb_write_io_threads = 16
  13. #innodb_read_io_threads = 16
  14.  
  15. ## InnoDB Plugin Independent Settings
  16. innodb_data_home_dir = /var/lib/mysql
  17. innodb_data_file_path = ibdata1:128M;ibdata2:10M:autoextend
  18. innodb_log_file_size = 512M #64G_RAM+ = 768, 24G_RAM+ = 512, 8G_RAM+ = 256, 2G_RAM+ = 128
  19. innodb_log_files_in_group = 4 #combined size of all logs <4GB. <2G_RAM = 2, >2G_RAM = 4
  20. innodb_buffer_pool_size = 18G #global buffer
  21. innodb_additional_mem_pool_size = 4M #global buffer
  22. innodb_status_file #extra reporting
  23. innodb_file_per_table #enable always
  24. innodb_flush_log_at_trx_commit = 2 #2/0 = perf, 1 = ACID
  25. innodb_table_locks = 0 #preserve table locks
  26. innodb_log_buffer_size = 128M #global buffer
  27. innodb_lock_wait_timeout = 60
  28. innodb_thread_concurrency = 16 #recommend 2x core quantity
  29. innodb_commit_concurrency = 16 #recommend 4x num disks
  30. #innodb_flush_method = O_DIRECT #O_DIRECT = local/DAS, O_DSYNC = SAN/iSCSI
  31. innodb_support_xa = 0 #recommend 0, disable xa to negate extra disk flush
  32. skip-innodb-doublewrite
  33.  
  34. ## Binlog sync settings
  35. ## XA transactions = 1, otherwise set to 0 for best performance
  36. sync_binlog = 0
  37.  
  38. ## TX Isolation
  39. transaction-isolation = REPEATABLE-READ #REPEATABLE-READ req for ACID, SERIALIZABLE req XA
  40.  
  41. ## Per-Thread Buffer memory utilization equation:
  42. #(read_buffer_size + read_rnd_buffer_size + sort_buffer_size + thread_stack + join_buffer_size + binlog_cache_size) * max_connections
  43.  
  44. ## Global Buffer memory utilization equation:
  45. # 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