summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorGeir Storli <geirst@oath.com>2017-10-24 15:30:27 +0200
committerGeir Storli <geirst@oath.com>2017-10-24 15:30:27 +0200
commitb666cdcc654ac88663ba88cd9b259fafff9ea686 (patch)
tree10bfdda251f7a40f5797e88ea8792c3db237977f /searchcore
parentc668472b01ea333135a5c09300f8816d9d774cc2 (diff)
Activate disk usage sampling for docker nodes that have shared disk.
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/vespa/searchcore/proton/server/proton.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/server/proton.cpp b/searchcore/src/vespa/searchcore/proton/server/proton.cpp
index 60461fe649e..eefef25911f 100644
--- a/searchcore/src/vespa/searchcore/proton/server/proton.cpp
+++ b/searchcore/src/vespa/searchcore/proton/server/proton.cpp
@@ -237,8 +237,7 @@ Proton::init(const BootstrapConfig::SP & configSnapshot)
const auto &hwDiskCfg = protonConfig.hwinfo.disk;
const auto &hwMemoryCfg = protonConfig.hwinfo.memory;
const auto &hwCpuCfg = protonConfig.hwinfo.cpu;
- // TODO: Forward disk size when performance impact of disk usage sampling is verified
- HwInfoSampler::Config samplerCfg(0,
+ HwInfoSampler::Config samplerCfg(hwDiskCfg.size,
hwDiskCfg.writespeed,
hwDiskCfg.slowwritespeedlimit,
hwDiskCfg.samplewritesize,