mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-27 05:49:12 +01:00
Add notes for 2022-09-19
This commit is contained in:
@ -242,4 +242,25 @@ COMMIT
|
||||
- Deploy the `org.apache.cocoon.uploads.autosave=false` change on CGSpace
|
||||
- Start a harvest on AReS
|
||||
|
||||
## 2022-09-19
|
||||
|
||||
- Deploy the nginx proxy cache for /rest requests on CGSpace
|
||||
- I had tested this last week on DSpace Test
|
||||
- By my counts on CGSpace yesterday (Sunday, a busy day for the REST API), we had 5,654 URLs that were requested more than twice, and it tails off after that towards two, three, four, etc:
|
||||
|
||||
```console
|
||||
# awk '{print $7}' /var/log/nginx/rest.log.1 | grep -v retrieve | sort | uniq -c | awk '$1 > 1' | wc -l
|
||||
5654
|
||||
# awk '{print $7}' /var/log/nginx/rest.log.1 | grep -v retrieve | sort | uniq -c | awk '$1 == 2' | wc -l
|
||||
4710
|
||||
# awk '{print $7}' /var/log/nginx/rest.log.1 | grep -v retrieve | sort | uniq -c | awk '$1 == 3' | wc -l
|
||||
814
|
||||
# awk '{print $7}' /var/log/nginx/rest.log.1 | grep -v retrieve | sort | uniq -c | awk '$1 == 4' | wc -l
|
||||
86
|
||||
# awk '{print $7}' /var/log/nginx/rest.log.1 | grep -v retrieve | sort | uniq -c | awk '$1 == 5' | wc -l
|
||||
39
|
||||
```
|
||||
|
||||
- For now I guess requests that were done two or three times by different clients will be cached and that's a win, and I expect more and more REST API activity soon when initiatives and One CGIAR stuff picks up
|
||||
|
||||
<!-- vim: set sw=2 ts=2: -->
|
||||
|
Reference in New Issue
Block a user