forked from MystenLabs/sui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use constant (60s) certificate sequencing timeout (MystenLabs#4961)
Increase observability and hopefully resilience of consensus adapter: 1. Add more fine grained buckets for the `sequencing_certificate_latency` metric. Also change its unit to sec. Currently the largest bucket is 10 (ms). 2. Add a metric for inflight (non-checkpoint) consensus transactions being sequenced. 3. Reduce capacity of consensus listener from 1M pending txns to 2000, which is calculated from `200 tps * 5 sec consensus latency * 2 (margin) ~ 2000`. 4. Use a uniform 60s certificate sequencing timeout: - The existing adaptive control algorithm (for user consensus) can reduce the timeout a bit too low, e.g. delay_ms can drop to 2.5s, so the timeout value becomes 2.5s + 15s ~ 17.5s. Consensus transaction timeouts result in amplified traffic so it is best avoided. Using a higher timeout by default would avoid this scenario.
- Loading branch information
Showing
7 changed files
with
102 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.