Any Neo4j instance in a cluster can be master unless it is configured with ha.slave_only=true
. Embedded and server mode share exactly the same capabilities with respect to clustering.
In case of embedded HA, you need to instantiate your GraphDatabaseService
instance using http://components.neo4j.org/neo4j-ha/stable/apidocs/org/neo4j/graphdb/factory/HighlyAvailableGraphDatabaseFactory.html and pass in the config options.
It's even possible to mix embedded and server instances in a cluster.