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

Bugfix/metering #517

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open

Bugfix/metering #517

wants to merge 4 commits into from

Conversation

colindickson
Copy link
Contributor

@colindickson colindickson commented Aug 13, 2024

plan to fix metering:

  • start by removing live bytes read at the old spot because this happens after some StepIrreversibles are converted to StepNewIrreversibles.
  • intercept the blocks in the hub to meter all blocks coming through

"written_bytes": float64(bytesWritten),
"read_bytes": float64(bytesRead),
"wasm_input_bytes": float64(inputBytes),
"message_count": 1,
Copy link
Contributor

Choose a reason for hiding this comment

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

y'avait-il pas déjà une convention d'avoir l'unité à la fin? donc uncompressed_read_bytes plutôt que uncompressed_bytes_read ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good point, i will make the change


return streamHandler.ProcessBlock(blk, obj)
})

Copy link
Contributor

Choose a reason for hiding this comment

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

ok, donc le tier2 va lire des blocks, et ici c'est la source elle-même qui va être metered, avec des métriques différentes, fack on fera l'aggrégation à la sortie, correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the tier2 doesn't play into this. tier2 does not have live blocks and so the blockstream doesn't need to be instrumented. all of the tier2's data sources are dstores which are metered.

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.

2 participants