From c243f1d7feba1a300e25feb03816c506446cf2ed Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sun, 24 Dec 2017 13:59:25 +0200 Subject: [PATCH] Add notes for 2017-12-24 --- content/post/2017-12.md | 15 +++++++++++++++ public/2017-12/index.html | 27 ++++++++++++++++++++++++--- public/sitemap.xml | 10 +++++----- 3 files changed, 44 insertions(+), 8 deletions(-) diff --git a/content/post/2017-12.md b/content/post/2017-12.md index 24a2bffb8..8172cf3b2 100644 --- a/content/post/2017-12.md +++ b/content/post/2017-12.md @@ -650,3 +650,18 @@ $ schedtool -D -e ionice -c2 -n7 nice -n19 dspace filter-media -i 10568/89287 ``` - The final code for the JNDI work in the Ansible infrastructure scripts is here: https://github.com/ilri/rmg-ansible-public/commit/1959d9cb7a0e7a7318c77f769253e5e029bdfa3b + +## 2017-12-24 + +- Linode alerted that CGSpace was using high CPU this morning around 6 AM +- I'm playing with reading all of a month's nginx logs into goaccess: + +``` +# find /var/log/nginx -type f -newermt "2017-12-01" | xargs zcat --force | goaccess --log-format=COMBINED - +``` + +- I can see interesting things using this approach, for example: + - 50.116.102.77 checked our status almost 40,000 times so far this month—I think it's the CGNet uptime tool + - Also, we've handled 2.9 million requests this month from 172,000 unique IP addresses! + - Total bandwidth so far this month is 640GiB + - The user that made the most requests so far this month is 45.5.184.196 (267,000 requests) diff --git a/public/2017-12/index.html b/public/2017-12/index.html index d31c71d56..7703e5d53 100644 --- a/public/2017-12/index.html +++ b/public/2017-12/index.html @@ -23,7 +23,7 @@ The list of connections to XMLUI and REST API for today: - + @@ -56,9 +56,9 @@ The list of connections to XMLUI and REST API for today: "@type": "BlogPosting", "headline": "December, 2017", "url": "https://alanorth.github.io/cgspace-notes/2017-12/", - "wordCount": "3593", + "wordCount": "3697", "datePublished": "2017-12-01T13:53:54+03:00", - "dateModified": "2017-12-19T19:16:47+02:00", + "dateModified": "2017-12-20T16:14:32+02:00", "author": { "@type": "Person", "name": "Alan Orth" @@ -844,6 +844,27 @@ $ schedtool -D -e ionice -c2 -n7 nice -n19 dspace filter-media -i 10568/89287
  • The final code for the JNDI work in the Ansible infrastructure scripts is here: https://github.com/ilri/rmg-ansible-public/commit/1959d9cb7a0e7a7318c77f769253e5e029bdfa3b
  • +

    2017-12-24

    + + + +
    # find /var/log/nginx -type f -newermt "2017-12-01" | xargs zcat --force | goaccess --log-format=COMBINED -
    +
    + + + diff --git a/public/sitemap.xml b/public/sitemap.xml index 31e78fbde..70d22528d 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -4,7 +4,7 @@ https://alanorth.github.io/cgspace-notes/2017-12/ - 2017-12-19T19:16:47+02:00 + 2017-12-20T16:14:32+02:00 @@ -139,7 +139,7 @@ https://alanorth.github.io/cgspace-notes/ - 2017-12-19T19:16:47+02:00 + 2017-12-20T16:14:32+02:00 0 @@ -150,7 +150,7 @@ https://alanorth.github.io/cgspace-notes/tags/notes/ - 2017-12-19T19:16:47+02:00 + 2017-12-20T16:14:32+02:00 0 @@ -162,13 +162,13 @@ https://alanorth.github.io/cgspace-notes/post/ - 2017-12-19T19:16:47+02:00 + 2017-12-20T16:14:32+02:00 0 https://alanorth.github.io/cgspace-notes/tags/ - 2017-12-19T19:16:47+02:00 + 2017-12-20T16:14:32+02:00 0