Disable GC by default

This commit is contained in:
Konstantin Knizhnik
2021-04-22 11:30:27 +03:00
parent da9508716d
commit ed30f2096c
6 changed files with 52 additions and 37 deletions

View File

@@ -19,7 +19,7 @@ use slog::Drain;
use pageserver::{page_service, tui, zenith_repo_dir, PageServerConf};
const DEFAULT_GC_HORIZON: u64 = 64 * 1024 * 1024;
const DEFAULT_GC_HORIZON: u64 = 0; //64 * 1024 * 1024;
fn main() -> Result<()> {
let arg_matches = App::new("Zenith page server")
@@ -47,10 +47,15 @@ fn main() -> Result<()> {
)
.arg(
Arg::with_name("gc_horizon")
.short("g")
.long("gc_horizon")
.takes_value(true)
.help("Garbage colletor horizon"),
.help("Distance from current LSN to perform all wal records cleanup"),
)
.arg(
Arg::with_name("gc_period")
.long("gc_period")
.takes_value(true)
.help("Interval between garbage collector iterations"),
)
.get_matches();