Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to run a Neo4j cluster with strong consistency?

The docs of Neo4j state that when running in HA mode, you get eventual consistency. This is a quote from that page:

All updates will however propagate from the master to other slaves eventually so a write from one slave may not be immediately visible on all other slaves

My question is: is there a configuration that will allow me to write a cluster with strong consistency, of course at the cost of reduced performance? I'm looking for some sort of active-passive failover cluster configuration.

like image 929
falconizer Avatar asked Nov 11 '14 12:11

falconizer


1 Answers

There is such an config option. ha.tx_push_factor determines to how many slaves a transaction should be pushed to synchronously. When setting this to ha.tx_push_factor=<clustersize>-1 you have immediate full consistency.

like image 133
Stefan Armbruster Avatar answered Sep 28 '22 02:09

Stefan Armbruster