MySQL actually just officially released "Group Replication" a few months ago to address this.
http://mysqlhighavailability.com/gr/doc/
> MySQL Group Replication is a MySQL Server plugin that provides distributed state machine replication with strong coordination between servers. Servers coordinate themselves automatically, when they are part of the same replication group.