From aa4652d965fd66874b1082d9ac98b349952db92d Mon Sep 17 00:00:00 2001 From: sfc-gh-tclinkenbeard Date: Mon, 9 Nov 2020 19:15:51 -0800 Subject: [PATCH] Lower DELAY_CC_WORST_FIT_CANDIDACY_SECONDS for LowLatencyWorkload --- fdbserver/workloads/LowLatency.actor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fdbserver/workloads/LowLatency.actor.cpp b/fdbserver/workloads/LowLatency.actor.cpp index f9d807f095..b9fd73f107 100644 --- a/fdbserver/workloads/LowLatency.actor.cpp +++ b/fdbserver/workloads/LowLatency.actor.cpp @@ -50,6 +50,10 @@ struct LowLatencyWorkload : TestWorkload { virtual std::string description() { return "LowLatency"; } virtual Future setup( Database const& cx ) { + if (g_network->isSimulated()) { + ASSERT(const_cast(SERVER_KNOBS)->setKnob("min_delay_cc_worst_fit_candidacy_seconds", "5")); + ASSERT(const_cast(SERVER_KNOBS)->setKnob("max_delay_cc_worst_fit_candidacy_seconds", "10")); + } return Void(); }