<paul_henshaw> al-maisan: regarding postgres max_connections- how many connections are used per worker process right now?
<al-maisan> IIRC only 1
<al-maisan> paul_henshaw: on gemcontrol we have "max_connections = 256" for approx. 190 workers
<paul_henshaw> I think this changed with nhlib however
<al-maisan> Oh?
<paul_henshaw> I am pretty sure we are using more than 1 for process
<al-maisan> is it using a connection as well?
<paul_henshaw> On ktulu I am using 3 worker processes per node in order to avoid too many connections
<al-maisan> paul_henshaw: but bear in mind that not all the hazard calculator use the nhlib
<paul_henshaw> Indeed
<paul_henshaw> I am also pretty sure that nhlib itself does not use the DB
<al-maisan> interesting
<al-maisan> so, why are using more than 1 connection per process then?
<paul_henshaw> I don't remember
* al-maisan looks at the MF cluster
<paul_henshaw> but I have 30 worker nodes, 3 processes per node and max_connections = 200
<paul_henshaw> Which works
<paul_henshaw> but with 4 processes per node, I exceed the 200 limit
<paul_henshaw> =>
<paul_henshaw> at least 2 connections per process
<al-maisan> $ ssh <email address hidden> lsof -i tcp | grep postg | wc -l
<al-maisan> 188
<al-maisan> it looks like 1 pg connection per worker on the MF cluster
<paul_henshaw> al-maisan: but this is still running the master OQ engine
<al-maisan> yes
<al-maisan> you are running the nhlibi branch?
<paul_henshaw> I need to configure a server for use with both
<paul_henshaw> Sometimes we use master
<paul_henshaw> sometimes nhlib
<paul_henshaw> Running from git
<paul_henshaw> and using a different DB
<al-maisan> paul_henshaw: did you hit the limit when using the nhlibi branch?
<paul_henshaw> Exactluy
<paul_henshaw> Exactly
<al-maisan> so, the increase in pg connections is particular to nhlibi
<al-maisan> we need to find why that is and fix it if at all possible
<al-maisan> IIRC the nhlib does not go nowhere near the pg database
<al-maisan> that's why it introduced its own domain classes
<paul_henshaw> Yes, I am sure you are right - the nhlib itself does not use the DB directly
We need to confirm whether the nhlibi code indeed uses 2 db connections per worker. If yes, this should be fixed.