For an experiment I changed the storage.allocated-disk-space to be below the total used, and without any customer data being deleted (so latest GC run is 0, trash is 0), the used space is very slowly, but surely decreasing. Why?
(the used space value is coming straight from the storagenode binary’s prometheus metric: used_space{field=“recent”})
Depends on the expiration type. The customer may set an expiration date during upload, it will be deleted by the other service. The remained can be collected by the Garbage Collector.
I understand. I looked at the code given by @Toyoo. There is a a “package collector service” that runs every hour while there is retain service aka GC that collects garbage data. IIRC GC runs every 5 days.