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

Faster archiver restart #1980

Merged
merged 3 commits into from
Sep 20, 2023
Merged

Faster archiver restart #1980

merged 3 commits into from
Sep 20, 2023

Conversation

nazar-pc
Copy link
Member

If you ever restarted your node and though that archiver takes a really long time to start you were absolutely right!

This set of changes turns this (note timestamps):

2023-09-19 01:18:43.110  [Consensus] 🏷  Local node identity is: 12D3KooWRcri8BhpLfMYVKCh5oEP1YCdQfhy7pEKHcmmESPTkcaq    
2023-09-19 01:19:32.272  [Consensus] Last archived block 171381    
2023-09-19 01:19:32.272  [Consensus] Archiving already produced blocks 171382..=181309    
2023-09-19 01:22:24.775  [Consensus] 🧑‍🌾 Starting Subspace Authorship worker    

Into this:

2023-09-19 03:16:56.388  [Consensus] 🏷  Local node identity is: 12D3KooWRcri8BhpLfMYVKCh5oEP1YCdQfhy7pEKHcmmESPTkcaq    
2023-09-19 03:16:56.400  [Consensus] Last archived block 171381    
2023-09-19 03:16:56.400  [Consensus] Archiving already produced blocks 171382..=181309    
2023-09-19 03:17:12.856  [Consensus] 🧑‍🌾 Starting Subspace Authorship worker    

That is 3m41s vs 16s initialization time!

I expect similarly massive changes in block import performance (for essentialy empty blocks) once paritytech/polkadot-sdk#1598 or similar is incorporated.

Resolves #1852

Code contributor checklist:

@nazar-pc
Copy link
Member Author

Rebased on main, no other changes

@nazar-pc nazar-pc merged commit 731c755 into main Sep 20, 2023
9 checks passed
@nazar-pc nazar-pc deleted the faster-archiver-restart branch September 20, 2023 23:25
@nazar-pc nazar-pc mentioned this pull request Sep 23, 2023
1 task
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.

Optimize archiver initialization during node restart
2 participants