docker.cnf 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. [mysqld]
  2. skip-host-cache
  3. skip-name-resolve
  4. skip-external-locking
  5. binlog_cache_size = 256K
  6. thread_stack = 512K
  7. join_buffer_size = 8192K
  8. query_cache_type = 1
  9. max_heap_table_size = 2048M
  10. default_storage_engine = InnoDB
  11. performance_schema_max_table_instances = 400
  12. table_definition_cache = 400
  13. key_buffer_size = 1024M
  14. max_allowed_packet = 10G
  15. table_open_cache = 2048
  16. sort_buffer_size = 4096K
  17. net_buffer_length = 4K
  18. read_buffer_size = 4096K
  19. read_rnd_buffer_size = 2048K
  20. myisam_sort_buffer_size = 8M
  21. thread_cache_size = 256
  22. query_cache_size = 384M
  23. tmp_table_size = 2048M
  24. sql-mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
  25. max_connections = 500
  26. max_connect_errors = 100
  27. open_files_limit = 65535
  28. log-bin=mysql-bin
  29. binlog_format=mixed
  30. server-id = 1
  31. expire_logs_days = 10
  32. slow_query_log=1
  33. slow-query-log-file=/var/lib/mysql/mysql-slow.log
  34. long_query_time=3
  35. innodb_buffer_pool_size = 4096M
  36. innodb_log_file_size = 64M
  37. innodb_log_buffer_size = 16M
  38. innodb_flush_log_at_trx_commit = 1
  39. innodb_lock_wait_timeout = 50
  40. innodb_max_dirty_pages_pct = 90
  41. innodb_read_io_threads = 2
  42. innodb_write_io_threads = 2
  43. [mysqldump]
  44. quick
  45. max_allowed_packet = 500M
  46. [mysql]
  47. no-auto-rehash
  48. [myisamchk]
  49. key_buffer_size = 32M
  50. sort_buffer_size = 768K
  51. read_buffer = 2M
  52. write_buffer = 2M
  53. [mysqlhotcopy]
  54. interactive-timeout