From 744a69f818868316afd4ceb0644e25425333ac8d Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Mon, 30 Aug 2021 22:34:13 +0000 Subject: [PATCH] Fix shreds-to-hours/days estimations (#19477) (#19503) (cherry picked from commit a3bef2e5373e6995c99702b19280f741ad622b5e) Co-authored-by: Tyera Eulberg --- core/src/ledger_cleanup_service.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/ledger_cleanup_service.rs b/core/src/ledger_cleanup_service.rs index 195601e873..574e1dc7a2 100644 --- a/core/src/ledger_cleanup_service.rs +++ b/core/src/ledger_cleanup_service.rs @@ -15,8 +15,8 @@ use std::time::Duration; // - To try and keep the RocksDB size under 400GB: // Seeing about 1600b/shred, using 2000b/shred for margin, so 200m shreds can be stored in 400gb. -// at 5k shreds/slot at 50k tps, this is 500k slots (~5 hours). -// At idle, 60 shreds/slot this is about 4m slots (18 days) +// at 5k shreds/slot at 50k tps, this is 40k slots (~4.4 hours). +// At idle, 60 shreds/slot this is about 3.33m slots (~15 days) // This is chosen to allow enough time for // - A validator to download a snapshot from a peer and boot from it // - To make sure that if a validator needs to reboot from its own snapshot, it has enough slots locally