Are those two tables covered by retention policies? What would be a safe way to go about getting rid of say anything older than a couple of months on a regular schedule?
You are correct, implementing a retention policy will reduce the size of the dbo.Event and dbo.EventRelatedDocument tables. However, it probably won’t be too drastic.
We don’t normally recommend manually deletion due to the impact it will have on your audit log.
Hopefully this clears things up. If you have any more questions, don’t hesitate to ask.
We do have retention policies in place, however, we also use Runbooks to trigger stuff. Those Runbooks run every couple of seconds and from what I see in the Audit log, every run creates several new entries in the log.
We would be very OK with not having history for Runbook runs from months back. Could you provide us with some insight into what would be “safe” to delete from those tables?
Runbooks keeps a finite number of runs (I believe 100?). I’m not sure there would be much to gain there.
As I touched on previously, we generally do not recommend manually deleting anything in the db unless there is some sort of major performance issue preventing Octopus from working properly. We are currently exploring adding additional features to Octopus that would give our customers more control over data retention.
I’m sorry. I wish I had a better answer for you. If you have any more questions don’t hesitate to ask.