Displaying 1 result from an estimated 1 matches for "node_flags_disconnect".
Did you mean:
node_flags_disconnected
2012 May 24
0
Is it possible to use quorum for CTDB to prevent split-brain and removing lockfile in the cluster file system
...;num_active = 0;
rec->num_connected = 0;
for (i=0; i<nodemap->num; i++) {
if (!(nodemap->nodes[i].flags & NODE_FLAGS_INACTIVE)) {
rec->num_active++;
}
if (!(nodemap->nodes[i].flags & NODE_FLAGS_DISCONNECTED)) {
rec->num_connected++;
}
}
+ if (rec->num_connected < ((nodemap->num)/2+1)){
+ DEBUG(DEBUG_ERR, ("Node %u in the group without quorum\n",
pnn));
+ ctdb_ban_node(rec, pnn, ctdb->tunable.r...