Skip to content

Commit

Permalink
feat(pbts): Adjusts PBTS metrics buckets (cometbft#2578)
Browse files Browse the repository at this point in the history
Contributes to cometbft#2480
  • Loading branch information
lasarojc authored Mar 11, 2024
1 parent f8366fc commit 2f0dc67
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/consensus/metrics.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/consensus/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ type Metrics struct {
// metric thus should drive the definition of values for the consensus
// parameter SynchronyParams.MessageDelay, used by the PBTS algorithm.
// metrics:Difference in seconds between the local time when a proposal message is received and the timestamp in the proposal message.
ProposalTimestampDifference metrics.Histogram `metrics_bucketsizes:"-1.5, -1.0, -0.5, 0, 0.5, 1.0, 1.5, 2.0, 2.5, 3.0, 3.5, 4.0, 6.0, 8.0, 10.0" metrics_labels:"is_timely"`
ProposalTimestampDifference metrics.Histogram `metrics_bucketsizes:"-1.5, -1.0, -0.5, -0.2, 0, 0.2, 0.5, 1.0, 1.5, 2.0, 2.5, 4.0, 8.0" metrics_labels:"is_timely"`
}

func (m *Metrics) MarkProposalProcessed(accepted bool) {
Expand Down
2 changes: 1 addition & 1 deletion types/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func DefaultFeatureParams() FeatureParams {
}

func DefaultSynchronyParams() SynchronyParams {
// TODO(@wbanfield): Determine experimental values for these defaults
// Default values determined based on experimental results and on
// https://github.com/tendermint/tendermint/issues/7202
return SynchronyParams{
Precision: 500 * time.Millisecond,
Expand Down

0 comments on commit 2f0dc67

Please sign in to comment.