We are looking into options for our MySQL replication architecture, the relevant details of our current setup:
- We manage several branches on different cities.
- Every branch has the same database structure.
- Every primary key on all tables are prefixed by a branch identifier.
- We need that a branch keep working if it has a network outage and it must sync with the main branch once the connection is restored.
As we don't have any chance to get a duplicate index on any table I'm thinking on something like MySQL multi master, or maybe Percona XtraDB Cluster or Tungsten but I can't find documentation on what happens if a single node is isolated from the others and what happens with the data that it received once the connection is restored.
Is there any proven method that suit this kind of setup? I would appreciate any advice, thanks.