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

Restrict updating CDF counters after restart. #3386

Merged
merged 1 commit into from
Nov 26, 2021
Merged

Conversation

karknu
Copy link
Contributor

@karknu karknu commented Nov 24, 2021

After restart the block delayes doesn't reflect the node's network
condition. This change waits until the node sees a block with a delay
less than 20s. Then we collect 45 samples (about 15 minutes) until
we start to provide values for the CDF counters.

@karknu karknu force-pushed the karknu/cdf_start branch 3 times, most recently from bf73c91 to fae7811 Compare November 25, 2021 10:22
@karknu karknu marked this pull request as ready for review November 25, 2021 12:06
@karknu karknu requested a review from coot November 25, 2021 12:06
@gufmar
Copy link
Contributor

gufmar commented Nov 25, 2021

looks good on a mainnet relay here

2021-11-25_15h45_53

it is useful for alarm trigger settings to not have "wrong" low values (delayed blocks), while the node is catching up after start.

before it was like this

image

the floating average from low (restarting) values then distorted the value for a longer period of time.

Copy link
Contributor

@Jimbo4350 Jimbo4350 left a comment

Choose a reason for hiding this comment

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

LGTM, just fix the indent from 4 spaces to 2 spaces please.

After restart the block delayes doesn't reflect the node's network
condition. This change waits until the node sees a block with a delay
less than 20s. Then we collect 45 samples (about 15 minutes) until
we start to provide values for the CDF counters.
@karknu
Copy link
Contributor Author

karknu commented Nov 26, 2021

bors r+

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Nov 26, 2021

Build succeeded:

@iohk-bors iohk-bors bot merged commit 5b53109 into master Nov 26, 2021
@iohk-bors iohk-bors bot deleted the karknu/cdf_start branch November 26, 2021 21:54
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.

3 participants