From dfaf8621703d009d7e6244011fe357563aa191d3 Mon Sep 17 00:00:00 2001 From: Geir Storli Date: Fri, 15 Sep 2017 09:24:13 +0000 Subject: Add hwinfo config for disk size and memory size. --- searchcore/src/vespa/searchcore/config/proton.def | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/searchcore/src/vespa/searchcore/config/proton.def b/searchcore/src/vespa/searchcore/config/proton.def index ac17efcab3f..428ec0cfcb1 100644 --- a/searchcore/src/vespa/searchcore/config/proton.def +++ b/searchcore/src/vespa/searchcore/config/proton.def @@ -403,6 +403,11 @@ writefilter.disklimit double default = 0.8 ## Interval between sampling of disk and memory usage. Default is 60 seconds. writefilter.sampleinterval double default = 60.0 +## The size of the disk partition (in bytes) on which proton basedir is located. +## If set to 0, the disk size is sampled by looking at the filesystem space info. +## The disk size is used when determining if feed should be blocked in writefilter. +hwinfo.disk.size long default = 0 + ## Override for disk write speed, measured in MiB/s. When zero, the ## actual disk write speed is sampled by writing data to a temporary file. hwinfo.disk.writespeed double default = 200.0 @@ -415,6 +420,11 @@ hwinfo.disk.samplewritesize long default = 1073741824 ## Unit is MiB/s, default is 100.0 MiB/s. hwinfo.disk.slowwritespeedlimit double default = 100.0 +## The size of physical memory (in bytes) available to proton. +## If set to 0, the memory size is sampled as _SC_PHYS_PAGES * _SC_PAGESIZE by using sysconf to do the lookup. +## The memory size is used when determining if feed should be blocked in writefilter. +hwinfo.memory.size long default = 0 + ## Adjustment to resource limit when determining if maintenance jobs can run. ## ## Currently used by 'lid_space_compaction' and 'move_buckets' jobs. -- cgit v1.2.3