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.
Submit all certificates to consensus (MystenLabs#5772)
This change submits all certificates to consensus. Owned object certificates are submitted along with shared object certificates. `handle_certificate` however only blocks on shared objects certificates before executing them. Owned object certificates are processed right away without waiting for them to be sequenced in consensus. Note that more work needs to be done to make sure that all owned object certificates are sequenced before end of epoch, this PR adds TODO to `ConsensusAdapter` for that. This PR also changes slightly how inflight metrics are handled, and fixes an issue there - previously inflight counter was not decreased if certificate timed out. Some notes on how this expected to affect existing environments: * For private testnet [consensus utilization](http://grafana.shared.internal.sui.io:3000/goto/5lZ2pjN4k?orgId=1) is around 20% on slowest nodes. This is expected to double as private testnet has 50/50 of shared and owned objects transactions. 40% utilization is still ok and have some headroom for recovery * For dev net [consensus utilization](http://grafana.shared.internal.sui.io:3000/goto/5GropjN4z?orgId=1) reaches 15% at peak. This peak corresponds to [~100 TPS](http://grafana.shared.internal.sui.io:3000/goto/NIc-pjNVk?orgId=1). [Owned object TPS](http://grafana.shared.internal.sui.io:3000/goto/6uefpjH4k?orgId=1) is around ~10, so adding owned object certificates should not add too much load as well.
- Loading branch information
Showing
5 changed files
with
117 additions
and
74 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
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