nephio-project / nephio

Nephio is a Kubernetes-based automation platform for deploying and managing highly distributed, interconnected workloads such as 5G Network Functions, and the underlying infrastructure on which those workloads depend.
Apache License 2.0
93 stars 52 forks source link

Implement repository cache eviction policy #614

Open liamfallon opened 2 months ago

liamfallon commented 2 months ago

Original issue URL: https://github.com/kptdev/kpt/issues/3221 Original issue user: https://github.com/mortent Original issue created at: 2022-05-22T23:37:32Z Original issue last updated at: 2022-05-22T23:37:32Z Original issue body: Make sure we correctly handle the repository cache.

Original issue comments:

liamfallon commented 1 month ago

Triage Comment: We are reading this as "Implement Repository Cache Eviction Mechanism" What happens if the cache fills today. We need to look into this and have a mechanism to expire caches. It could be FIFO, least recently used, least frequently used, but today there is no cache size limitation mechanism. The current implementation (with git) requires that everything is in the cache, because git requires that you clone a copy in order to work on it.

We need to investigate and understand how cacheing works and know its limitations.