summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-02-16 10:09:02 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2022-02-16 10:09:02 +0000
commit4081f22fbef9e16468b6d574cce8715e6d88af93 (patch)
tree8e1f1c861af7155b374d454e275ca2134ac39ad7 /searchcore
parent6f99bd502132cd378124a40060ac1d74d54f5e92 (diff)
If threads are configured explicit to a positive number, obey it.
If not scale it with num_cores/8 capped i the range [1, 4]. Let default configured value be 0 (unset) instead of 4.
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/vespa/searchcore/proton/server/proton.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/server/proton.cpp b/searchcore/src/vespa/searchcore/proton/server/proton.cpp
index d1b760e15f2..6001e6b88d4 100644
--- a/searchcore/src/vespa/searchcore/proton/server/proton.cpp
+++ b/searchcore/src/vespa/searchcore/proton/server/proton.cpp
@@ -313,7 +313,7 @@ Proton::init(const BootstrapConfig::SP & configSnapshot)
_protonDiskLayout = std::make_unique<ProtonDiskLayout>(protonConfig.basedir, protonConfig.tlsspec);
vespalib::chdir(protonConfig.basedir);
vespalib::alloc::MmapFileAllocatorFactory::instance().setup(protonConfig.basedir + "/swapdirs");
- _tls->start();
+ _tls->start(hwInfo.cpu().cores());
_flushEngine = std::make_unique<FlushEngine>(std::make_shared<flushengine::TlsStatsFactory>(_tls->getTransLogServer()),
strategy, flush.maxconcurrent, vespalib::from_s(flush.idleinterval));
_metricsEngine->addExternalMetrics(_summaryEngine->getMetrics());