Skip to content

test: metrics improvements#4639

Merged
algorandskiy merged 4 commits into
algorand:masterfrom
brianolson:20221012_test_improvements
Oct 26, 2022
Merged

test: metrics improvements#4639
algorandskiy merged 4 commits into
algorand:masterfrom
brianolson:20221012_test_improvements

Conversation

@brianolson
Copy link
Copy Markdown
Contributor

Summary

Add local config "EnableUsageLog": true which adds 10Hz logging of CPU and heap usage, and adds /metrics algod_ram_usage heap bytes gauge.
metrics_delta.py gains --html-summary report fragment generation.
Fixes for block history scripts to deal with some real world data.

Test Plan

This has been use in manual testing for some weeks now.

@codecov
Copy link
Copy Markdown

codecov Bot commented Oct 12, 2022

Codecov Report

Merging #4639 (9edc24e) into master (fb332de) will decrease coverage by 0.02%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master    #4639      +/-   ##
==========================================
- Coverage   54.46%   54.44%   -0.03%     
==========================================
  Files         407      407              
  Lines       52389    52394       +5     
==========================================
- Hits        28534    28525       -9     
- Misses      21467    21480      +13     
- Partials     2388     2389       +1     
Impacted Files Coverage Δ
config/localTemplate.go 40.00% <ø> (ø)
logging/usage.go 0.00% <0.00%> (ø)
node/node.go 4.39% <0.00%> (-0.02%) ⬇️
network/wsPeer.go 66.50% <0.00%> (-1.95%) ⬇️
catchup/peerSelector.go 98.95% <0.00%> (-1.05%) ⬇️
ledger/acctupdates.go 69.59% <0.00%> (-0.60%) ⬇️
ledger/acctonline.go 78.12% <0.00%> (-0.53%) ⬇️
catchup/service.go 68.64% <0.00%> (-0.25%) ⬇️
network/wsNetwork.go 65.34% <0.00%> (-0.19%) ⬇️
ledger/accountdb.go 73.00% <0.00%> (-0.16%) ⬇️
... and 3 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@brianolson brianolson marked this pull request as ready for review October 12, 2022 16:43
Comment thread config/localTemplate.go Outdated

// EnableUsageLog enables 10Hz log of CPU and RAM usage.
// Also adds 'algod_ram_usage` (number of bytes in use) to /metrics
EnableUsageLog bool `version[23]:"false"`
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

bump version?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I don't think we need to for a new field not different than the Go field default.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

okay, now we have v24. Please update version[24]:"false" and I'll merge

@brianolson brianolson requested a review from icorderi October 19, 2022 20:25
@algorandskiy algorandskiy merged commit a3e90ad into algorand:master Oct 26, 2022
@algorandskiy algorandskiy changed the title test: 20221012 improvements test: metrics improvements Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants