From 4cb4d546cd8eb419e491f4bba32d1075e672d4a8 Mon Sep 17 00:00:00 2001 From: Igor Canadi Date: Thu, 21 May 2015 14:22:16 -0400 Subject: [PATCH] Set stats_dump_period_sec to 600 by default Summary: Having stats in our LOG more often will help a lot with perf debugging. Test Plan: none Reviewers: sdong, MarkCallaghan Reviewed By: MarkCallaghan Subscribers: dhruba, leveldb Differential Revision: https://reviews.facebook.net/D38781 --- include/rocksdb/options.h | 2 +- util/options.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/rocksdb/options.h b/include/rocksdb/options.h index ea11b8132..0090aa8af 100644 --- a/include/rocksdb/options.h +++ b/include/rocksdb/options.h @@ -948,7 +948,7 @@ struct DBOptions { bool skip_log_error_on_recovery; // if not zero, dump rocksdb.stats to LOG every stats_dump_period_sec - // Default: 3600 (1 hour) + // Default: 600 (10 min) unsigned int stats_dump_period_sec; // If set true, will hint the underlying file system that the file diff --git a/util/options.cc b/util/options.cc index 6bb462aa5..083de0308 100644 --- a/util/options.cc +++ b/util/options.cc @@ -249,7 +249,7 @@ DBOptions::DBOptions() allow_mmap_writes(false), is_fd_close_on_exec(true), skip_log_error_on_recovery(false), - stats_dump_period_sec(3600), + stats_dump_period_sec(600), advise_random_on_open(true), db_write_buffer_size(0), access_hint_on_compaction_start(NORMAL),