<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Alfresco millions connection to PostGres in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-millions-connection-to-postgres/m-p/118613#M32710</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We have an Alfresco community installed on an Unix server.&lt;BR /&gt;It was installed with the docker-compose.&lt;/P&gt;&lt;P&gt;We made a modification to this to move the PostGres docker&amp;nbsp; to an other machine (dedicated to postgres database).&lt;/P&gt;&lt;P&gt;Everything works.&lt;/P&gt;&lt;P&gt;Our IT service warned us that the Alfresco PostGres DB received a million of connections each hour.&lt;BR /&gt;21,177,491 one da, 27,189,102 the next day to be precise.&lt;/P&gt;&lt;P&gt;Is it normal ?&lt;/P&gt;&lt;P&gt;Our IT service is not very happy with that.&lt;/P&gt;</description>
    <pubDate>Tue, 18 May 2021 12:36:53 GMT</pubDate>
    <dc:creator>Corentin</dc:creator>
    <dc:date>2021-05-18T12:36:53Z</dc:date>
    <item>
      <title>Alfresco millions connection to PostGres</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-millions-connection-to-postgres/m-p/118613#M32710</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We have an Alfresco community installed on an Unix server.&lt;BR /&gt;It was installed with the docker-compose.&lt;/P&gt;&lt;P&gt;We made a modification to this to move the PostGres docker&amp;nbsp; to an other machine (dedicated to postgres database).&lt;/P&gt;&lt;P&gt;Everything works.&lt;/P&gt;&lt;P&gt;Our IT service warned us that the Alfresco PostGres DB received a million of connections each hour.&lt;BR /&gt;21,177,491 one da, 27,189,102 the next day to be precise.&lt;/P&gt;&lt;P&gt;Is it normal ?&lt;/P&gt;&lt;P&gt;Our IT service is not very happy with that.&lt;/P&gt;</description>
      <pubDate>Tue, 18 May 2021 12:36:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-millions-connection-to-postgres/m-p/118613#M32710</guid>
      <dc:creator>Corentin</dc:creator>
      <dc:date>2021-05-18T12:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco millions connection to PostGres</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-millions-connection-to-postgres/m-p/118614#M32711</link>
      <description>&lt;P&gt;It depends on how you are using Alfresco and how it has been configured. E.g. if your Alfresco receives millions of calls per hour or runs significant internal (background) processes, and you have configured the connection pool to frequently evict idle connections (default: every 10 minutes connections that have been idle for 30 min are evicted), then this could be expected. Similarily, if connections are dropped because of network issues or becoming invalid in some way, they would be dropped and recreated if needed.&lt;/P&gt;
&lt;P&gt;Relevant config properties that affect eviction:&lt;/P&gt;
&lt;PRE&gt;db.pool.evict.interval=600000
db.pool.evict.idle.min=1800000
# number of connections to test per eviction run - "-n" = fractional test of 1/n of all idle
db.pool.evict.num.tests=-1&lt;/PRE&gt;
&lt;P&gt;Relevant config properties that affect connection validation:&lt;/P&gt;
&lt;PRE&gt;db.pool.validate.query=
db.pool.validate.borrow=true
db.pool.validate.return=false&lt;/PRE&gt;
&lt;P&gt;The above default means that when connections are retrieved from the pool, they are first validated IF a query is set for validation (e.g. I have seen SELECT 1 FROM DUAL when using Oracle DB). If the connection is valid, it will be used, if not, it will be removed and a new one retrieved from the pool. If there are sufficient idle connections in the pool, one of them is likely to be used, otherwise a new connection may be created.&lt;/P&gt;
&lt;PRE&gt;db.pool.initial=10
db.pool.max=275
db.pool.min=10
db.pool.idle=10&lt;/PRE&gt;
&lt;P&gt;By default, Alfresco keeps ~10 idle connections. You could change the min/idle numbers to reduce the number of connections Alfresco evicts when the system is not receiving "enough" work to use them.&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 08:23:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-millions-connection-to-postgres/m-p/118614#M32711</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2021-05-19T08:23:02Z</dc:date>
    </item>
  </channel>
</rss>

