Im building a application that should work online and off-line.
I will have this application on any fisical stores and a administration on web application that should for all systems installed locale on the store.
I have any actions insert and update that system web should execute and systems local keep insert and update actions all time, but they cannot depends of internet, because this I need a database local.
I try use galera clusters and replication master master,
Galera clusters work nice but when a node get offline it node stop work, this node is a store and the store cannot stop.
Replication master master generate primary key conflit.
Which tool could help me on this situation.
Updated
To simplification,
All data generated by stored offline wont should affect other store, i mean orders, clients, payments. the datas can are on all database, but the store will see just self data.
System admnistration online, should see all datas of all stores and will have any actions insert and update above all stores like, block clientes, aprove orders, generated stoke,
but all actions that System admnistration online will be able, the store will not be able, example, just System admnistration online can create products, make stoke and block clients.