Cache files grow indefinitely, despite 20 min expiration in code.
bear454 opened this issue · 3 comments
In Production, Rails is defaulting to file-based caching; with file caching the cache files never 'expire'... they must be removed (this is documented behavior [1]).
Eventually, /var/lib/rmt/tmp/cache
will outgrow any disk.
@bear454 Can you shed some light on how you use rmt? Our reference hosts are functioning well, we would like to get a better understanding before we merge it to the codebase.
Have you tried setting up the rails cache to use the system /tmp
folder?
This was filed on behalf of the SUSE Public Cloud Sysadmin team; some of the RMT servers in production supporting customers in AWS/Azure/GCP have over 6GB of Rails cache entries.
IMO regardless of the overall volume; there's a clear problem when using ActiveSupport::Cache::Filestore as the cache files never expire.