Mysql Replication SLAVE go down -


i have problem mysql replication.

i configure 2 virtual host.

server 1 apache + mysql ver 15.1 distrib 5.5.41-mariadb

master , slave of server2

server 2 mysql ver 14.14 distrib 5.5.42

master , slave of server1

topologi master + master

when restart slaves work good, short latency , fast update. when wait few minutes replication not work more. if update row or make insert or delete slave not update changes.

the logs not write error, master_position_log diferent between master , slave.

and if restart slaves works again, bdd updated , replication works well.

i don't know happen, seems threads sleep or death.

thanks idea fix problem

in 2 cases processes seems ok.

server1

kill 168 system user none connect 1146 waiting master send event ---

kill 169 system user none connect 945 slave has read relay log; waiting slave i/o thread update ---

kill 170 master xxxxxxx:59273 none binlog dump 1145 master has sent binlog slave; waiting binlog updated ---

server2

kill 73 root xxxxxx:55089 none binlog dump 1137 master has sent binlog slave; waiting binlog updated ---

kill 76 system user none connect 1137 waiting master send event ---

kill 77 system user none connect 985 slave has read relay log; waiting slave i/o thread update ---

the problem latency.

my solution, create cron every minut stop , start slave.

now works.

cristian


Comments

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -