mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2024-11-16 20:07:03 +01:00
Update notes for 2017-11-29
This commit is contained in:
parent
96bb2a3ac5
commit
b23226a46d
@ -893,3 +893,24 @@ $ grep 70.32.83.92 dspace.log.2017-11-23 | grep -o -E 'session_id=[A-Z0-9]{32}'
|
|||||||
|
|
||||||
- PostgreSQL activity shows 69 connections
|
- PostgreSQL activity shows 69 connections
|
||||||
- I don't have time to troubleshoot more as I'm in Nairobi working on the HPC so I just restarted Tomcat for now
|
- I don't have time to troubleshoot more as I'm in Nairobi working on the HPC so I just restarted Tomcat for now
|
||||||
|
- A few hours later Uptime Robot says the server is down again
|
||||||
|
- I don't see much activity in the logs but there are 87 PostgreSQL connections
|
||||||
|
- But shit, there were 10,000 unique Tomcat sessions today:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ cat dspace.log.2017-11-29 | grep -o -E 'session_id=[A-Z0-9]{32}' | sort -n | uniq | wc -l
|
||||||
|
10037
|
||||||
|
```
|
||||||
|
|
||||||
|
- Although maybe that's not much, as the previous two days had more:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ cat dspace.log.2017-11-27 | grep -o -E 'session_id=[A-Z0-9]{32}' | sort -n | uniq | wc -l
|
||||||
|
12377
|
||||||
|
$ cat dspace.log.2017-11-28 | grep -o -E 'session_id=[A-Z0-9]{32}' | sort -n | uniq | wc -l
|
||||||
|
16984
|
||||||
|
```
|
||||||
|
|
||||||
|
- I think we just need start increasing the number of allowed PostgreSQL connections instead of fighting this, as it's the most common source of crashes we have
|
||||||
|
- I will bump DSpace's `db.maxconnections` from 60 to 90, and PostgreSQL's `max_connections` from 183 to 273 (which is using my loose formula of 90 * webapps + 3)
|
||||||
|
- I really need to figure out how to get DSpace to use a PostgreSQL connection pool
|
||||||
|
@ -38,7 +38,7 @@ COPY 54701
|
|||||||
|
|
||||||
<meta property="article:published_time" content="2017-11-02T09:37:54+02:00"/>
|
<meta property="article:published_time" content="2017-11-02T09:37:54+02:00"/>
|
||||||
|
|
||||||
<meta property="article:modified_time" content="2017-11-26T21:26:13+03:00"/>
|
<meta property="article:modified_time" content="2017-11-29T10:14:09+03:00"/>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -86,9 +86,9 @@ COPY 54701
|
|||||||
"@type": "BlogPosting",
|
"@type": "BlogPosting",
|
||||||
"headline": "November, 2017",
|
"headline": "November, 2017",
|
||||||
"url": "https://alanorth.github.io/cgspace-notes/2017-11/",
|
"url": "https://alanorth.github.io/cgspace-notes/2017-11/",
|
||||||
"wordCount": "5220",
|
"wordCount": "5389",
|
||||||
"datePublished": "2017-11-02T09:37:54+02:00",
|
"datePublished": "2017-11-02T09:37:54+02:00",
|
||||||
"dateModified": "2017-11-26T21:26:13+03:00",
|
"dateModified": "2017-11-29T10:14:09+03:00",
|
||||||
"author": {
|
"author": {
|
||||||
"@type": "Person",
|
"@type": "Person",
|
||||||
"name": "Alan Orth"
|
"name": "Alan Orth"
|
||||||
@ -1152,6 +1152,29 @@ $ grep -c com.atmire.utils.UpdateSolrStatsMetadata dspace.log.2017-11-19
|
|||||||
<ul>
|
<ul>
|
||||||
<li>PostgreSQL activity shows 69 connections</li>
|
<li>PostgreSQL activity shows 69 connections</li>
|
||||||
<li>I don’t have time to troubleshoot more as I’m in Nairobi working on the HPC so I just restarted Tomcat for now</li>
|
<li>I don’t have time to troubleshoot more as I’m in Nairobi working on the HPC so I just restarted Tomcat for now</li>
|
||||||
|
<li>A few hours later Uptime Robot says the server is down again</li>
|
||||||
|
<li>I don’t see much activity in the logs but there are 87 PostgreSQL connections</li>
|
||||||
|
<li>But shit, there were 10,000 unique Tomcat sessions today:</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<pre><code>$ cat dspace.log.2017-11-29 | grep -o -E 'session_id=[A-Z0-9]{32}' | sort -n | uniq | wc -l
|
||||||
|
10037
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>Although maybe that’s not much, as the previous two days had more:</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<pre><code>$ cat dspace.log.2017-11-27 | grep -o -E 'session_id=[A-Z0-9]{32}' | sort -n | uniq | wc -l
|
||||||
|
12377
|
||||||
|
$ cat dspace.log.2017-11-28 | grep -o -E 'session_id=[A-Z0-9]{32}' | sort -n | uniq | wc -l
|
||||||
|
16984
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>I think we just need start increasing the number of allowed PostgreSQL connections instead of fighting this, as it’s the most common source of crashes we have</li>
|
||||||
|
<li>I will bump DSpace’s <code>db.maxconnections</code> from 60 to 90, and PostgreSQL’s <code>max_connections</code> from 183 to 273 (which is using my loose formula of 90 * webapps + 3)</li>
|
||||||
|
<li>I really need to figure out how to get DSpace to use a PostgreSQL connection pool</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>https://alanorth.github.io/cgspace-notes/2017-11/</loc>
|
<loc>https://alanorth.github.io/cgspace-notes/2017-11/</loc>
|
||||||
<lastmod>2017-11-26T21:26:13+03:00</lastmod>
|
<lastmod>2017-11-29T10:14:09+03:00</lastmod>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
<url>
|
<url>
|
||||||
@ -134,7 +134,7 @@
|
|||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>https://alanorth.github.io/cgspace-notes/</loc>
|
<loc>https://alanorth.github.io/cgspace-notes/</loc>
|
||||||
<lastmod>2017-11-26T21:26:13+03:00</lastmod>
|
<lastmod>2017-11-29T10:14:09+03:00</lastmod>
|
||||||
<priority>0</priority>
|
<priority>0</priority>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
@ -145,7 +145,7 @@
|
|||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>https://alanorth.github.io/cgspace-notes/tags/notes/</loc>
|
<loc>https://alanorth.github.io/cgspace-notes/tags/notes/</loc>
|
||||||
<lastmod>2017-11-26T21:26:13+03:00</lastmod>
|
<lastmod>2017-11-29T10:14:09+03:00</lastmod>
|
||||||
<priority>0</priority>
|
<priority>0</priority>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
@ -157,13 +157,13 @@
|
|||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>https://alanorth.github.io/cgspace-notes/post/</loc>
|
<loc>https://alanorth.github.io/cgspace-notes/post/</loc>
|
||||||
<lastmod>2017-11-26T21:26:13+03:00</lastmod>
|
<lastmod>2017-11-29T10:14:09+03:00</lastmod>
|
||||||
<priority>0</priority>
|
<priority>0</priority>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>https://alanorth.github.io/cgspace-notes/tags/</loc>
|
<loc>https://alanorth.github.io/cgspace-notes/tags/</loc>
|
||||||
<lastmod>2017-11-26T21:26:13+03:00</lastmod>
|
<lastmod>2017-11-29T10:14:09+03:00</lastmod>
|
||||||
<priority>0</priority>
|
<priority>0</priority>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user