From: Mark Wielaard <mark@klomp.org>
To: buildbot@sourceware.org
Cc: Mark Wielaard <mark@klomp.org>
Subject: [PATCH] JanitorConfigurator: Only keep logs for 6 weeks
Date: Tue, 9 Jan 2024 23:10:54 +0100 [thread overview]
Message-ID: <20240109221054.1094758-1-mark@klomp.org> (raw)
The logs are the biggest part of the sqlite database.
Also add --progress_timeout=300 to the reload script.
The default 30 seconds is too low when the buildbot is busy.
---
SETUP | 2 +-
builder/master.cfg | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/SETUP b/SETUP
index cd7149e..42ade11 100644
--- a/SETUP
+++ b/SETUP
@@ -66,7 +66,7 @@ buildbot stop /sourceware/builder/buildbot/builder
- buildbot-reload.sh
#!/bin/bash
source /sourceware/builder/buildbot-env/bin/activate
-buildbot reconfig /sourceware/builder/buildbot/builder
+buildbot reconfig --progress_timeout=300 /sourceware/builder/buildbot/builder
Use this in the systemd unit file
/etc/systemd/system/buildbot.service
diff --git a/builder/master.cfg b/builder/master.cfg
index 3048fef..75fb312 100644
--- a/builder/master.cfg
+++ b/builder/master.cfg
@@ -5241,10 +5241,10 @@ c['revlink'] = revlinkmultiplexer
import datetime
-# configure a janitor which will delete all logs older than ~2.5 months,
+# configure a janitor which will delete all logs older than ~1.5 months,
# and will run on sundays at noon.
c['configurators'] = [util.JanitorConfigurator(
- logHorizon=datetime.timedelta(weeks=10),
+ logHorizon=datetime.timedelta(weeks=6),
hour=12,
dayOfWeek=6
)]
--
2.39.3
reply other threads:[~2024-01-09 22:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240109221054.1094758-1-mark@klomp.org \
--to=mark@klomp.org \
--cc=buildbot@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).