-
Notifications
You must be signed in to change notification settings - Fork 6
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
Make Domains to Cache configurable #127
Conversation
What is still required is some testing and I'd like to revisit the way we talk to the CH hosts. See: https://github.com/replicate/cluster/pull/1284 <-- This needs work to use current L2 cache, It is an example of how it could work straight to origin. This allows us to send the URI as: |
This PR is missing prefix matching tests. I would also like to consider not setting a default in GetDomtainsToCache. Also GetDomainsToCache is a bad function name, I'd like it to be CacheDomains to match the option. |
594a54a
to
9097917
Compare
9097917
to
38f2977
Compare
Tests still need to be fixed. Additionally work to warm the cache using the new scheme will be needed prior to releasing this |
c8c62c7
to
1849f48
Compare
Implement making consistent-hash domains to cache configurable. ** THIS IS A BREAKING CHANGE ** Consistent-Hash now utilizes a path-based proxy system, prepending the URI to the path prior to sending to the consistent-hash index target. This URL manipulation does not change the hash value. Buckets are maintained. The prefixes allowed to be cached are provides exclusively as an ENV var and is in the format of "scheme://host/prefix, scheme://host/prefix, ..." Eventually these "must only be set via ENV" should move to a config file. The consistent hash services already understand the new path-based proxy. Include new option to trigger path-based proxy vs pure hostname proxy.
1849f48
to
f550200
Compare
This restores to the status quo before #127.
This restores to the status quo before #127.
Make domains to cache configurable via ENV. The implements the framework to also limit caching to certain prefixes to the path.