Merge pull request #4044 from sfc-gh-tclinkenbeard/fix-slow-sim-recovery

Lower DELAY_CC_WORST_FIT_CANDIDACY_SECONDS for LowLatencyWorkload
This commit is contained in:
Evan Tschannen 2020-11-18 10:28:53 -08:00 committed by GitHub
commit 7cabe39aae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,6 +50,10 @@ struct LowLatencyWorkload : TestWorkload {
virtual std::string description() { return "LowLatency"; }
virtual Future<Void> setup( Database const& cx ) {
if (g_network->isSimulated()) {
ASSERT(const_cast<ServerKnobs*>(SERVER_KNOBS)->setKnob("min_delay_cc_worst_fit_candidacy_seconds", "5"));
ASSERT(const_cast<ServerKnobs*>(SERVER_KNOBS)->setKnob("max_delay_cc_worst_fit_candidacy_seconds", "10"));
}
return Void();
}