diff --git a/my.cnf b/my.cnf new file mode 100644 index 0000000..23f9b12 --- /dev/null +++ b/my.cnf @@ -0,0 +1,53 @@ +# +[mysqld_safe] +flush_caches +numa_interleave +# +[mysqld] +back_log = 65535 +binlog_format = ROW +character_set_server = utf8mb4 +collation_server = utf8mb4_general_ci +datadir = /var/lib/mysql +default_storage_engine = InnoDB +expand_fast_index_creation = 1 +expire_logs_days = 7 +innodb_autoinc_lock_mode = 2 +innodb_buffer_pool_instances = 16 +innodb_buffer_pool_populate = 1 +innodb_buffer_pool_size = 12G +innodb_data_file_path = ibdata1:64M;ibdata2:64M:autoextend +innodb_file_format = Barracuda +innodb_file_per_table +innodb_flush_log_at_trx_commit = 2 +innodb_flush_method = O_DIRECT +innodb_io_capacity = 1600 +innodb_large_prefix +innodb_locks_unsafe_for_binlog = 1 +innodb_log_file_size = 64M +innodb_print_all_deadlocks = 1 +innodb_read_io_threads = 64 +innodb_stats_on_metadata = FALSE +innodb_support_xa = FALSE +innodb_write_io_threads = 64 +log-bin = mysqld-bin +log-queries-not-using-indexes +log-slave-updates +long_query_time = 1 +max_allowed_packet = 64M +max_connect_errors = 4294967295 +max_connections = 4096 +min_examined_row_limit = 1000 +performance-schema-instrument='%=ON' +port = 3306 +relay-log-recovery = TRUE +skip-name-resolve +slow_query_log = 1 +slow_query_log_timestamp_always = 1 +table_open_cache = 4096 +thread_cache = 1024 +tmpdir = /srv/tmp +transaction_isolation = READ-COMMITTED +updatable_views_with_limit = 0 +user = mysql +wait_timeout = 60