From bf214fb12f8f40bfc6cb71e7dd11f7b6725c4f70 Mon Sep 17 00:00:00 2001 From: Arne H Juul Date: Thu, 13 Jan 2022 08:29:13 +0000 Subject: 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 --- config-proxy/src/main/sh/vespa-config-ctl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config-proxy') 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 ${LOGDIR}/vre-start.log 2>&1