diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-03-18 11:47:20 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-03-18 16:02:18 +0000 |
commit | f4708b48024c4210e09ae41f0c7d415ff3ac0ea5 (patch) | |
tree | 8416b7152ed7fec5880643fe5dba282a95e32993 | |
parent | 80a0e61f4926b1c1b9c95a4128f778c5071c8ca1 (diff) | |
download | definitions-f4708b48024c4210e09ae41f0c7d415ff3ac0ea5.tar.gz |
distbuild: Set log file size limit
The 'log-keep' setting defaults to 10, so systems will contain a max 1GB
of log data. Previously they would have eventually used up all of the
available space in /var with log data.
We may want to set 'log-level=info' as a default for future deployments,
but for now it's useful being able to do detailed analysis of errors.
-rw-r--r-- | distbuild.configure | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/distbuild.configure b/distbuild.configure index 23aa35dd..eb2ef04a 100644 --- a/distbuild.configure +++ b/distbuild.configure @@ -67,6 +67,7 @@ install -d -o 0 -g 0 -m 0755 "$1/srv/distbuild" cat <<EOF > "$1/etc/morph.conf" [config] log = /var/log/morph.log +log-max = 100M cachedir = /srv/distbuild tempdir = /srv/distbuild/tmp trove-host = $TROVE_ID @@ -90,6 +91,7 @@ then cat <<EOF > "$1/etc/morph-controller.conf" [config] log = /var/log/morph-controller.log +log-max = 100M writeable-cache-server = http://${ARTIFACT_CACHE_SERVER}:8081/ worker = $WORKERS controller-helper-address = 127.0.0.1 @@ -101,6 +103,7 @@ EOF cat <<EOF > "$1/etc/morph-controller-helper.conf" [config] log = /var/log/morph-controller-helper.log +log-max = 100M parent-port = 5656 parent-address = 127.0.0.1 EOF @@ -118,6 +121,7 @@ then cat <<EOF > "$1/etc/morph-worker.conf" [config] log = /var/log/morph-worker.log +log-max = 100M controller-initiator-address = EOF @@ -131,6 +135,7 @@ EOF cat <<EOF > "$1/etc/morph-worker-helper.conf" [config] log = /var/log/morph-worker-helper.log +log-max = 100M parent-address = 127.0.0.1 EOF |