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

Spoofed compute costs metrics #11944

Open
Ekleog-NEAR opened this issue Aug 14, 2024 · 0 comments
Open

Spoofed compute costs metrics #11944

Ekleog-NEAR opened this issue Aug 14, 2024 · 0 comments

Comments

@Ekleog-NEAR
Copy link
Collaborator

Spoofed compute costs metrics

Context: this discussion

When updating costs, we currently pick numbers out of the estimator, adjust them based on our enlightened guesses, make some back-of-the-envelope computations to check everything won't break, update and hope for the best. This also forces us to always keep a large safety margin, because we're pretty hand-wavy in how we check numbers against our real-world use case.

In order to improve on that, we should at least check that the compute costs do match the wall clock time for our prospective gas costs.

One way to do that is spoofed compute costs. A patched node can report compute costs metrics that are not the protocol-defined compute costs, but the prospective compute costs. Based on this, we can then look at grafana the compute cost vs. wall clock time ratio, and confirm that we do not enter the danger zone in our live use cases.

This is not perfect, but it should be enough to give a significant boost in confidence that our prospective gas cost changes are correct.

This issue tracks setting up some minimal infrastructure, so that these patches become as easy to make as possible.

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

No branches or pull requests

1 participant