summaryrefslogtreecommitdiffstats
path: root/config-proxy
diff options
context:
space:
mode:
authorArne Juul <arnej@yahoo-inc.com>2018-09-03 08:00:12 +0000
committerArne Juul <arnej@yahoo-inc.com>2018-09-06 13:00:14 +0000
commit30fd1322c666d8e48fae340dc69ce5030069e30b (patch)
treeee2b340ea309ff07d8bc867952dc65abed863f06 /config-proxy
parentae594f2b7453ff1c5109fd8a9cec9339ec0a6366 (diff)
enforce log retention policies
* for access logs, save meta-data about the log file itself in a simple format. * implement a proof-of-concept shell script that removes log files after one month. * ensure retention enforcer is started when services start * note that retention enforcer will continue running even after services stop, but it has protection to ensure that it won't multiply endlessly.
Diffstat (limited to 'config-proxy')
-rwxr-xr-xconfig-proxy/src/main/sh/vespa-config-ctl.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/config-proxy/src/main/sh/vespa-config-ctl.sh b/config-proxy/src/main/sh/vespa-config-ctl.sh
index a670e69cdbf..649eef951c0 100755
--- a/config-proxy/src/main/sh/vespa-config-ctl.sh
+++ b/config-proxy/src/main/sh/vespa-config-ctl.sh
@@ -103,6 +103,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 &
configsources=`bin/vespa-print-default configservers_rpc`
userargs=$vespa_base__jvmargs_configproxy
if [ "$userargs" == "" ]; then