-
Notifications
You must be signed in to change notification settings - Fork 16
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
No delay experiment #512
No delay experiment #512
Conversation
Why did we have that 1000ms delay in the first place? |
@DavidM-D Without any delay Node will make too many RPC calls. Reading logs on the flight is also a bit easier. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at this again, I'm not sure if we should add in this change now, since the protocol state advancement and the triple generation protocol should have separate sleep times. State advancement rarely ever happens so 1s is pretty ideal, meanwhile we want each triple protocol poke to advance much faster than just 1s. How about we do a simple check whether or not the protocol state is in the running state? If it goes from Running to Running state within advance
, progress
, message.handle
then we can set the sleep to be nonexistent, but if we're in the Generating, WaitingForConsensus, Resharing state, we'll have the 1s sleep instead.
Terraform Feature Environment (dev-512)Terraform Initialization ⚙️
|
I've changed the design. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mostly looks good, just need to move handle
Terraform Feature Environment Destroy (dev-512)Terraform Initialization ⚙️
|
This change allowed me to run tests 2 times faster. All the infra setup time is the same, so that is probably 4x+ in performance for the protocol itself. The downside is we will have more requests to RPC.
2 and 100ms are chosen empirically. Gives me the same results as 0 delay.
(tested with 3 nodes, but should help with our scaling problem)