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

Add in-node RPC cache, optimize getloaninfo, refactor getburninfo #1327

Merged
merged 11 commits into from
Jun 5, 2022

Conversation

prasannavl
Copy link
Member

@prasannavl prasannavl commented Jun 4, 2022

/kind feature

  • Adds support for rpccache=0/1/2 defaulting to 1 - all.
  • Auto cache one block height of data of each RPC call for each parameter set for common non-wallet get/list RPCs. Node being re-queried for data per block that doesn't change is being observed as a common pattern, esp, across heavy users like Ocean infrastructure. While these are better optimized with infrastructure level cache, a thin optional node level caches, does help with requests that do hit the node. Particularly, since the cache by-passes the chain state locks entirely.
  • In addition, also remove BlockUntilSyncedToCurrentChain() on some of the list APIs, where this is not strictly necessary.
  • Rewrite of getloaninfo to optimize it for parallel cores.
  • Refactors getburninfo.

@prasannavl prasannavl changed the title Add in-node RPC cache Add in-node RPC cache, optimize getloaninfo, refactor getburninfo Jun 5, 2022
@prasannavl prasannavl merged commit ecc0a3b into master Jun 5, 2022
@prasannavl prasannavl deleted the pvl/add-in-node-rpc-cache branch June 5, 2022 23:53
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