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

Gas Price estimation is unstable #22715

Closed
junderw opened this issue Apr 21, 2021 · 3 comments
Closed

Gas Price estimation is unstable #22715

junderw opened this issue Apr 21, 2021 · 3 comments
Assignees
Labels

Comments

@junderw
Copy link

junderw commented Apr 21, 2021

System information

Geth version: v1.10.0 (but this issue has been persisting for a while across many versions)
OS & Version: Linux

Expected behaviour

Gas Price estimation should be at least semi-consistent. Sudden drops of 97% should not be happening.

Actual behaviour

We have multiple mainnet geth nodes (for our prod, staging environments etc.) and they all consistently dip in their estimations from the "market price" to low-single-digit gwei. See the following graph for a sample.

This usually only happens during times of increased network congestion. But sometimes we get the occasional dip-to-5-gwei once in a while

スクリーンショット_2021-04-22_07-32-33

Steps to reproduce the behaviour

  • Run geth 24/7
  • Poll gas price once every minute and plot a graph
  • See huge valleys of dipping down to single-digit gwei mostly consistent across multiple instances

Workaround

  • Detecting abnormal valleys and triggering a geth restart usually fixes the issue for a couple of hours.
@junderw
Copy link
Author

junderw commented Apr 22, 2021

Our infrastructure engineer said that this might be occurring after blocks where abnormally low gas price txes have made it in the block (due to connections with miners etc.)

Which could make sense if we assume the occasional min-timing between instances was due to sync lag on one of the instances.

Also makes sense since the CPU, IOWAIT, etc. metrics are pretty all over the place between instances where as these valleys are mostly in lock step between all the instances.

@bulgakovk
Copy link

Also faced the same issue and posted a possible root reason here: #22705 (comment)

@holiman
Copy link
Contributor

holiman commented Apr 28, 2021

This should be closed by #22722 , feel free to reopen if the problem persists

@holiman holiman closed this as completed Apr 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants