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
Expose a mechanism to expire the image server cache for one or more objects #743
Comments
|
Seems related to #503 as well. |
|
If Cantaloupe is responsible for holding onto the cached derivative I wonder if various workflows could POST to the PurgeItemFromCache API endpoint when derivatives need regeneration? |
|
Yes, now that we're on Cantaloupe 5. |
|
@cbeer I'm new to the SUL architecture, so this might be way off, but does it seem like PURL is the right place to post to PurgeItemFromCache when a public facing object is created/updated? |
|
DOR robots just dump files on NFS mounts shared with stacks and purl, so neither stack knows what's changed. I think purl-fetcher (or some new service listening to the purl-fetcher data feed?) would be our best bet for now. It gets pinged when objects are republished (not sure about files shelved...). |
|
@edsu I chatted with @cbeer and we think it could work to hit Cantaloupe's purge API from DSA's shelving service, in here somewhere: https://github.com/sul-dlss/dor-services-app/blob/main/app/services/shelving_service.rb#L19-L34 Neither of us loves coupling the management side of SDR to the access side more than it is now, but until there's a shelving API (not currently planned or even designed), this is our best approach to improving caching behavior. Do you want to take a hack at writing up an issue and tossing it in ready? @cbeer anything we need to know about hitting Cantaloupe's APIs? (AuthN, etc.) |
|
I don't think we know anything about Cantaloupe's APIs. |
|
I can confirm Cantaloupe's HTTP API is enabled and working. Credentials are here: https://github.com/sul-dlss/puppet/blob/production/modules/profile/files/cantaloupe/cantaloupe505.properties#L125-L127 Prod URL (load-balanced): http://imageserver-prod.stanford.edu Note the these respond via HTTP, not HTTPS. |
@andrewjbtw shared that our long-lasting caching of imageserver resources is having a negative impact when images are remediated in SDR.
This has impacted us a few times recently, both with remediating digital borrowing objects, and with dealing with remediated objects in a digital collections project with an external partner. In each case what happened was:
We should thus expose a mechanism that allows us to expire the image server's cache for a given object. While we should work with Andrew on the specific needs further, this should be accessible at least to repository admins/service managers.
Andrew adds:
The text was updated successfully, but these errors were encountered: