From f3df3e9b69aa5db29e5d08063fa67bd135786442 Mon Sep 17 00:00:00 2001 From: Nathan VanBenschoten Date: Wed, 24 Oct 2018 17:30:39 -0400 Subject: [PATCH] closedts: bump kv.closed_timestamp.target_duration default This change bumps the closed timestamp target duration to 30s. We're not using the timestamp except in special cases in 2.1, so it doesn't make sense for it to be so low. Release note: None --- docs/generated/settings/settings.html | 2 +- pkg/storage/closedts/setting.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/generated/settings/settings.html b/docs/generated/settings/settings.html index e7eb2da4a9df..328476debc89 100644 --- a/docs/generated/settings/settings.html +++ b/docs/generated/settings/settings.html @@ -26,7 +26,7 @@ kv.bulk_sst.sync_sizebyte size2.0 MiBthreshold after which non-Rocks SST writes must fsync (0 disables) kv.closed_timestamp.close_fractionfloat0.2fraction of closed timestamp target duration specifying how frequently the closed timestamp is advanced kv.closed_timestamp.follower_reads_enabledbooleanfalseallow (all) replicas to serve consistent historical reads based on closed timestamp information -kv.closed_timestamp.target_durationduration5sif nonzero, attempt to provide closed timestamp notifications for timestamps trailing cluster time by approximately this duration +kv.closed_timestamp.target_durationduration30sif nonzero, attempt to provide closed timestamp notifications for timestamps trailing cluster time by approximately this duration kv.raft.command.max_sizebyte size64 MiBmaximum size of a raft command kv.raft_log.synchronizebooleantrueset to true to synchronize on Raft log writes to persistent storage ('false' risks data loss) kv.range.backpressure_range_size_multiplierfloat2multiple of range_max_bytes that a range is allowed to grow to without splitting before writes to that range are blocked, or 0 to disable diff --git a/pkg/storage/closedts/setting.go b/pkg/storage/closedts/setting.go index 3456a56be4dd..58465318445d 100644 --- a/pkg/storage/closedts/setting.go +++ b/pkg/storage/closedts/setting.go @@ -25,7 +25,7 @@ import ( var TargetDuration = settings.RegisterNonNegativeDurationSetting( "kv.closed_timestamp.target_duration", "if nonzero, attempt to provide closed timestamp notifications for timestamps trailing cluster time by approximately this duration", - 5*time.Second, + 30*time.Second, ) // CloseFraction is the fraction of TargetDuration determining how often closed