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

INDY-1955: add REPLICA_STASH_LIMIT to config #1067

Merged

Conversation

Toktar
Copy link
Contributor

@Toktar Toktar commented Jan 30, 2019

Signed-off-by: toktar renata.toktar@dsr-corporation.com

Signed-off-by: toktar <renata.toktar@dsr-corporation.com>
Signed-off-by: toktar <renata.toktar@dsr-corporation.com>
plenum/config.py Outdated
@@ -384,3 +384,6 @@

# It's count of freshness updates for checking Has_write_consensus in validator-info
ACCEPTABLE_FRESHNESS_INTERVALS_COUNT = 2

# Limit for numbers of 3pc and checkpoint messages stashed in replica
REPLICA_STASH_LIMIT = 1000
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm totally fine with moving it to config, but not sure that the value needs to be 1000.
If we have 25 nodes pool, then we got ~50 3PC messages per batch. So, only 20 3PC batches can be stashed, which is just 20 seconds of work.
I think a catch-up can take more than 20 secs for sure.
If we don't stash all, then the node will not be able to order again, so the whole purpose of stashing doesn't make sense.

Signed-off-by: toktar <renata.toktar@dsr-corporation.com>
ashcherbakov
ashcherbakov previously approved these changes Jan 30, 2019
Signed-off-by: toktar <renata.toktar@dsr-corporation.com>
@ashcherbakov ashcherbakov merged commit a027684 into hyperledger:master Jan 30, 2019
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.

None yet

2 participants