Skip to content

Conversation

@bkchr
Copy link
Member

@bkchr bkchr commented Dec 1, 2025

Recently we introduced a change that was always force compacting a Rocksdb database when starting a node and after writing a lot of data. We found out that force compacting a huge RocksDB of more than 600GB takes quite some time (more than one hour) and this every time.

So, this pull request changes the compaction to only happen after warp sync (and genesis) when we reset the state column to some given state. This way we don't run it anymore on startup of the node and it should fix the problems we have seen with archive nodes.

Recently we introduced a change that was always force compacting a Rocksdb database when starting a node and
after writing a lot of data. We found out that force compacting a huge RocksDB of more than 600GB takes quite some time (more than one hour) and this every time.

So, this pull request changes the compaction to only happen after warp sync (and genesis) when we reset the state column to some given state.
This way we don't run it anymore on startup of the node and it should fix the problems we have seen with archive nodes.
@bkchr bkchr added the T0-node This PR/Issue is related to the topic “node”. label Dec 1, 2025
@bkchr
Copy link
Member Author

bkchr commented Dec 1, 2025

/cmd prdoc --audience node_operator --bump patch

@paritytech-workflow-stopper
Copy link

All GitHub workflows were cancelled due to failure one of the required jobs.
Failed workflow url: https://github.com/paritytech/polkadot-sdk/actions/runs/19830330643
Failed job name: check-runtime-migration

@bkchr bkchr added the A4-backport-stable2512 Pull request must be backported to the stable2512 release branch label Dec 2, 2025
@bkchr
Copy link
Member Author

bkchr commented Dec 3, 2025

/cmd fmt

@bkchr bkchr enabled auto-merge December 3, 2025 16:02
@bkchr bkchr added this pull request to the merge queue Dec 3, 2025
Merged via the queue into master with commit 5b0576c Dec 3, 2025
251 of 255 checks passed
@bkchr bkchr deleted the bkchr-force-compact-exposed branch December 3, 2025 18:12
paritytech-release-backport-bot bot pushed a commit that referenced this pull request Dec 3, 2025
Recently we introduced a change that was always force compacting a
Rocksdb database when starting a node and after writing a lot of data.
We found out that force compacting a huge RocksDB of more than 600GB
takes quite some time (more than one hour) and this every time.

So, this pull request changes the compaction to only happen after warp
sync (and genesis) when we reset the state column to some given state.
This way we don't run it anymore on startup of the node and it should
fix the problems we have seen with archive nodes.

---------

Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
(cherry picked from commit 5b0576c)
@paritytech-release-backport-bot

Successfully created backport PR for stable2512:

bkchr added a commit that referenced this pull request Dec 9, 2025
Backport #10495 into `stable2512` from bkchr.

See the
[documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md)
on how to use this bot.

<!--
  # To be used by other automation, do not modify:
  original-pr-number: #${pull_number}
-->

Co-authored-by: Bastian Köcher <[email protected]>
Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A4-backport-stable2512 Pull request must be backported to the stable2512 release branch T0-node This PR/Issue is related to the topic “node”.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants