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

llmq|init|test: Add "mode" to -llmq-qvvec-sync parameter #4030

Merged

Conversation

xdustinface
Copy link

@xdustinface xdustinface commented Mar 9, 2021

This changes the paramter from -llmq-qvvec-sync=<quorum_name> to -llmq-qvvec-sync=<quorum_name:mode>

With the following definitions:

  • quorum_name: Internal name of the quorum type
  • mode=0 - Sync always from all quorums of the type defined by quorum_name
  • mode=1 - Sync only if member of any from all other quorum of the type defined by quorum_name

-llmq-qvvec-sync=llmq_100_67:0 To always request qvvec's from all LLMQ_100_67.
-llmq-qvvec-sync=llmq_100_67:1 Only request if type member.

This means, if platform enables this on all MNs with mode=0 we will
have all nodes asking new quorum for their verification vector instead
of only 24*100 at max.

Follow up of #3964

This changes the paramter from `-llmq-qvvec-sync=<quorum_name>` to `-llmq-qvvec-sync=<quorum_name:mode>`

With the following definitions:

- `quorum_name`: Internal name of the quorum type
- `mode=0` - Sync always from all quorums of the type defined by `quorum_name`
- `mode=1` - Sync only if member of any from all other quorum of the type defined by `quorum_name`

`-llmq-qvvec-sync=llmq_100_67:0` To always request qvvec's from all `LLMQ_100_67`.
`-llmq-qvvec-sync=llmq_100_67:1` Only request if type member.

This means, if platform enables this on all MNs with `mode=0` we will
have all nodes asking new quorum for their verification vector instead
of only `24*100` at max.
@xdustinface xdustinface added this to the 17 milestone Mar 9, 2021
@UdjinM6
Copy link

UdjinM6 commented Mar 10, 2021

Looks good 👍 How about UdjinM6@3564a81 ?

Copy link

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

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

utACK

Copy link
Member

@PastaPastaPasta PastaPastaPasta left a comment

Choose a reason for hiding this comment

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

utACK

@PastaPastaPasta PastaPastaPasta merged commit 4feb38b into dashpay:develop Mar 16, 2021
gades pushed a commit to cosanta/cosanta-core that referenced this pull request Mar 14, 2022
* llmq|init|test: Add "mode" to -llmq-qvvec-sync parameter

This changes the paramter from `-llmq-qvvec-sync=<quorum_name>` to `-llmq-qvvec-sync=<quorum_name:mode>`

With the following definitions:

- `quorum_name`: Internal name of the quorum type
- `mode=0` - Sync always from all quorums of the type defined by `quorum_name`
- `mode=1` - Sync only if member of any from all other quorum of the type defined by `quorum_name`

`-llmq-qvvec-sync=llmq_100_67:0` To always request qvvec's from all `LLMQ_100_67`.
`-llmq-qvvec-sync=llmq_100_67:1` Only request if type member.

This means, if platform enables this on all MNs with `mode=0` we will
have all nodes asking new quorum for their verification vector instead
of only `24*100` at max.

* llmq: Adjust GetQuorumRecoveryStartOffset to use all MNs

* Turn `QvvecSyncMode` into `enum class`

Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com>
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.

3 participants