Created
October 23, 2019 03:03
-
-
Save harryge00/f6b71ea40d6c0476eeac5538e3eb9c4b to your computer and use it in GitHub Desktop.
MySQL slave config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[mysqld] | |
port = 3306 | |
back_log = 3000 | |
character_set_server = utf8 | |
max_connect_errors = 100 | |
max_connections = 2000 | |
max_user_connections = 2000 | |
max_heap_table_size = 64M | |
max_allowed_packet = 1024M | |
max_binlog_size = 500M | |
net_buffer_length = 16K | |
transaction_isolation = READ-COMMITTED | |
skip_name_resolve | |
lower_case_table_names = 1 | |
innodb_data_file_path = ibdata1:200M:autoextend | |
innodb_file_per_table | |
innodb_flush_log_at_trx_commit = 1 | |
innodb_log_buffer_size = 8M | |
innodb_log_file_size = 1500M | |
innodb_log_files_in_group = 2 | |
innodb_max_dirty_pages_pct = 75 | |
innodb_flush_method = O_DIRECT | |
innodb_lock_wait_timeout = 50 | |
innodb_doublewrite = 1 | |
innodb_rollback_on_timeout = OFF | |
innodb_autoinc_lock_mode = 1 | |
innodb_io_capacity = 2000 | |
innodb_purge_threads = 1 | |
innodb_stats_on_metadata = OFF | |
innodb_file_format = Barracuda | |
default_storage_engine = InnoDB | |
innodb_stats_sample_pages = 8 | |
open_files_limit = 65535 | |
autocommit = 1 | |
innodb_table_locks = ON | |
innodb_open_files = 300 | |
innodb_strict_mode = OFF | |
log-bin=mysql-bin | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment