Closed twrichards closed 9 months ago
Seen on image-loader (merged by @twrichards 7 minutes and 47 seconds ago) Please check your changes!
Seen on collections, media-api (merged by @twrichards 7 minutes and 58 seconds ago) Please check your changes!
Seen on auth (merged by @twrichards 8 minutes and 4 seconds ago) Please check your changes!
Seen on kahuna (merged by @twrichards 8 minutes and 11 seconds ago) Please check your changes!
Seen on metadata-editor, cropper (merged by @twrichards 8 minutes and 53 seconds ago) Please check your changes!
Seen on usage (merged by @twrichards 9 minutes and 5 seconds ago) Please check your changes!
Just a lil update; you can see this has been very effective...
You can see in PROD...
SoftReapable
line begin, when #https://github.com/guardian/grid/pull/4168 was released (which shows it generally trending up, despite fluctuations)SoftReaped
count jump up to 1000 per 15mins (up from the dynamic ~510)SoftReapable
count come down more aggressively since this PRSoftReaped
count becomes more scattered as it soft deletes only the ones available 🎉 The hard reaping metrics will kick in later this week once the big backlog of millions of images reaches two weeks in soft deleted state.
Thanks to #4168, we can see that although we do catch-up slightly each night, the amount of reapable images is slowing getting away from us...![image](https://github.com/guardian/grid/assets/19289579/762375d9-bd96-43fe-9f97-1219baf4c7ae)
I had become a little fixated on avoiding config and tried to be too clever (trying to base the reaping rate on the 7day rolling average of ingestion in #4145) which isn't keeping up and is harder to reason about.
Should've heeded the suggestion from prophet @andrew-nowak that reaping rate should be fixed/configured.
... this PR does exactly that; [scheduled] reaping is now based on
reaper.countPerRun
config property.