diff --git a/HISTORY.md b/HISTORY.md index 16ee9609d5..da9997ee0b 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -7,6 +7,7 @@ * If options.max_write_buffer_number > 3, writes will be slowed down when writing to the last write buffer to delay a full stop. * Introduce CompactionJobInfo::compaction_reason, this field include the reason to trigger the compaction. * After slow down is triggered, if estimated pending compaction bytes keep increasing, slowdown more. +* Increase default options.delayed_write_rate to 2MB/s. ## 4.3.0 (12/8/2015) ### New Features diff --git a/db/db_bench.cc b/db/db_bench.cc index 48918b8547..efa26196c2 100644 --- a/db/db_bench.cc +++ b/db/db_bench.cc @@ -642,7 +642,7 @@ DEFINE_uint64(soft_pending_compaction_bytes_limit, 64ull * 1024 * 1024 * 1024, DEFINE_uint64(hard_pending_compaction_bytes_limit, 128ull * 1024 * 1024 * 1024, "Stop writes if pending compaction bytes exceed this number"); -DEFINE_uint64(delayed_write_rate, 2097152u, +DEFINE_uint64(delayed_write_rate, 8388608u, "Limited bytes allowed to DB when soft_rate_limit or " "level0_slowdown_writes_trigger triggers"); diff --git a/include/rocksdb/options.h b/include/rocksdb/options.h index 8acddbfb75..fb35b4108a 100644 --- a/include/rocksdb/options.h +++ b/include/rocksdb/options.h @@ -1170,7 +1170,7 @@ struct DBOptions { // gets behind further. // Unit: byte per second. // - // Default: 1MB/s + // Default: 2MB/s uint64_t delayed_write_rate; // If true, then DB::Open() will not update the statistics used to optimize diff --git a/util/options.cc b/util/options.cc index ad7dd9adc7..09ae10360d 100644 --- a/util/options.cc +++ b/util/options.cc @@ -261,7 +261,7 @@ DBOptions::DBOptions() wal_bytes_per_sync(0), listeners(), enable_thread_tracking(false), - delayed_write_rate(1024U * 1024U), + delayed_write_rate(2 * 1024U * 1024U), skip_stats_update_on_db_open(false), wal_recovery_mode(WALRecoveryMode::kTolerateCorruptedTailRecords), row_cache(nullptr),