yoshinorim / mha4mysql-node

Development tree of Master High Availability Manager and tools for MySQL (MHA), Node (MySQL Server) part
http://code.google.com/p/mysql-master-ha/
GNU General Public License v2.0
402 stars 202 forks source link

More strict SSH checking #4

Closed yoshinorim closed 12 years ago

yoshinorim commented 12 years ago

Originally MHA checks master's reachability by just connecting via SSH and exiting with return code 0. This in some cases does not work especially if SSH works but data files are not accessible. In this fix, MHA checks master's ssh reachability by executing save_binary_logs command (dry run). MHA Manager also needs to be updated to 0.53.

Fix: https://github.com/yoshinorim/mha4mysql-node/commit/f97d7fdb0e21a3a3bd5456382f2ad640a5a14781 https://github.com/yoshinorim/mha4mysql-node/commit/839251e98101eee3f87d05ba39a5389fe56c8666