I'm running MySQL servers load balanced via HAProxy. But I need to perform some action whenever a node (MySQL) goes down or comes up, like we do in PgPool-II.
Example:
When ever MySQL-1 goes down, I also want to shutdown my WebServer-1. (STONITH like) In PgPool-II for PostgreSQL, I can do this. I'm unaware, if there are similar tools for MySQL.
Is this possible in HAProxy itself:
Say, when my DB-1 goes down, route the web server traffic, to WebServer-2.