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

[Benchmark] Prevent PID windup at start #3759

Merged
merged 1 commit into from
Dec 23, 2022
Merged

[Benchmark] Prevent PID windup at start #3759

merged 1 commit into from
Dec 23, 2022

Conversation

SaveTheRbtz
Copy link
Contributor

Transactions in-progress are very inertial. To prevent the initial windup let's delay TPS adjustment by a couple of minutes.

@codecov-commenter
Copy link

codecov-commenter commented Dec 22, 2022

Codecov Report

Merging #3759 (862d3f7) into master (11cfc68) will decrease coverage by 7.19%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #3759      +/-   ##
==========================================
- Coverage   55.37%   48.17%   -7.20%     
==========================================
  Files         769      398     -371     
  Lines       70251    33934   -36317     
==========================================
- Hits        38902    16348   -22554     
+ Misses      28161    16256   -11905     
+ Partials     3188     1330    -1858     
Flag Coverage Δ
unittests 48.17% <ø> (-7.20%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
fvm/transactionVerifier.go 83.19% <0.00%> (-1.27%) ⬇️
engine/access/rest/accounts.go
network/queue/eventPriority.go
engine/consensus/approvals/chunk_collector.go
network/compressor/lz4Compressor.go
network/p2p/dns/cache.go
network/codec/cbor/encoder.go
engine/common/synchronization/request_heap.go
network/p2p/p2pnode/gossipSubAdapter.go
module/mempool/herocache/backdata/heropool/pool.go
... and 362 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@@ -76,6 +77,14 @@ func NewTPSAdjuster(
go func() {
defer close(a.done)

log.Info().Dur("delayInMS", params.Delay).Msg("Waiting before starting TPS adjuster")
Copy link
Contributor

Choose a reason for hiding this comment

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

I like this idea to inform the user there's going to be a delay.

@SaveTheRbtz
Copy link
Contributor Author

bors merge

@bors bors bot merged commit 3b98517 into master Dec 23, 2022
@bors bors bot deleted the rbtz/preventWindup branch December 23, 2022 20:27
This pull request was closed.
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.

4 participants