From fb98df76b776474821968981e64a2fac47a10b96 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Fri, 21 Feb 2020 16:04:02 -0700 Subject: [PATCH] 4x DEFAULT_MAX_LEDGER_SLOTS to give nodes 3 hours of slots to repair from (#8388) automerge --- 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 23b7165de..ea3e1d720 100644 --- a/core/src/ledger_cleanup_service.rs +++ b/core/src/ledger_cleanup_service.rs @@ -12,11 +12,11 @@ use std::thread::{Builder, JoinHandle}; use std::time::Duration; // This is chosen to allow enough time for -// - To try and keep the RocksDB size under 128GB at 50k tps (100 slots take ~2GB). +// - To try and keep the RocksDB size under 512GB at 50k tps (100 slots take ~2GB). // - 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 // to catch back up to where it was when it stopped -pub const DEFAULT_MAX_LEDGER_SLOTS: u64 = 6400; +pub const DEFAULT_MAX_LEDGER_SLOTS: u64 = 270_000; // Remove a fixed number of slots at a time, it's more efficient than doing it one-by-one pub const DEFAULT_PURGE_BATCH_SIZE: u64 = 256;