Re: Replication doesn't write to database.
That makes sense. The mysql drive is on a 15k raid mounted to /var/lib/mysql.
Below is the requested config file and a secondary config we add when one of our servers becomes a master or slave.
my.cnf
################################################
# This file is managed by Puppet; do not edit. #
################################################
[client]
default-character-set=utf8
port = 3306
socket = /var/run/mysqld/mysqld.sock
[mysqld_safe]
socket = /var/run/mysqld/mysqld.sock
nice = 0
[mysqld]
user = mysql
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
log_error = /var/log/mysql/error.log
#skip_name_resolve = 1
log_bin = /var/log/mysql/mysql-bin.log
expire_logs_days = 5
binlog_format=row
ignore-builtin-innodb
plugin-load=innodb=ha_innodb_plugin.so
default_storage_engine = InnoDB
innodb_flush_method=O_DIRECT
innodb_buffer_pool_size = 8192M
innodb_log_buffer_size = 16M
innodb_flush_log_at_trx_commit = 0
innodb_additional_mem_pool_size = 800M
innodb_file_per_table = 1
innodb_locks_unsafe_for_binlog = 1
innodb_log_file_size = 256M
max_connections = 400
key_buffer_size = 3276M
max_allowed_packet = 100M
thread_cache_size = 16
query_cache_size = 3276M
query_cache_limit = 16M
join_buffer_size = 8M
table_cache = 2000
# Keep these values equal
tmp_table_size= 3276M
max_heap_table_size = 3276M
wait_timeout = 360
interactive_timeout = 3600
thread_concurrency = 24
[mysqldump]
quick
quote-names
max_allowed_packet = 64M
[isamchk]
key_buffer = 16M
#
# * IMPORTANT: Additional settings that can override those from this file!
# The files must end with '.cnf', otherwise they'll be ignored.
#
!includedir /etc/mysql/conf.d/
replication.cnf
[mysqld]
log-bin=mysql-bin
server-id=1
mysql> SHOW VARIABLES LIKE '%dir%';
+-----------------------------------------+----------------------------+
| Variable_name | Value |
+-----------------------------------------+----------------------------+
| basedir | /usr/ |
| binlog_direct_non_transactional_updates | OFF |
| character_sets_dir | /usr/share/mysql/charsets/ |
| datadir | /var/lib/mysql/ |
| innodb_data_home_dir | |
| innodb_log_group_home_dir | ./ |
| innodb_max_dirty_pages_pct | 75 |
| plugin_dir | /usr/lib/mysql/plugin |
| slave_load_tmpdir | /tmp |
| tmpdir | /tmp |
+-----------------------------------------+----------------------------+
10 rows in set (0.01 sec)
Subject
Views
Written By
Posted
1842
February 14, 2014 05:13PM
891
February 16, 2014 12:16AM
1365
February 16, 2014 09:07AM
864
February 17, 2014 11:44AM
Re: Replication doesn't write to database.
1015
February 17, 2014 01:31PM
958
February 20, 2014 12:44PM
969
February 26, 2014 12:21PM
873
February 26, 2014 03:33PM
796
February 27, 2014 08:20PM
811
February 28, 2014 11:07AM
878
March 03, 2014 04:35PM
927
March 05, 2014 10:15AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.