s3 bucket and db cleanup #63
ducknoodledance
started this conversation in
Show and tell
Replies: 1 comment
-
|
Thanks for the detailed writeup and the script @ducknoodledance — your read is right: nothing in the codebase ever hard-deletes soft-deleted rows or their S3 objects, and |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It seemed like my minio s3 bucket was getting bigger and bigger and the system was not cleaning up after itself efficiently.
I don't care much for a trash and restore feature in the app as I do in my disk size not running away with orphaned videos and database not ballooning.
So after a bunch of questions to my LLM, it seemed that the easiest thing to do for now until the system evolves to be leaner is to create a helper python script that removes extra junk to clean up the system every once in a while (I have it set to weekly).
I am running it in a docker container alongside the others. Since I am a non techy I am not sure if this code snip will be helpful to anyone, but I wanted to posted here anyways, just in case it helps anyone with direction as its code that seems to work as intended. Sorry if its AI slop, my LLM wrote it and I dont know my way enough python to know how solid it is, but it seems to be working fine for me.
Beta Was this translation helpful? Give feedback.
All reactions