aboutsummaryrefslogtreecommitdiffstats
path: root/config-proxy
diff options
context:
space:
mode:
authorArne H Juul <arnej@yahooinc.com>2022-01-13 08:29:13 +0000
committerArne H Juul <arnej@yahooinc.com>2022-01-13 08:29:13 +0000
commitbf214fb12f8f40bfc6cb71e7dd11f7b6725c4f70 (patch)
tree7fe4d9a92df841b0bca26606d1a32e0ba931dfe3 /config-proxy
parent1fe403e17ab3af4ca02333661fbcaabfbe3d2d26 (diff)
use less CPU in retention-enforcer
* start it with "nice" * put in "sleep 1" between each processing step, to make it less CPU intensive * avoid doing work which can never be useful, by not looking at databases where the earliest possible timestamp is not older than the retention limit
Diffstat (limited to 'config-proxy')
-rwxr-xr-xconfig-proxy/src/main/sh/vespa-config-ctl.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/config-proxy/src/main/sh/vespa-config-ctl.sh b/config-proxy/src/main/sh/vespa-config-ctl.sh
index d8459b175a7..a7f6a2a97a7 100755
--- a/config-proxy/src/main/sh/vespa-config-ctl.sh
+++ b/config-proxy/src/main/sh/vespa-config-ctl.sh
@@ -106,7 +106,7 @@ export LD_LIBRARY_PATH="$VESPA_HOME/lib64"
case $1 in
start)
- nohup sbin/vespa-retention-enforcer > ${LOGDIR}/vre-start.log 2>&1 </dev/null &
+ nohup nice sbin/vespa-retention-enforcer > ${LOGDIR}/vre-start.log 2>&1 </dev/null &
configsources=`bin/vespa-print-default configservers_rpc`
userargs=$VESPA_CONFIGPROXY_JVMARGS
jvmopts="-Xms32M -Xmx128M -XX:CompressedClassSpaceSize=32m -XX:MaxDirectMemorySize=32m -XX:ThreadStackSize=256 -XX:MaxJavaStackTraceDepth=1000 -XX:-OmitStackTraceInFastThrow"