MySQL Forums
Forum List  »  Replication

Re: Replication doesn't write to database.
Posted by: Nathan Wilkerson
Date: February 17, 2014 01:31PM

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)

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Replication doesn't write to database.
1015
February 17, 2014 01:31PM


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.