summaryrefslogtreecommitdiffstats
path: root/searchcore/src/apps
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-03-19 10:29:35 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2021-03-19 10:29:35 +0000
commit6b8c5c463da0527228185e2da61247cf4d22edfd (patch)
treee5f7da6142ff7bc9dfa9de0a0d5c53c7dac79ac3 /searchcore/src/apps
parent8a073477b45ec34c4a614391d345637c502dc526 (diff)
Start the metrics manager after everything has been setup to avoid the expensive metrics altered handling. This causes valgrind runs to be way too costly.
Diffstat (limited to 'searchcore/src/apps')
-rw-r--r--searchcore/src/apps/proton/proton.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/searchcore/src/apps/proton/proton.cpp b/searchcore/src/apps/proton/proton.cpp
index d02cfcb8dff..180815554fe 100644
--- a/searchcore/src/apps/proton/proton.cpp
+++ b/searchcore/src/apps/proton/proton.cpp
@@ -194,11 +194,6 @@ App::Main()
const ProtonConfig &protonConfig = configSnapshot->getProtonConfig();
vespalib::string basedir = protonConfig.basedir;
vespalib::mkdir(basedir, true);
- if ( ! params.serviceidentity.empty()) {
- proton.getMetricManager().init(params.serviceidentity, proton.getThreadPool());
- } else {
- proton.getMetricManager().init(params.identity, proton.getThreadPool());
- }
{
ExitOnSignal exit_on_signal;
proton.init(configSnapshot);
@@ -210,6 +205,8 @@ App::Main()
spiProton->setupConfig(std::chrono::milliseconds(params.subscribeTimeout));
spiProton->createNode();
EV_STARTED("servicelayer");
+ } else {
+ proton.getMetricManager().init(params.identity, proton.getThreadPool());
}
EV_STARTED("proton");
while (!(SIG::INT.check() || SIG::TERM.check() || (spiProton && spiProton->getNode().attemptedStopped()))) {