Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

socializer diskspace growth limiting #342

Closed
rbreesems opened this issue May 7, 2024 · 4 comments
Closed

socializer diskspace growth limiting #342

rbreesems opened this issue May 7, 2024 · 4 comments
Labels
enhancement New feature or request .NET Pull requests that update .net code

Comments

@rbreesems
Copy link
Contributor

We are experimenting with socializer in our grayspace. We are concerned about filling up available space in the socializer docker container.

After attaching to the socializer docker container and looking at files, it appears that growth is in:
/app/db/socializer.db-shm
/app/db/socializer.db-wal (text posts?)

/app/wwwroot/images/* (images uploaded with posts are stored here).

We have to implement some sort of disk-limiting before we can deploy to this a real event, and could hack something together, but are wondering if there is any near term plans to implement automated post pruning, perhaps all posts older than XX hours gets automatically deleted to free space.

Thanks.

@sei-dupdyke
Copy link
Contributor

sei-dupdyke commented May 8, 2024

I can build a cleanup hosted service, so you will configure how often it runs, and how old the stuff is that it deletes. — give me a day or two to publish a new container.

I could also build a connector for another database if that is needed. Right now it is in-container sqlite only. Is there any need for that?

@sei-dupdyke sei-dupdyke added enhancement New feature or request .NET Pull requests that update .net code labels May 8, 2024
sei-dupdyke added a commit that referenced this issue May 8, 2024
#342 adds ability for socializer to clean up old posts and images
@sei-dupdyke
Copy link
Contributor

Released as 0.4.0. Build your own or get via docker pull dustinupdyke/ghosts-socializer:0.4.0.

@sei-dupdyke
Copy link
Contributor

Configuration file is here - how often the job runs and how old things need to be before they are deleted are listed as separate configurations.

@rbreesems
Copy link
Contributor Author

rbreesems commented May 9, 2024

Thanks for this! We have pulled the new container and are testing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request .NET Pull requests that update .net code
Projects
None yet
Development

No branches or pull requests

2 participants