Skip to content

Faster archiver restart#1980

Merged
nazar-pc merged 3 commits intomainfrom
faster-archiver-restart
Sep 20, 2023
Merged

Faster archiver restart#1980
nazar-pc merged 3 commits intomainfrom
faster-archiver-restart

Conversation

@nazar-pc
Copy link
Copy Markdown
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 nazar-pc force-pushed the faster-archiver-restart branch from 25a4f3e to 9fd90d4 Compare September 20, 2023 07:26
@nazar-pc
Copy link
Copy Markdown
Member Author

Rebased on main, no other changes

@nazar-pc nazar-pc merged commit 731c755 into main Sep 20, 2023
@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