bazel-buildfarm icon indicating copy to clipboard operation
bazel-buildfarm copied to clipboard

Support a periodic AC expiration policy on missing CAS entries

Open shirchen opened this issue 4 years ago • 1 comments

Idea was mentioned in https://buildteamworld.slack.com/archives/C9C4H1SN7/p1622229950018700 where when using buildfarm for cache only, there is no way to intelligently expire CAS entries when workers will unavoidably fill up.

One idea is a simple background job that scans the Redis space for all AC entries and if associated CAS entry is missing, expire the AC entry.

shirchen avatar Jun 01 '21 21:06 shirchen

That's a good idea. Sounds easy enough. I need to check if there is an API for asking a worker whether they have a blob or whether the blob has to actually be fetched in order to find out.

luxe avatar Jun 02 '21 15:06 luxe