Mysql database replicate with failure alarm -
i have main (master) database filled every 2 hour 2mil record(different table). want impelement fail-safe method have db in case of first goes down. googled find these solution : make trigger on first db , make replication , make 3rd (php-python) system fetch , insert slave db. best way , have logs reports in case of goes wrong.
i think replication trick. don't why need 3rd one, if want, can make slaves want.
as far notifications go, can use homebrew script based on show status
or comparing master , slave metadata, example. or can use toolkits percona or monyog.
Comments
Post a Comment