Update notes for 2017-12-19

This commit is contained in:
2017-12-19 10:14:51 +02:00
parent 45be38f00f
commit f41032a891
3 changed files with 40 additions and 8 deletions

View File

@ -396,3 +396,17 @@ $ schedtool -D -e ionice -c2 -n7 nice -n19 dspace index-discovery
```
- The PostgreSQL issues are getting out of control, I need to figure out how to enable connection pools in Tomcat!
## 2017-12-19
- Briefly had PostgreSQL connection issues on CGSpace for the millionth time
- I'm fucking sick of this!
- The connection graph on CGSpace shows shit tons of connections idle
![Idle PostgreSQL connections on CGSpace](/cgspace-notes/2017/12/postgres-connections-month-cgspace-2.png)
- And I only now just realized that DSpace's `db.maxidle` parameter is not seconds, but number of idle connections to allow.
- So theoretically, because each webapp has its own pool, this could be 20 per app—so no wonder we have 50 idle connections!
- I notice that this number will be set to 10 by default in DSpace 6.1 and 7.0: https://jira.duraspace.org/browse/DS-3564
- So I'm going to reduce ours from 20 to 10 and start trying to figure out how the hell to supply a database pool using Tomcat JNDI
- I re-deployed the `5_x-prod` branch on CGSpace, applied all system updates, and restarted the server