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

[Feature]: Limit some query that can cause OOM on cosmos node. #1728

Open
silentnoname opened this issue Oct 4, 2024 · 1 comment
Open

Comments

@silentnoname
Copy link

Summary

In Oct 3, Cosmoshub Lava provider's QOS availability score dropped so much
image
And many provider's cosmos node met oom issue. (can check in discord incentivized-cosmos-hub channel)
I have checked the log when the cosmos node ram continuesly increased.
/cosmos/tx/v1beta1/txs?query=tx.height%3E%3D22022712&query=tx.height%3C%3D22022752&pagination.limit=100&pagination.offset=0 was the query which caused the OOM issue

Is it possible to limit this kind of query?

Problem Definition

/cosmos/tx/v1beta1/txs?query=tx.height%3E%3D22022712&query=tx.height%3C%3D22022752&pagination.limit=100&pagination.offset=0 this kind of api query can cause cosmos node memory leak.

Proposed Feature

Limit the query like /cosmos/tx/v1beta1/txs?query=tx.height%3E%3D22022712&query=tx.height%3C%3D22022752&pagination.limit=100&pagination.offset=0 on cosmos chains apis

@ranlavanet
Copy link
Collaborator

Hi @silentnoname we are taking this into consideration internally planning on how we can solve this issue, will update on the progress.

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

2 participants