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

Upgrade to IAVL 1 #8718

Open
mhofman opened this issue Jan 8, 2024 · 1 comment
Open

Upgrade to IAVL 1 #8718

mhofman opened this issue Jan 8, 2024 · 1 comment
Assignees
Labels
agoric-cosmos enhancement New feature or request performance Performance related issues state-sync state sync related

Comments

@mhofman
Copy link
Member

mhofman commented Jan 8, 2024

What is the Problem Being Solved?

We are experiencing slowdowns related to large state on mainnet. In particular, iteration during state-sync export / restore, and pruning after large data migrations. Those problems are supposed to be mitigated with IAVL 1, which is default for new chains in cosmos-sdk 0.50, and supposed to be compatible with older SDKs as well.

Description of the Design

Investigate what it would take to switch to IAVL 1 once we reach cosmos-sdk 0.47, optionally how to migrate an existing state (for both pruned states and archive node states), and if it solves some of the performance issues as expected: perform state-sync, measure pruning perf after a large state update like the one needed for #7212

Security Considerations

TBD

Scaling Considerations

Is there a way to perform at least part of the migration offline? Should we attempt to migrate archive nodes? Should a migration be done manually through state-sync restore?

Test Plan

A genesis export cannot be used to test this kind of migration since by definition it prunes the state.
However if the IAVL DB is really a drop in replacement, it might be a non consensus affecting change, meaning a hot patch might be enough to test.

Upgrade Considerations

Should be deployed as a chain software upgrade as a precaution.

@mhofman mhofman added enhancement New feature or request performance Performance related issues agoric-cosmos state-sync state sync related labels Jan 8, 2024
@JeancarloBarrios
Copy link
Contributor

This will be solved as part of.50 upgrade

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agoric-cosmos enhancement New feature or request performance Performance related issues state-sync state sync related
Projects
None yet
Development

No branches or pull requests

2 participants