Hello,
I have a setup with 4 servers: 1 game server and 3 servers with OrientDB
sharing one database which is configured with readQuorum: 1 writeQuorum: 1
and hotAlign: true, all in a private local network each with 1GB ram.
Im using OrientDB 1.7.9 and tinkerpop/gremlin/blueprints 2.5.0.
I have a situation (User registration + Instant login) is causing a split
brain between server 1 (where I insert) and servers 2-3.
On a *One *server setup the following code works fine, but on a *distributed
*its giving me the split brain error.
----------------------
vUser = graph.addVertex("class:User");
vUser.setProperty("userName", userName);
vUser.setProperty("email", email);
List<Edge> Edges2Add = new ArrayList<Edge>();
for (int i=0; i< Constants.allSlots_rid.size(); i++) {
Vertex vWorld1= graph.getVertex(#12:8);
Edge eModelProgress =
graph.addEdge("class:WorldProgress", vUser, vWorld1, "WorldProgress");
eModelProgress.setProperty("XP", 0.0);
eModelProgress.setProperty("unlocked", true);
Edges2Add.add(eModelProgress);
}
graph.commit();
String user_rid = vUser.getProperty("@rid").toString();
------------------------
As far as Im aware I must commit before asking for the rid, or else I get a
negative value, I need the rid to be assigned as a session variable for the
user
I've tried setting writeQuorum to 2, also hotAlign:false, but no luck.
Am I following bad practices here? any guidance on how to avoid the split
brain, and properly setup the distributed would be immensely appreciated.
Thanks a lot!
--
---
You received this message because you are subscribed to the Google Groups
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.