set monitor sampling interval through json file

This commit is contained in:
yanghaitao 2020-06-28 10:36:56 +08:00
parent b0a10c26a4
commit 7f54d17be9
2 changed files with 3 additions and 1 deletions

View File

@ -41,6 +41,7 @@ Status ConfigManager::FromJson(const nlohmann::json &j) {
set_worker_connector_size(j.value("workerConnectorSize", worker_connector_size_));
set_op_connector_size(j.value("opConnectorSize", op_connector_size_));
set_seed(j.value("seed", seed_));
set_monitor_sampling_interval(j.value("monitorSamplingInterval"));
return Status::OK();
}

View File

@ -185,7 +185,8 @@ class ConfigurationManager:
>>> # "numParallelWorkers": 4,
>>> # "workerConnectorSize": 16,
>>> # "opConnectorSize": 16,
>>> # "seed": 5489
>>> # "seed": 5489,
>>> # "monitorSamplingInterval": 30
>>> # }
"""
self.config.load(file)