diff options
author | Arne H Juul <arnej@yahooinc.com> | 2022-01-13 08:29:13 +0000 |
---|---|---|
committer | Arne H Juul <arnej@yahooinc.com> | 2022-01-13 08:29:13 +0000 |
commit | bf214fb12f8f40bfc6cb71e7dd11f7b6725c4f70 (patch) | |
tree | 7fe4d9a92df841b0bca26606d1a32e0ba931dfe3 /config-proxy | |
parent | 1fe403e17ab3af4ca02333661fbcaabfbe3d2d26 (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-x | config-proxy/src/main/sh/vespa-config-ctl.sh | 2 |
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" |