* [PATCH] JanitorConfigurator: Only keep logs for 6 weeks
@ 2024-01-09 22:10 Mark Wielaard
0 siblings, 0 replies; only message in thread
From: Mark Wielaard @ 2024-01-09 22:10 UTC (permalink / raw)
To: buildbot; +Cc: Mark Wielaard
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-01-09 22:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-09 22:10 [PATCH] JanitorConfigurator: Only keep logs for 6 weeks Mark Wielaard
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).