You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve failover mechanism for primary and secondary replica connections (#243)
## What is the goal of this PR?
We have increased resilience by improving the failover mechanism between replicas.
## What are the changes implemented in this PR?
- Remove the terminology leader / non-leader which are Raft specific. We now use the terminology "replica" to refer to a single copy of a database. The active replica that can receive data is now called "primary replica" whereas the passive ones "secondary replica"
- Split `GraknOptions` to `GraknOptions.core()` and `GraknOptions.cluster()`, the later of which contains an option to read from secondary replica
- Increase resilience:
- Database and cluster discovery will now be re-attempted to all cluster members instead of just to one of them
- When the cluster have not decided which replica is the primary replica, the client will wait and retry instead of simply failing
- Changed info-level log to debug
Copy file name to clipboardExpand all lines: dependencies/graknlabs/repositories.bzl
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -50,8 +50,8 @@ def graknlabs_dependencies():
50
50
defgraknlabs_protocol():
51
51
git_repository(
52
52
name="graknlabs_protocol",
53
-
remote="https://github.com/graknlabs/protocol",
54
-
tag="2.0.0-alpha-6", # sync-marker: do not remove this comment, this is used for sync-dependencies by @graknlabs_protocol
53
+
remote="https://github.com/lolski/protocol",
54
+
commit="6d5a5e1b58d91fd001e06b2820363e7194f7fd3f", # sync-marker: do not remove this comment, this is used for sync-dependencies by @graknlabs_protocol
0 commit comments