-
Notifications
You must be signed in to change notification settings - Fork 4.7k
add validator option --accounts-db-skip-shrink #19028
Conversation
e70a5bf
to
d068b38
Compare
d068b38
to
b5b3fac
Compare
verified this disables shrink on a validator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm! one typo nit
I'm thinking of plumbing this into the multinode/net
scripts. Are there any other accounts db or index validator parameters that you think would be useful to be able to toggle from the testnet run commands?
validator/src/main.rs
Outdated
Arg::with_name("accounts_db_skip_shrink") | ||
.long("accounts-db-skip-shrink") | ||
.help("Enables faster starting of validators by skipping shrink. \ | ||
This option if for use during testing."), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This option if for use during testing."), | |
This option is for use during testing."), |
Pull request has been modified.
Any plans to backport this one? If not, can we add a hidden stub flag on v1.7 for compatibility |
I have no objections to back porting it. It should not add risk if I did it right ;-) |
Codecov Report
@@ Coverage Diff @@
## master #19028 +/- ##
=========================================
- Coverage 82.8% 82.8% -0.1%
=========================================
Files 449 449
Lines 127997 128002 +5
=========================================
+ Hits 105993 105994 +1
- Misses 22004 22008 +4 |
* add validator option --accounts-db-skip-shrink * typo (cherry picked from commit 3280ae3) # Conflicts: # core/tests/snapshots.rs # ledger/src/bank_forks_utils.rs # ledger/src/blockstore_processor.rs # replica-node/src/replica_node.rs # runtime/src/snapshot_utils.rs
* add validator option --accounts-db-skip-shrink * typo (cherry picked from commit 3280ae3) # Conflicts: # core/tests/snapshots.rs # ledger/src/bank_forks_utils.rs # ledger/src/blockstore_processor.rs # replica-node/src/replica_node.rs # runtime/src/snapshot_utils.rs
) * add validator option --accounts-db-skip-shrink (#19028) * add validator option --accounts-db-skip-shrink * typo (cherry picked from commit 3280ae3) # Conflicts: # core/tests/snapshots.rs # ledger/src/bank_forks_utils.rs # ledger/src/blockstore_processor.rs # replica-node/src/replica_node.rs # runtime/src/snapshot_utils.rs * Fix conflicts Co-authored-by: Jeff Washington (jwash) <[email protected]> Co-authored-by: Tyera Eulberg <[email protected]>
Problem
When restarting validators with large snapshots, shrink can take hours. This option is useful to more quickly get to other troublesome parts of validator startup while debugging the system.
Summary of Changes
Fixes #