mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-27 05:49:12 +01:00
Add notes for 2016-04-05
Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
@ -43,3 +43,17 @@ java.io.FileNotFoundException: /home/cgspace.cgiar.org/assetstore/64/29/06/64290
|
||||
- For what it's worth, we have been setting the actual Tomcat 7 process' limit to 16384 for a few years (in `/etc/default/tomcat7`)
|
||||
- Looks like cron will read limits from `/etc/security/limits.*` so we can do something for the tomcat7 user there
|
||||
- Submit pull request for Tomcat 7 limits in Ansible dspace role ([#30](https://github.com/ilri/rmg-ansible-public/pull/30))
|
||||
|
||||
## 2016-04-05
|
||||
|
||||
- Reduce Amazon S3 storage used for logs from 46 GB to 6GB by deleting a bunch of logs we don't need!
|
||||
|
||||
```
|
||||
# s3cmd ls s3://cgspace.cgiar.org/log/ > /tmp/s3-logs.txt
|
||||
# grep checker.log /tmp/s3-logs.txt | awk '{print $4}' | xargs s3cmd del
|
||||
# grep cocoon.log /tmp/s3-logs.txt | awk '{print $4}' | xargs s3cmd del
|
||||
# grep handle-plugin.log /tmp/s3-logs.txt | awk '{print $4}' | xargs s3cmd del
|
||||
# grep solr.log /tmp/s3-logs.txt | awk '{print $4}' | xargs s3cmd del
|
||||
```
|
||||
|
||||
- Also, adjust the cron jobs for backups so they only backup `dspace.log` and some stats files (.dat)
|
||||
|
Reference in New Issue
Block a user