Skip to content

feat(hermes): configurable cache size #2547

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

Merged
merged 4 commits into from
Apr 2, 2025

Conversation

tejasbadadare
Copy link
Contributor

@tejasbadadare tejasbadadare commented Apr 2, 2025

Summary

Make the cache size configurable, bump default to 1600 slots.

Rationale

This was motivated by the need to store more 1000 slots (400s) of data in Hermes to serve TWAPs from. The size is now configurable with a default of 1600 slots (640s), which is sufficient for our advertised max of 600s.

How has this been tested?

  • Current tests cover my changes
  • Added new tests
  • Manually tested the code

Copy link

vercel bot commented Apr 2, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

6 Skipped Deployments
Name Status Preview Comments Updated (UTC)
api-reference ⬜️ Ignored (Inspect) Visit Preview Apr 2, 2025 6:34pm
component-library ⬜️ Ignored (Inspect) Visit Preview Apr 2, 2025 6:34pm
entropy-debugger ⬜️ Ignored (Inspect) Visit Preview Apr 2, 2025 6:34pm
insights ⬜️ Ignored (Inspect) Visit Preview Apr 2, 2025 6:34pm
proposals ⬜️ Ignored (Inspect) Visit Preview Apr 2, 2025 6:34pm
staking ⬜️ Ignored (Inspect) Visit Preview Apr 2, 2025 6:34pm

Copy link
Contributor Author

Choose a reason for hiding this comment

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

don't know why this diff is being shown, this file isn't different vs main..

@tejasbadadare tejasbadadare merged commit d5b2fd7 into main Apr 2, 2025
9 checks passed
@tejasbadadare tejasbadadare deleted the tb/hermes/configurable-cache-size branch April 2, 2025 20:29
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