Skip to content

Commit 6880f8c

Browse files
authored
HA MT failover (#1234)
1 parent 028bfa0 commit 6880f8c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pages/clustering/high-availability.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -446,9 +446,9 @@ about other REPLICAs to which it will replicate data. Once that request succeeds
446446

447447
When failover is happening, some REPLICAs can also be down. From the list of alive REPLICAs, a new MAIN is chosen. First, the leader coordinator contacts each alive REPLICA
448448
to get info about each database's last commit timestamp. In the case of enabled multi-tenancy, from each instance coordinator will get info on all databases and their last commit
449-
timestamp. Currently, the coordinator chooses an instance to become a new MAIN by comparing the latest commit timestamp only of the default database for every instance.
450-
If multiple instances have the same latest commit timestamp, the instance that was registered earlier will be chosen as a new MAIN.
451-
449+
timestamp. Currently, the coordinator chooses an instance to become a new MAIN by comparing the latest commit timestamps of all databases. The instance which is newest on most
450+
databases is considered the best candidate for the new MAIN. If there are multiple instances which have the same number of newest databases, we sum timestamps of all databases
451+
and consider instance with a larger sum as the better candidate.
452452

453453
### Old MAIN rejoining to the cluster
454454

@@ -874,4 +874,4 @@ that and automatically promote the first alive REPLICA to become the new MAIN. T
874874

875875
</Steps>
876876

877-
<CommunityLinks/>
877+
<CommunityLinks/>

0 commit comments

Comments
 (0)