Create new ConfigKnobOverrides and ManualKnobOverrides classes

This commit is contained in:
sfc-gh-tclinkenbeard 2021-05-12 10:12:37 -07:00
parent 8e5c396aca
commit 9c844916d8
8 changed files with 139 additions and 64 deletions

View File

@ -45,10 +45,12 @@ bool ConfigFollowerInterface::operator!=(ConfigFollowerInterface const& rhs) con
return !(*this == rhs); return !(*this == rhs);
} }
ConfigClassSet ConfigClassSet::fromParamString(std::string const& paramString) { ConfigClassSet::ConfigClassSet() = default;
// TODO: Validate input and implement
ConfigClassSet result; ConfigClassSet::ConfigClassSet(VectorRef<KeyRef> configClasses) {
return result; for (const auto& configClass : configClasses) {
classes.insert(configClass);
}
} }
bool ConfigClassSet::contains(KeyRef configClass) const { bool ConfigClassSet::contains(KeyRef configClass) const {

View File

@ -27,14 +27,14 @@
class ConfigClassSet { class ConfigClassSet {
std::set<Key> classes; std::set<Key> classes;
public: public:
static constexpr FileIdentifier file_identifier = 9854021; static constexpr FileIdentifier file_identifier = 9854021;
bool operator==(ConfigClassSet const& rhs) const { return classes == rhs.classes; } bool operator==(ConfigClassSet const& rhs) const { return classes == rhs.classes; }
bool operator!=(ConfigClassSet const& rhs) const { return !(*this == rhs); } bool operator!=(ConfigClassSet const& rhs) const { return !(*this == rhs); }
static ConfigClassSet fromParamString(std::string const& paramString); ConfigClassSet();
ConfigClassSet(VectorRef<KeyRef> configClasses);
bool contains(KeyRef configClass) const; bool contains(KeyRef configClass) const;

View File

@ -27,32 +27,109 @@
namespace { namespace {
const KeyRef configClassesKey = "configClasses"_sr; const KeyRef configPathKey = "configPath"_sr;
const KeyRef lastSeenVersionKey = "lastSeenVersion"_sr; const KeyRef lastSeenVersionKey = "lastSeenVersion"_sr;
const KeyRangeRef knobOverrideKeys = KeyRangeRef("knobOverride/"_sr, "knobOverride0"_sr); const KeyRangeRef knobOverrideKeys = KeyRangeRef("knobOverride/"_sr, "knobOverride0"_sr);
bool updateSingleKnob(Key knobName, Value knobValue) {
return false;
}
template <class K, class... Rest>
bool updateSingleKnob(Key knobName, Value knobValue, K& k, Rest&... rest) {
if (k.setKnob(knobName.toString(), knobValue.toString())) {
return true;
} else {
return updateSingleKnob(knobName, knobValue, rest...);
}
}
class ConfigKnobOverrides {
Standalone<VectorRef<KeyRef>> configPath;
std::map<Key, std::map<Key, Value>> configClassToKnobToValue;
public:
ConfigKnobOverrides() = default;
ConfigKnobOverrides(std::string const& paramString) {
// TODO: Validate string
// FIXME: Fix this implementation
/*
auto b = paramString.begin();
while (b != paramString.end()) {
auto e = std::find(b, paramString.end(), '/');
configPath.emplace_back_deep(configPath.arena(), reinterpret_cast<uint8_t const *>(&(*b)), e-b);
if (e != paramString.end()) {
b = e+1;
}
}
*/
}
ConfigClassSet getConfigClassSet() const { return ConfigClassSet(configPath); }
void set(KeyRef configClass, KeyRef knobName, ValueRef value) {
configClassToKnobToValue[configClass][knobName] = value;
}
void remove(KeyRef configClass, KeyRef knobName) { configClassToKnobToValue[configClass].erase(knobName); }
template <class... KS>
void update(KS&... knobCollections) const {
for (const auto& configClass : configPath) {
const auto& knobToValue = configClassToKnobToValue.find(configClass);
if (knobToValue != configClassToKnobToValue.end()) {
for (const auto& [knobName, knobValue] : knobToValue->second) {
// Assert here because we should be validating on the client
ASSERT(updateSingleKnob(knobName, knobValue, knobCollections...));
}
}
}
}
bool hasSameConfigPath(ConfigKnobOverrides const& other) const { return configPath == other.configPath; }
template <class Ar>
void serialize(Ar& ar) {
serializer(ar, configPath);
}
};
class ManualKnobOverrides {
std::map<Key, Value> overrides;
public:
ManualKnobOverrides(std::map<Key, Value>&& overrides) : overrides(std::move(overrides)) {}
template <class... KS>
void update(KS&... knobCollections) const {
for (const auto& [knobName, knobValue] : overrides) {
if (!updateSingleKnob(knobName, knobValue, knobCollections...)) {
fprintf(stderr, "WARNING: Unrecognized knob option '%s'\n", knobName.toString().c_str());
TraceEvent(SevWarnAlways, "UnrecognizedKnobOption").detail("Knob", printable(knobName));
}
}
}
};
} // namespace } // namespace
class LocalConfigurationImpl { class LocalConfigurationImpl {
IKeyValueStore* kvStore; // FIXME: fix leaks? IKeyValueStore* kvStore; // FIXME: fix leaks?
ConfigClassSet configClasses;
Version lastSeenVersion { 0 }; Version lastSeenVersion { 0 };
Future<Void> initFuture; Future<Void> initFuture;
FlowKnobs flowKnobs; FlowKnobs flowKnobs;
ClientKnobs clientKnobs; ClientKnobs clientKnobs;
ServerKnobs serverKnobs; ServerKnobs serverKnobs;
TestKnobs testKnobs; TestKnobs testKnobs;
std::map<Key, Value> manuallyOverriddenKnobs; ManualKnobOverrides manualKnobOverrides;
std::map<ConfigKey, Value> configDatabaseOverriddenKnobs; ConfigKnobOverrides configKnobOverrides;
ACTOR static Future<Void> saveConfigClasses(LocalConfigurationImpl* self) { ACTOR static Future<Void> saveConfigPath(LocalConfigurationImpl* self) {
self->kvStore->set(KeyValueRef(configClassesKey, BinaryWriter::toValue(self->configClasses, IncludeVersion()))); self->kvStore->set(
KeyValueRef(configPathKey, BinaryWriter::toValue(self->configKnobOverrides, IncludeVersion())));
wait(self->kvStore->commit()); wait(self->kvStore->commit());
return Void(); return Void();
} }
ACTOR static Future<Void> clearKVStore(LocalConfigurationImpl *self) { ACTOR static Future<Void> clearKVStore(LocalConfigurationImpl *self) {
self->kvStore->clear(singleKeyRange(configClassesKey)); self->kvStore->clear(singleKeyRange(configPathKey));
self->kvStore->clear(knobOverrideKeys); self->kvStore->clear(knobOverrideKeys);
wait(self->kvStore->commit()); wait(self->kvStore->commit());
return Void(); return Void();
@ -73,36 +150,30 @@ class LocalConfigurationImpl {
ACTOR static Future<Void> init(LocalConfigurationImpl* self) { ACTOR static Future<Void> init(LocalConfigurationImpl* self) {
wait(self->kvStore->init()); wait(self->kvStore->init());
wait(getLastSeenVersion(self)); wait(getLastSeenVersion(self));
state Optional<Value> storedConfigClassesValue = wait(self->kvStore->readValue(configClassesKey)); state Optional<Value> storedConfigPathValue = wait(self->kvStore->readValue(configPathKey));
if (!storedConfigClassesValue.present()) { if (!storedConfigPathValue.present()) {
wait(saveConfigClasses(self)); wait(saveConfigPath(self));
self->updateInMemoryKnobs(); self->updateInMemoryKnobs();
return Void(); return Void();
} }
state ConfigClassSet storedConfigClasses = BinaryReader::fromStringRef<ConfigClassSet>(storedConfigClassesValue.get(), IncludeVersion()); state ConfigKnobOverrides storedConfigPath =
if (storedConfigClasses != self->configClasses) { BinaryReader::fromStringRef<ConfigKnobOverrides>(storedConfigPathValue.get(), IncludeVersion());
if (!storedConfigPath.hasSameConfigPath(self->configKnobOverrides)) {
// All local information is outdated // All local information is outdated
wait(clearKVStore(self)); wait(clearKVStore(self));
wait(saveConfigClasses(self)); wait(saveConfigPath(self));
self->updateInMemoryKnobs(); self->updateInMemoryKnobs();
return Void(); return Void();
} }
Standalone<RangeResultRef> range = wait(self->kvStore->readRange(knobOverrideKeys)); Standalone<RangeResultRef> range = wait(self->kvStore->readRange(knobOverrideKeys));
for (const auto &kv : range) { for (const auto &kv : range) {
auto configKey = BinaryReader::fromStringRef<ConfigKey>(kv.key, IncludeVersion()); auto configKey = BinaryReader::fromStringRef<ConfigKey>(kv.key, IncludeVersion());
self->configDatabaseOverriddenKnobs[configKey] = kv.value; self->configKnobOverrides.set(configKey.configClass, configKey.knobName, kv.value);
} }
self->updateInMemoryKnobs(); self->updateInMemoryKnobs();
return Void(); return Void();
} }
bool updateKnob(Key knobName, Value knobValue) {
return (flowKnobs.setKnob(knobName.toString(), knobValue.toString()) ||
clientKnobs.setKnob(knobName.toString(), knobValue.toString()) ||
serverKnobs.setKnob(knobName.toString(), knobValue.toString()) ||
testKnobs.setKnob(knobName.toString(), knobValue.toString()));
}
void initializeKnobs() { void initializeKnobs() {
flowKnobs.initialize(); flowKnobs.initialize();
clientKnobs.initialize(); clientKnobs.initialize();
@ -112,24 +183,15 @@ class LocalConfigurationImpl {
void resetKnobs() { void resetKnobs() {
flowKnobs.reset(); flowKnobs.reset();
clientKnobs.initialize(); clientKnobs.reset();
serverKnobs.initialize(); serverKnobs.reset();
testKnobs.initialize(); testKnobs.reset();
} }
void updateInMemoryKnobs() { void updateInMemoryKnobs() {
resetKnobs(); resetKnobs();
for (const auto& [configKey, knobValue] : configDatabaseOverriddenKnobs) { configKnobOverrides.update(flowKnobs, clientKnobs, serverKnobs, testKnobs);
// TODO: Order updates by config class manualKnobOverrides.update(flowKnobs, clientKnobs, serverKnobs, testKnobs);
// Assert here because we should be validating on the client
ASSERT(updateKnob(configKey.knobName, knobValue));
}
for (const auto& [knobName, knobValue] : manuallyOverriddenKnobs) {
if (!updateKnob(knobName, knobValue)) {
fprintf(stderr, "WARNING: Unrecognized knob option '%s'\n", knobName.toString().c_str());
TraceEvent(SevWarnAlways, "UnrecognizedKnobOption").detail("Knob", printable(knobName));
}
}
// Must reinitialize in order to update dependent knobs // Must reinitialize in order to update dependent knobs
initializeKnobs(); initializeKnobs();
} }
@ -137,7 +199,7 @@ class LocalConfigurationImpl {
ACTOR static Future<Void> applyKnobUpdates(LocalConfigurationImpl *self, ConfigFollowerGetFullDatabaseReply reply) { ACTOR static Future<Void> applyKnobUpdates(LocalConfigurationImpl *self, ConfigFollowerGetFullDatabaseReply reply) {
self->kvStore->clear(knobOverrideKeys); self->kvStore->clear(knobOverrideKeys);
for (const auto& [configKey, knobValue] : reply.database) { for (const auto& [configKey, knobValue] : reply.database) {
self->configDatabaseOverriddenKnobs[configKey] = knobValue; self->configKnobOverrides.set(configKey.configClass, configKey.knobName, knobValue);
} }
self->kvStore->set(KeyValueRef(lastSeenVersionKey, BinaryWriter::toValue(self->lastSeenVersion, IncludeVersion()))); self->kvStore->set(KeyValueRef(lastSeenVersionKey, BinaryWriter::toValue(self->lastSeenVersion, IncludeVersion())));
wait(self->kvStore->commit()); wait(self->kvStore->commit());
@ -151,10 +213,10 @@ class LocalConfigurationImpl {
auto serializedKey = BinaryWriter::toValue(mutation.getKey(), IncludeVersion()); auto serializedKey = BinaryWriter::toValue(mutation.getKey(), IncludeVersion());
if (mutation.isSet()) { if (mutation.isSet()) {
self->kvStore->set(KeyValueRef(serializedKey.withPrefix(knobOverrideKeys.begin), mutation.getValue())); self->kvStore->set(KeyValueRef(serializedKey.withPrefix(knobOverrideKeys.begin), mutation.getValue()));
self->configDatabaseOverriddenKnobs[mutation.getKey()] = mutation.getValue(); self->configKnobOverrides.set(mutation.getConfigClass(), mutation.getKnobName(), mutation.getValue());
} else { } else {
self->kvStore->clear(singleKeyRange(serializedKey.withPrefix(knobOverrideKeys.begin))); self->kvStore->clear(singleKeyRange(serializedKey.withPrefix(knobOverrideKeys.begin)));
self->configDatabaseOverriddenKnobs.erase(mutation.getKey()); self->configKnobOverrides.remove(mutation.getConfigClass(), mutation.getKnobName());
} }
} }
self->lastSeenVersion = reply.mostRecentVersion; self->lastSeenVersion = reply.mostRecentVersion;
@ -166,14 +228,18 @@ class LocalConfigurationImpl {
ACTOR static Future<Void> fetchChanges(LocalConfigurationImpl *self, ConfigFollowerInterface broadcaster) { ACTOR static Future<Void> fetchChanges(LocalConfigurationImpl *self, ConfigFollowerInterface broadcaster) {
try { try {
ConfigFollowerGetChangesReply changesReply = wait(broadcaster.getChanges.getReply(ConfigFollowerGetChangesRequest{ self->lastSeenVersion, self->configClasses })); ConfigFollowerGetChangesReply changesReply =
wait(broadcaster.getChanges.getReply(ConfigFollowerGetChangesRequest{
self->lastSeenVersion, self->configKnobOverrides.getConfigClassSet() }));
// TODO: Avoid applying if there are no updates // TODO: Avoid applying if there are no updates
wait(applyKnobUpdates(self, changesReply)); wait(applyKnobUpdates(self, changesReply));
} catch (Error &e) { } catch (Error &e) {
if (e.code() == error_code_version_already_compacted) { if (e.code() == error_code_version_already_compacted) {
ConfigFollowerGetVersionReply versionReply = wait(broadcaster.getVersion.getReply(ConfigFollowerGetVersionRequest{})); ConfigFollowerGetVersionReply versionReply = wait(broadcaster.getVersion.getReply(ConfigFollowerGetVersionRequest{}));
self->lastSeenVersion = versionReply.version; self->lastSeenVersion = versionReply.version;
ConfigFollowerGetFullDatabaseReply fullDBReply = wait(broadcaster.getFullDatabase.getReply(ConfigFollowerGetFullDatabaseRequest{ self->lastSeenVersion, self->configClasses})); ConfigFollowerGetFullDatabaseReply fullDBReply =
wait(broadcaster.getFullDatabase.getReply(ConfigFollowerGetFullDatabaseRequest{
self->lastSeenVersion, self->configKnobOverrides.getConfigClassSet() }));
// TODO: Avoid applying if there are no updates // TODO: Avoid applying if there are no updates
wait(applyKnobUpdates(self, fullDBReply)); wait(applyKnobUpdates(self, fullDBReply));
} else { } else {
@ -210,11 +276,11 @@ class LocalConfigurationImpl {
} }
public: public:
LocalConfigurationImpl(ConfigClassSet const& configClasses, LocalConfigurationImpl(std::string const& configPath,
std::string const& dataFolder, std::string const& dataFolder,
std::map<Key, Value>&& manuallyOverriddenKnobs, std::map<Key, Value>&& manualKnobOverrides,
UID id) UID id)
: configClasses(configClasses), manuallyOverriddenKnobs(std::move(manuallyOverriddenKnobs)) { : configKnobOverrides(configPath), manualKnobOverrides(std::move(manualKnobOverrides)) {
platform::createDirectory(dataFolder); platform::createDirectory(dataFolder);
kvStore = keyValueStoreMemory(joinPath(dataFolder, "localconf-" + id.toString()), id, 500e6); kvStore = keyValueStoreMemory(joinPath(dataFolder, "localconf-" + id.toString()), id, 500e6);
} }
@ -250,11 +316,11 @@ public:
} }
}; };
LocalConfiguration::LocalConfiguration(ConfigClassSet const& configClasses, LocalConfiguration::LocalConfiguration(std::string const& configPath,
std::string const& dataFolder, std::string const& dataFolder,
std::map<Key, Value>&& manuallyOverriddenKnobs, std::map<Key, Value>&& manualKnobOverrides,
UID id) UID id)
: impl(std::make_unique<LocalConfigurationImpl>(configClasses, dataFolder, std::move(manuallyOverriddenKnobs), id)) {} : impl(std::make_unique<LocalConfigurationImpl>(configPath, dataFolder, std::move(manualKnobOverrides), id)) {}
LocalConfiguration::~LocalConfiguration() = default; LocalConfiguration::~LocalConfiguration() = default;
@ -287,3 +353,8 @@ Future<Void> LocalConfiguration::consume(Reference<AsyncVar<ServerDBInfo> const>
void TestKnobs::initialize() { void TestKnobs::initialize() {
init(TEST, 0); init(TEST, 0);
} }
void TestKnobs::reset() {
explicitlySetKnobs.clear();
initialize();
}

View File

@ -32,15 +32,16 @@ class TestKnobs : public Knobs {
public: public:
int64_t TEST; int64_t TEST;
void initialize(); void initialize();
void reset();
}; };
class LocalConfiguration { class LocalConfiguration {
std::unique_ptr<class LocalConfigurationImpl> impl; std::unique_ptr<class LocalConfigurationImpl> impl;
public: public:
LocalConfiguration(ConfigClassSet const& configClasses, LocalConfiguration(std::string const& configPath,
std::string const& dataFolder, std::string const& dataFolder,
std::map<Key, Value>&& manuallyOverriddenKnobs, std::map<Key, Value>&& manualKnobOverrides,
UID id); UID id);
~LocalConfiguration(); ~LocalConfiguration();
Future<Void> init(); Future<Void> init();

View File

@ -227,7 +227,7 @@ ACTOR Future<ISimulator::KillType> simulatedFDBDRebooter(Reference<ClusterConnec
"", "",
-1, -1,
whitelistBinPaths, whitelistBinPaths,
ConfigClassSet{})); {}));
} }
if (runBackupAgents != AgentNone) { if (runBackupAgents != AgentNone) {
futures.push_back(runBackup(connFile)); futures.push_back(runBackup(connFile));

View File

@ -824,7 +824,7 @@ ACTOR Future<Void> fdbd(Reference<ClusterConnectionFile> ccf,
std::string metricsPrefix, std::string metricsPrefix,
int64_t memoryProfilingThreshold, int64_t memoryProfilingThreshold,
std::string whitelistBinPaths, std::string whitelistBinPaths,
ConfigClassSet configClassSet); std::string configPath);
ACTOR Future<Void> clusterController(Reference<ClusterConnectionFile> ccf, ACTOR Future<Void> clusterController(Reference<ClusterConnectionFile> ccf,
Reference<AsyncVar<Optional<ClusterControllerFullInterface>>> currentCC, Reference<AsyncVar<Optional<ClusterControllerFullInterface>>> currentCC,

View File

@ -50,6 +50,7 @@
#include "fdbserver/CoroFlow.h" #include "fdbserver/CoroFlow.h"
#include "fdbserver/DataDistribution.actor.h" #include "fdbserver/DataDistribution.actor.h"
#include "fdbserver/IKeyValueStore.h" #include "fdbserver/IKeyValueStore.h"
#include "fdbserver/LocalConfiguration.h"
#include "fdbserver/MoveKeys.actor.h" #include "fdbserver/MoveKeys.actor.h"
#include "fdbserver/NetworkTest.h" #include "fdbserver/NetworkTest.h"
#include "fdbserver/ServerDBInfo.h" #include "fdbserver/ServerDBInfo.h"
@ -90,7 +91,7 @@ enum {
OPT_DCID, OPT_MACHINE_CLASS, OPT_BUGGIFY, OPT_VERSION, OPT_BUILD_FLAGS, OPT_CRASHONERROR, OPT_HELP, OPT_NETWORKIMPL, OPT_NOBUFSTDOUT, OPT_BUFSTDOUTERR, OPT_DCID, OPT_MACHINE_CLASS, OPT_BUGGIFY, OPT_VERSION, OPT_BUILD_FLAGS, OPT_CRASHONERROR, OPT_HELP, OPT_NETWORKIMPL, OPT_NOBUFSTDOUT, OPT_BUFSTDOUTERR,
OPT_TRACECLOCK, OPT_NUMTESTERS, OPT_DEVHELP, OPT_ROLLSIZE, OPT_MAXLOGS, OPT_MAXLOGSSIZE, OPT_KNOB, OPT_TESTSERVERS, OPT_TEST_ON_SERVERS, OPT_METRICSCONNFILE, OPT_TRACECLOCK, OPT_NUMTESTERS, OPT_DEVHELP, OPT_ROLLSIZE, OPT_MAXLOGS, OPT_MAXLOGSSIZE, OPT_KNOB, OPT_TESTSERVERS, OPT_TEST_ON_SERVERS, OPT_METRICSCONNFILE,
OPT_METRICSPREFIX, OPT_LOGGROUP, OPT_LOCALITY, OPT_IO_TRUST_SECONDS, OPT_IO_TRUST_WARN_ONLY, OPT_FILESYSTEM, OPT_PROFILER_RSS_SIZE, OPT_KVFILE, OPT_METRICSPREFIX, OPT_LOGGROUP, OPT_LOCALITY, OPT_IO_TRUST_SECONDS, OPT_IO_TRUST_WARN_ONLY, OPT_FILESYSTEM, OPT_PROFILER_RSS_SIZE, OPT_KVFILE,
OPT_TRACE_FORMAT, OPT_WHITELIST_BINPATH, OPT_BLOB_CREDENTIAL_FILE, OPT_CONFIG_CLASSES OPT_TRACE_FORMAT, OPT_WHITELIST_BINPATH, OPT_BLOB_CREDENTIAL_FILE, OPT_CONFIG_PATH
}; };
CSimpleOpt::SOption g_rgOptions[] = { CSimpleOpt::SOption g_rgOptions[] = {
@ -172,7 +173,7 @@ CSimpleOpt::SOption g_rgOptions[] = {
{ OPT_TRACE_FORMAT , "--trace_format", SO_REQ_SEP }, { OPT_TRACE_FORMAT , "--trace_format", SO_REQ_SEP },
{ OPT_WHITELIST_BINPATH, "--whitelist_binpath", SO_REQ_SEP }, { OPT_WHITELIST_BINPATH, "--whitelist_binpath", SO_REQ_SEP },
{ OPT_BLOB_CREDENTIAL_FILE, "--blob_credential_file", SO_REQ_SEP }, { OPT_BLOB_CREDENTIAL_FILE, "--blob_credential_file", SO_REQ_SEP },
{ OPT_CONFIG_CLASSES, "--config_classes", SO_REQ_SEP }, { OPT_CONFIG_PATH, "--config_path", SO_REQ_SEP },
#ifndef TLS_DISABLED #ifndef TLS_DISABLED
TLS_OPTION_FLAGS TLS_OPTION_FLAGS
@ -969,7 +970,7 @@ struct CLIOptions {
std::vector<std::string> blobCredentials; // used for fast restore workers & backup workers std::vector<std::string> blobCredentials; // used for fast restore workers & backup workers
const char* blobCredsFromENV = nullptr; const char* blobCredsFromENV = nullptr;
ConfigClassSet configClassSet; std::string configPath;
Reference<ClusterConnectionFile> connectionFile; Reference<ClusterConnectionFile> connectionFile;
Standalone<StringRef> machineId; Standalone<StringRef> machineId;
@ -1412,8 +1413,8 @@ private:
} while (t.size() != 0); } while (t.size() != 0);
} }
break; break;
case OPT_CONFIG_CLASSES: case OPT_CONFIG_PATH:
configClassSet = ConfigClassSet::fromParamString(args.OptionArg()); configPath = args.OptionArg();
break; break;
#ifndef TLS_DISABLED #ifndef TLS_DISABLED
@ -1951,7 +1952,7 @@ int main(int argc, char* argv[]) {
opts.metricsPrefix, opts.metricsPrefix,
opts.rsssize, opts.rsssize,
opts.whitelistBinPaths, opts.whitelistBinPaths,
opts.configClassSet)); opts.configPath));
actors.push_back(histogramReport()); actors.push_back(histogramReport());
// actors.push_back( recurring( []{}, .001 ) ); // for ASIO latency measurement // actors.push_back( recurring( []{}, .001 ) ); // for ASIO latency measurement

View File

@ -2020,10 +2020,10 @@ ACTOR Future<Void> fdbd(Reference<ClusterConnectionFile> connFile,
std::string metricsPrefix, std::string metricsPrefix,
int64_t memoryProfileThreshold, int64_t memoryProfileThreshold,
std::string whitelistBinPaths, std::string whitelistBinPaths,
ConfigClassSet configClassSet) { std::string configPath) {
state vector<Future<Void>> actors; state vector<Future<Void>> actors;
state Promise<Void> recoveredDiskFiles; state Promise<Void> recoveredDiskFiles;
state LocalConfiguration localConfig(configClassSet, dataFolder, {}, UID{}); state LocalConfiguration localConfig(configPath, dataFolder, {}, UID{});
wait(localConfig.init()); wait(localConfig.init());
actors.push_back(serveProtocolInfo()); actors.push_back(serveProtocolInfo());