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

tools: adapt loadgenerator to cluster testing #4324

Merged
merged 3 commits into from
Aug 2, 2022

Conversation

brianolson
Copy link
Contributor

Summary

add -d ALGORAND_DATA for use like pingpong
add -config '{json literal}'

Test Plan

This has recently been used extensively in manual testing.

add -d ALGORAND_DATA for use like pingpong
add -config '{json literal}'
cmd/loadgenerator/main.go Outdated Show resolved Hide resolved
var err error
nodeStatus, err = restClient.Status()
Copy link
Contributor

@cce cce Jul 29, 2022

Choose a reason for hiding this comment

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

oh OK without this change, multiple loadgenerators wouldn't necessarily all target the same block... but one might also miss the block (like we were seeing) if something slow happens between waitForRound and generateTransactions?

Copy link
Contributor

Choose a reason for hiding this comment

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

I can't think of any reason why you would miss the round by the time you get around to sending, unless the node you're talking to was running behind or something

Copy link
Contributor

@cce cce left a comment

Choose a reason for hiding this comment

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

LGTM modulo the linter recommendations and the merge conflicts created with #4324

@codecov
Copy link

codecov bot commented Jul 29, 2022

Codecov Report

Merging #4324 (bb0042c) into master (3eff232) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #4324   +/-   ##
=======================================
  Coverage   55.29%   55.29%           
=======================================
  Files         395      395           
  Lines       50334    50334           
=======================================
  Hits        27831    27831           
- Misses      20111    20117    +6     
+ Partials     2392     2386    -6     
Impacted Files Coverage Δ
cmd/algoh/blockWatcher.go 77.77% <0.00%> (-3.18%) ⬇️
node/node.go 23.01% <0.00%> (-2.39%) ⬇️
crypto/merkletrie/trie.go 66.42% <0.00%> (-2.19%) ⬇️
crypto/merkletrie/node.go 91.62% <0.00%> (-1.87%) ⬇️
catchup/peerSelector.go 98.95% <0.00%> (-1.05%) ⬇️
data/transactions/verify/txn.go 44.00% <0.00%> (-0.89%) ⬇️
ledger/acctupdates.go 69.92% <0.00%> (-0.61%) ⬇️
catchup/service.go 70.12% <0.00%> (ø)
util/db/dbutil.go 50.30% <0.00%> (+1.21%) ⬆️
ledger/tracker.go 79.31% <0.00%> (+1.29%) ⬆️
... and 3 more

Help us with your feedback. Take ten seconds to tell us how you rate us.

@cce cce marked this pull request as ready for review August 1, 2022 15:14
// Like shared/pingpong/accounts.go
func findRootKeys(algodDir string) []*crypto.SignatureSecrets {
keylist := make([]*crypto.SignatureSecrets, 0, 5)
err := filepath.Walk(algodDir, func(path string, info fs.FileInfo, err error) error {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit, I think filepath.Walk wants you to do this with the err:

Suggested change
err := filepath.Walk(algodDir, func(path string, info fs.FileInfo, err error) error {
err := filepath.Walk(algodDir, func(path string, info fs.FileInfo, err error) error {
if err != nil {
return err
}

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