Skip to content

Commit

Permalink
Tweak reconstruction batch size (#6668)
Browse files Browse the repository at this point in the history
Squashed commit of the following:

commit e5f2be5
Author: Michael Sproul <michael@sigmaprime.io>
Date:   Mon Dec 9 11:00:55 2024 +1100

    Tweak reconstruction batch size
  • Loading branch information
michaelsproul committed Dec 9, 2024
1 parent b9a723b commit e246544
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions beacon_node/beacon_chain/src/migrate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ const MIN_COMPACTION_PERIOD_SECONDS: u64 = 7200;
const COMPACTION_FINALITY_DISTANCE: u64 = 1024;
/// Maximum number of blocks applied in each reconstruction burst.
///
/// This limits the amount of time that the finalization migration is paused for.
const BLOCKS_PER_RECONSTRUCTION: usize = 8192 * 4;
/// This limits the amount of time that the finalization migration is paused for. We set this
/// conservatively because pausing the finalization migration for too long can cause hot state
/// cache misses and excessive disk use.
const BLOCKS_PER_RECONSTRUCTION: usize = 1024;

/// Default number of epochs to wait between finalization migrations.
pub const DEFAULT_EPOCHS_PER_MIGRATION: u64 = 1;
Expand Down

0 comments on commit e246544

Please sign in to comment.