From 00ca99bf67a42385cfe30fedbfb47920d37569a5 Mon Sep 17 00:00:00 2001 From: Joshua Shanks Date: Sat, 3 Oct 2020 16:27:03 -0700 Subject: [PATCH 1/2] GH-8728 add raft default values --- agent/config/default.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/agent/config/default.go b/agent/config/default.go index d2c2a2e404..17e769c4ac 100644 --- a/agent/config/default.go +++ b/agent/config/default.go @@ -125,6 +125,9 @@ func DefaultSource() Source { filter_default = true prefix_filter = [] } + raft_snapshot_threshold = ` + strconv.Itoa(int(cfg.RaftConfig.SnapshotThreshold)) + ` + raft_snapshot_interval = "` + cfg.RaftConfig.SnapshotInterval.String() + `" + raft_trailing_logs = ` + strconv.Itoa(int(cfg.RaftConfig.TrailingLogs)) + ` `, } From 2b0700fe3953baa5b3f816577e619042986fb8e3 Mon Sep 17 00:00:00 2001 From: Daniel Nephin Date: Tue, 18 May 2021 15:04:12 -0400 Subject: [PATCH 2/2] add changelog --- .changelog/8812.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .changelog/8812.txt diff --git a/.changelog/8812.txt b/.changelog/8812.txt new file mode 100644 index 0000000000..0393c7166d --- /dev/null +++ b/.changelog/8812.txt @@ -0,0 +1,3 @@ +```release-note:bug +api: include the default value of raft settings in the output of /v1/agent/self +```