Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mysql innodb locks during checks on slaves #98

Open
GoogleCodeExporter opened this issue Jul 30, 2015 · 0 comments
Open

mysql innodb locks during checks on slaves #98

GoogleCodeExporter opened this issue Jul 30, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link
Contributor

Switching to Debian 7 and percona-mysql-5.5.16 amd64 from percona repository 
started experiencing unusual slaves slowdowns. After some research, I found 
that there are some strange locks happening during "drop table" (already 
emptied). While not discussing why drop empty table on server with big (50Gb) 
innodb buffer pool slowing down servers drastically, I created a workaround 
adding "engine=myisam" to /usr/local/bin/apply_diff_relay_logs line 370:

"$_mysql --user=$_escaped_slave_user --password=$_escaped_slave_pass 
--host=$opt{slave_ip} --port=$opt{slave_port} -e \"set sql_log_bin=0; create 
table if not exists mysql.apply_diff_relay_logs_test(id int) engine=myisam; 
insert into mysql.apply_diff_relay_logs_test values(1); update 
mysql.apply_diff_relay_logs_test set id=id+1 where id=1; delete from 
mysql.apply_diff_relay_logs_test; drop table 
mysql.apply_diff_relay_logs_test;\""

After that, problem has gone as expected.
Probably this change could be useful in main code.

Debian 7.6, linux 3.2.58, mha-node 0.56, percona-mysql-5.5.16 x64

Original issue reported on code.google.com by [email protected] on 26 Sep 2014 at 2:37

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant