Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seperate MaxQuorums #15

Merged
merged 1 commit into from
Nov 29, 2024
Merged

Seperate MaxQuorums #15

merged 1 commit into from
Nov 29, 2024

Conversation

heidihoward
Copy link
Owner

Fixing a bug introduced during the refactoring of MaxQuorum 035b5ae#diff-bb74f8203fb9704ca17cbe4e4b2335f443a4659bed373276a16ccb626a989b81L257. These two calculations were using different quorums (CQ for crash quorum and BQ for Byzantine quorum), when they were merged they were both switched to BQ

CC @lemmy

@heidihoward heidihoward changed the title seperate MaxQuorums Seperate MaxQuorums Nov 28, 2024
@lemmy
Copy link
Collaborator

lemmy commented Nov 28, 2024

Apologies!

@@ -184,7 +184,15 @@ HighestQCOverQC(l) ==
Max2(a,b) == IF a > b THEN a ELSE b
Min2(a,b) == IF a < b THEN a ELSE b

MaxQuorum(l, m, default) ==
MaxCrashQuorum(l, m, default) ==
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could also make the quorum a parameter of MaxCrashQuorum.

MaxQuorum(Q, l, m, default) == 
    LET RECURSIVE RMaxQuorum(_)
        RMaxQuorum(i) ==
            IF i = default THEN default
            ELSE IF \E q \in Q: \A n \in q: m[n] >= i
                 THEN i ELSE RMaxQuorum(i-1)
    IN RMaxQuorum(Len(l))

lemmy

This comment was marked as resolved.

@lemmy
Copy link
Collaborator

lemmy commented Nov 29, 2024

The definitions of CQ and BQ are identical:

CQ == {q \in SUBSET R: Cardinality(q) >= 3}
\* Set of quorums for byzantine fault tolerance
BQ == {q \in SUBSET R: Cardinality(q) >= 3}

@heidihoward
Copy link
Owner Author

heidihoward commented Nov 29, 2024

You change them when you change the number of replicas. N=4 is a special case where they are the same

@heidihoward heidihoward reopened this Nov 29, 2024
@heidihoward heidihoward merged commit 2c9bf47 into main Nov 29, 2024
1 of 4 checks passed
@heidihoward heidihoward deleted the Maxquorum branch November 29, 2024 10:11
@lemmy
Copy link
Collaborator

lemmy commented Nov 29, 2024

@heidihoward
Copy link
Owner Author

Sorry I meant to say "You change them" not "You changed them" as in you can change them if you want to vary the number of nodes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants