Skip to content

Conversation

hishamanver
Copy link
Contributor

@hishamanver hishamanver commented Aug 4, 2021

This PR implements the following:

What:

  1. Enable configuration of 'proxy_cache_valid' age with CACHE_VALIDITY_PERIOD var (defaults to 60d)
  2. Enable configuration of 'proxy_cache_path' 'inactive' setting with CACHE_MAX_AGE var (defaults to 60d)
  3. Allows serving from STALE cache for non-manifest layers (eg: blob) when upstream is not available (e.g. connectivity issues / airgapped solution)

Why:

  1. We want to be able to pull images and cache them for variable periods of time (e.g. forever).
  2. We want to limit the impact of upstream outages by always allowing serving of STALE content if there are upstream issues

Comments welcome

Happy to update readme post discussion

@hishamanver
Copy link
Contributor Author

includes changes from #107

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant