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

Geyser stream of full blocks is lagging/falling behind #307

Open
grooviegermanikus opened this issue Mar 26, 2024 · 5 comments
Open

Geyser stream of full blocks is lagging/falling behind #307

grooviegermanikus opened this issue Mar 26, 2024 · 5 comments

Comments

@grooviegermanikus
Copy link
Contributor

Problem

The full block stream cannot keep up with slot progression on the chain and also not with block meta sent via geyser.

Lag is approx 42 slots in 60 seconds (mainnet)!

Did not observe that lag on testnet.

@grooviegermanikus
Copy link
Contributor Author

the effect is also dependent on the downstream network link speed

@grooviegermanikus
Copy link
Contributor Author

grooviegermanikus commented Mar 26, 2024

found that this configuration changes in the GrpcClient helps:

  • buffer_size: set to 64k (default: 1024)
  • initial_stream_window_size: set to 4194304 (4mb, default: 2mb)

related - there is a documentation issue with h2/hyper regarding these parameters (issue)

@Juanito87
Copy link
Contributor

Are you able to process the stream quick enough? Do you have any kind of bandwidth limitation downstream?
We have observed in the past that if the compute can't manage the data sent by geyser quickly enough, or the bandwidth is not enough to send all data timely, geyser stream will lag behind.

@grooviegermanikus
Copy link
Contributor Author

the strange thing is that Data gets soaked into black hole. wonder how grpc service could spot that issue.
do you think that there is back pressure somewhere?

@fanatid
Copy link
Collaborator

fanatid commented Apr 6, 2024

@grooviegermanikus can you please try version 1.14.1? PRs #313 & #315 should improve performance

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

3 participants