The Allsearch API reads from the Solr collection for a number of our applications. We have these variables in a config file in the application right now; however, it is easy for these to drift from the correct values (see, e.g., there were almost three months between when the staging solr url was changed for DPUL and when we updated it in the Allsearch API.
Level of urgency
[ ] High
[x] Moderate
[ ] Low
Why is this maintenance needed?
We need a way to keep this information aligned and avoid drift.
Acceptance criteria
[ ] Allsearch-api and the source application both consult the same "source of truth" for each Solr request
[ ] The "source of truth" does not add a lot of latency to the request
[ ] Don't need to run the allsearch-api playbook to stay in sync (for example, if a solr collection is changed)
Applications
[ ] catalog / orangelight
[ ] dpul
[ ] finding aids / pulfalight
[ ] pulmap
Implementation notes, if any
Set up a solr url on the load balancer for each application to look at. This url would point to a specific solr host and a specific solr collection. e.g. http://catalog-solr.princeton.edu could point to http://lib-solr8-prod.princeton.edu:8983/solr/catalog-alma-production
Both allsearch and the catalog would consult http://catalog-solr.princeton.edu rather than http://lib-solr8-prod.princeton.edu:8983/solr/catalog-alma-production
What maintenance needs to be done?
The Allsearch API reads from the Solr collection for a number of our applications. We have these variables in a config file in the application right now; however, it is easy for these to drift from the correct values (see, e.g., there were almost three months between when the staging solr url was changed for DPUL and when we updated it in the Allsearch API.
Level of urgency
Why is this maintenance needed?
Acceptance criteria
Applications
Implementation notes, if any
http://catalog-solr.princeton.edu
could point tohttp://lib-solr8-prod.princeton.edu:8983/solr/catalog-alma-production
http://catalog-solr.princeton.edu
rather thanhttp://lib-solr8-prod.princeton.edu:8983/solr/catalog-alma-production