Wishlist: automatic DB pruning

Bug #1835444 reported by Peter Sabaini
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
MAAS
Invalid
High
Unassigned

Bug Description

The maasserver_event table seems to grow unbounded over time.

For long running installations this can be problematic:

a) disk space consumption

b) more cycles needed to keep table + indices updated

Example, we're running an installation since 2017 and the maas event table plus indices use ~6.5Gb. Otoh it seems unlikely that 2 year old machine events would bring much value.

It would be great if MAAS could either do automatic pruning of events older than X days, or provide a script or similar to prune or archive events manually

(cloned from Bug #1830365)

description: updated
Changed in maas:
importance: Undecided → High
status: New → Triaged
Revision history for this message
Adam Beeman (abeeman) wrote :

I've found larger environments need maasserver_event to be truncated after a while; loading the Machines page takes longer and longer as the this table grows.

Felipe Reyes (freyes)
tags: added: seg
Revision history for this message
João Pedro Seara (jpseara) wrote :
Revision history for this message
Adam Collard (adam-collard) wrote :

This is related to https://bugs.launchpad.net/maas/+bug/1403080 as well, see comments there for some workarounds.

As per the latest comment on that bug, this forms part of a retention policy feature request. This will be picked up as part of MAAS roadmap, no specific implementation date can be given now.

Revision history for this message
Jerzy Husakowski (jhusakowski) wrote :

On MAAS feature backlog

Changed in maas:
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.