ai-traders / liget

NuGet server and cache running on kestrel in docker
MIT License
218 stars 29 forks source link

After a week in use it uses a lot of hdd space (Cache) #1

Closed Baklap4 closed 6 years ago

Baklap4 commented 6 years ago

At first thanks for making this! We can now host our packages within a nuget server on linux, love it!

But after a week in use (within docker) i came to the knowledge it was holding like 15Gb of cache in the /tmp folder. What would be a way to clean this automaticly (after a limit has been hit?) I now cleaned it myself by removing the /tmp/NuGet/TempCache/ folder since it gets recreated.

image It's already at 1.7GB again..

tomzo commented 6 years ago

Hi,

Thanks for reporting this. Our server runs on k8s and gets restarted once in a while so /tmp gets deleted periodically, so we did not notice so far. I took a quick look why /tmp/NuGet/TempCache/ would grow indefinitely. By the contents and timestamps I guess this created by NuGet.CatalogReader when it downloads recent changes from nuget.org. But let me understand the problem better, are you using liget as

This is definitely a bug, I think those folders should be cleaned up immediately.

Baklap4 commented 6 years ago

But let me understand the problem better, are you using liget as host for private packages or as cache or both?

Currently i'm using liget as a host for private packages. I started up the docker file with default values.

tomzo commented 6 years ago

I've sent a fix. There should be a release soon after all tests pass.

Baklap4 commented 6 years ago

Thanks a lot ^^ Just upgraded 👍