summaryrefslogtreecommitdiffstats
path: root/searchcore/src
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-02-16 11:39:33 +0100
committerGitHub <noreply@github.com>2022-02-16 11:39:33 +0100
commit8ec18fc941fc157222990813e767767da1ec1bd6 (patch)
treeb0979e2b16b6f6c9fc39584022c7f021076ed235 /searchcore/src
parent659ddf8184eef9aa53434c268877f914ac30fbf0 (diff)
parent4081f22fbef9e16468b6d574cce8715e6d88af93 (diff)
Merge pull request #21218 from vespa-engine/balder/scale-tls-treads-by-num_cores
If threads are configured explicit to a positive number, obey it.
Diffstat (limited to 'searchcore/src')
-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());