mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-27 05:49:12 +01:00
Update notes for 2022-09-25
This commit is contained in:
@ -391,5 +391,32 @@ $ ./ilri/add-orcid-identifiers-csv.py -i /tmp/2022-09-22-add-orcids.csv -db dspa
|
||||
|
||||
- The harvest on AReS finished and now the load on CGSpace server is still high like always on Sunday mornings
|
||||
- UptimeRobot says it's down sigh...
|
||||
- I had an idea to include the HTTP Accept header in the nginx proxy cache key to fix the issue we had with CIP last week
|
||||
- It seems to work:
|
||||
|
||||
```
|
||||
$ http --print Hh 'https://dspacetest.cgiar.org/rest/items?expand=metadata,parentCommunityList,parentCollectionList,bitstreams&limit=10&offset=60'
|
||||
...
|
||||
Content-Type: application/json
|
||||
X-Cache-Status: MISS
|
||||
|
||||
$ http --print Hh 'https://dspacetest.cgiar.org/rest/items?expand=metadata,parentCommunityList,parentCollectionList,bitstreams&limit=10&offset=60'
|
||||
...
|
||||
Content-Type: application/json
|
||||
X-Cache-Status: HIT
|
||||
|
||||
$ http --print Hh 'https://dspacetest.cgiar.org/rest/items?expand=metadata,parentCommunityList,parentCollectionList,bitstreams&limit=10&offset=60' Accept:application/xml
|
||||
...
|
||||
Content-Type: application/xml
|
||||
X-Cache-Status: MISS
|
||||
|
||||
$ http --print Hh 'https://dspacetest.cgiar.org/rest/items?expand=metadata,parentCommunityList,parentCollectionList,bitstreams&limit=10&offset=60' Accept:application/xml
|
||||
...
|
||||
Content-Type: application/xml
|
||||
X-Cache-Status: HIT
|
||||
```
|
||||
|
||||
- This effectively makes our cache half as effective, but hopefully as more people start harvesting the number of requests handled by it will go up
|
||||
- I will enable this on CGSpace and email CIP to check if their harvester is working
|
||||
|
||||
<!-- vim: set sw=2 ts=2: -->
|
||||
|
Reference in New Issue
Block a user