Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve cache and fallback-proxy behaviour for /v3/release #26

Closed
wants to merge 8 commits into from

Conversation

Egari
Copy link
Contributor

@Egari Egari commented Dec 12, 2024

Use case; caching with fallback to puppet forge.

  • stampede cache-key now takes request path and/or full request URI into account (incl query parameters)
    Note: query parameters is semi-important to cache responses for /v3/releases queries as done by puppet module install.
    Before this patch, with caching enabled, you could see puppetlabs-stdlib responses when requesting /v3/releases?module=puppetlabs-logrotate if puppetlabs-stdlib was the first to be queried.

  • show basic "proxied requests" stats in the UI

  • if fallback-proxy is enabled, and /v3/releases is requested, requests are now redirected to the proxy sooner to be more consistent in responses returned and prevent empty responses.

@dadav
Copy link
Owner

dadav commented Dec 25, 2024

Hi @Egari ,
thanks for your PR. Is it still a draft on purpose?

@Egari
Copy link
Contributor Author

Egari commented Dec 26, 2024

Hi @Egari , thanks for your PR. Is it still a draft on purpose?

I've been meaning to re-build and test it, but haven't gotten around to it yet.

@Egari Egari marked this pull request as ready for review December 26, 2024 01:27
@dadav
Copy link
Owner

dadav commented Dec 28, 2024

Merged via #38

@dadav dadav closed this Dec 28, 2024
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.

2 participants