[users at bb.net] 0.9 cleanup logs from DB

Mike Alexeev mike.42.alexeev at gmail.com
Fri Mar 17 08:17:03 UTC 2017


Hello.

I have a question about deleting old logchunks from DB in buildbot 0.9.
Logchunks table is the biggest and grows quickly even with compression.


I haven't found methods in data api for delete.
So I decided to delete logs and their logchunks using sqlalchemy in cron
task.
It's not breaks anything as I can see.

Is there better way?
Maybe this feature should be added in cleanupdb and configured in main
config?
Maybe there should be options for delete other old records in DB (builds,
steps, etc)?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20170317/d3d00b6f/attachment.html>


More information about the users mailing list