From 184f0628b38c2f1bae55fd6f94c91d16044c385b Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sun, 10 Sep 2017 18:17:25 +0300 Subject: [PATCH] Update notes --- content/post/2017-08.md | 2 +- content/post/2017-09.md | 20 ++++++++++++++++++++ public/2017-05/index.html | 4 ++-- public/2017-08/index.html | 2 +- public/2017-09/index.html | 27 ++++++++++++++++++++++++--- public/sitemap.xml | 12 ++++++------ 6 files changed, 54 insertions(+), 13 deletions(-) diff --git a/content/post/2017-08.md b/content/post/2017-08.md index 46a44d1b8..3966805a1 100644 --- a/content/post/2017-08.md +++ b/content/post/2017-08.md @@ -169,7 +169,7 @@ $ grep -rsI SQLException dspace-xmlui | wc -l - Unfortunately I don't have the breakdown of which DSpace apps are making those connections (I'll assume XMLUI) - So I guess a limit of 30 (DSpace default) is too low, but 70 causes problems when the load increases and the system's PostgreSQL `max_connections` is too low -- For now I think maybe setting DSpace's `db.maxconnections` to 40 and adjusting the system's `max_connections` might be a good starting point: 40 * 3 + 4 = 123 +- For now I think maybe setting DSpace's `db.maxconnections` to 40 and adjusting the system's `max_connections` might be a good starting point: 40 * 3 + 3 = 123 - Apply 223 more author corrections from Peter on CGIAR Library - Help Magdalena from CCAFS with some CUA statistics questions diff --git a/content/post/2017-09.md b/content/post/2017-09.md index b997a489e..47482b9aa 100644 --- a/content/post/2017-09.md +++ b/content/post/2017-09.md @@ -34,3 +34,23 @@ DELETE 58 - Create pull request for Phase I and II changes to CCAFS Project Tags: [#336](https://github.com/ilri/DSpace/pull/336) - We've been discussing with Macaroni Bros and CCAFS for the past month or so and the list of tags was recently finalized - There will need to be some metadata updates — though if I recall correctly it is only about seven records — for that as well, I had made some notes about it in [2017-07](/cgspace-notes/2017-07), but I've asked for more clarification from Lili just in case +- Looking at the DSpace logs to see if we've had a change in the "Cannot get a connection" errors since last month when we adjusted the `db.maxconnections` parameter on CGSpace: + +``` +# grep -c "Cannot get a connection, pool error Timeout waiting for idle object" dspace.log.2017-09-* +dspace.log.2017-09-01:0 +dspace.log.2017-09-02:0 +dspace.log.2017-09-03:9 +dspace.log.2017-09-04:17 +dspace.log.2017-09-05:752 +dspace.log.2017-09-06:0 +dspace.log.2017-09-07:0 +dspace.log.2017-09-08:10 +dspace.log.2017-09-09:0 +dspace.log.2017-09-10:0 +``` + +- Also, since last month (2017-08) Macaroni Bros no longer runs their REST API scraper every hour, so I'm sure that helped +- There are still some errors, though, so maybe I should bump the connection limit up a bit +- I remember seeing that Munin shows that the average number of connections is 50 (which is probably mostly from the XMLUI) and we're currently allowing 40 connections per app, so maybe it would be good to bump that value up to 50 or 60 along with the system's PostgreSQL `max_connections` (formula should be: webapps * 60 + 3, or 3 * 60 + 3 = 183 in our case) +- I updated both CGSpace and DSpace Test to use these new settings (60 connections per web app and 183 for system PostgreSQL limit) diff --git a/public/2017-05/index.html b/public/2017-05/index.html index c25bcd139..747042b01 100644 --- a/public/2017-05/index.html +++ b/public/2017-05/index.html @@ -13,7 +13,7 @@ - + @@ -39,7 +39,7 @@ "url": "https://alanorth.github.io/cgspace-notes/2017-05/", "wordCount": "2398", "datePublished": "2017-05-01T16:21:52+02:00", - "dateModified": "2017-09-10T13:35:51+03:00", + "dateModified": "2017-09-10T17:46:54+03:00", "author": { "@type": "Person", "name": "Alan Orth" diff --git a/public/2017-08/index.html b/public/2017-08/index.html index ee2a9b3da..364584460 100644 --- a/public/2017-08/index.html +++ b/public/2017-08/index.html @@ -352,7 +352,7 @@ $ grep -rsI SQLException dspace-xmlui | wc -l diff --git a/public/2017-09/index.html b/public/2017-09/index.html index 09d0e385c..1ba591415 100644 --- a/public/2017-09/index.html +++ b/public/2017-09/index.html @@ -19,7 +19,7 @@ Linode sent an alert that CGSpace (linode18) was using 261% CPU for the past two - + @@ -49,9 +49,9 @@ Linode sent an alert that CGSpace (linode18) was using 261% CPU for the past two "@type": "BlogPosting", "headline": "September, 2017", "url": "https://alanorth.github.io/cgspace-notes/2017-09/", - "wordCount": "258", + "wordCount": "443", "datePublished": "2017-09-07T16:54:52+07:00", - "dateModified": "2017-09-10T13:35:51+03:00", + "dateModified": "2017-09-10T17:46:54+03:00", "author": { "@type": "Person", "name": "Alan Orth" @@ -149,6 +149,27 @@ DELETE 58
  • Create pull request for Phase I and II changes to CCAFS Project Tags: #336
  • We’ve been discussing with Macaroni Bros and CCAFS for the past month or so and the list of tags was recently finalized
  • There will need to be some metadata updates — though if I recall correctly it is only about seven records — for that as well, I had made some notes about it in 2017-07, but I’ve asked for more clarification from Lili just in case
  • +
  • Looking at the DSpace logs to see if we’ve had a change in the “Cannot get a connection” errors since last month when we adjusted the db.maxconnections parameter on CGSpace:
  • + + +
    # grep -c "Cannot get a connection, pool error Timeout waiting for idle object" dspace.log.2017-09-*
    +dspace.log.2017-09-01:0
    +dspace.log.2017-09-02:0
    +dspace.log.2017-09-03:9
    +dspace.log.2017-09-04:17
    +dspace.log.2017-09-05:752
    +dspace.log.2017-09-06:0
    +dspace.log.2017-09-07:0
    +dspace.log.2017-09-08:10
    +dspace.log.2017-09-09:0
    +dspace.log.2017-09-10:0
    +
    + + diff --git a/public/sitemap.xml b/public/sitemap.xml index 2d0e988a6..5847f1c7f 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -4,7 +4,7 @@ https://alanorth.github.io/cgspace-notes/2017-09/ - 2017-09-10T13:35:51+03:00 + 2017-09-10T17:46:54+03:00 @@ -24,7 +24,7 @@ https://alanorth.github.io/cgspace-notes/2017-05/ - 2017-09-10T13:35:51+03:00 + 2017-09-10T17:46:54+03:00 @@ -119,7 +119,7 @@ https://alanorth.github.io/cgspace-notes/ - 2017-09-10T13:35:51+03:00 + 2017-09-10T17:46:54+03:00 0 @@ -130,19 +130,19 @@ https://alanorth.github.io/cgspace-notes/tags/notes/ - 2017-09-10T13:35:51+03:00 + 2017-09-10T17:46:54+03:00 0 https://alanorth.github.io/cgspace-notes/post/ - 2017-09-10T13:35:51+03:00 + 2017-09-10T17:46:54+03:00 0 https://alanorth.github.io/cgspace-notes/tags/ - 2017-09-10T13:35:51+03:00 + 2017-09-10T17:46:54+03:00 0