Hello, our setup is Jira DC(multiple nodes) with PostgreSQL cluster DB. We have issue with high increasement of active DB sessions after DB switchover which stay on the same amount until Jira restart. This is our pool configuration:
<pool-min-size>250</pool-min-size>
<pool-max-size>250</pool-max-size>
<pool-max-wait>30000</pool-max-wait>
<pool-max-idle>80</pool-max-idle>
and connection pool after the switchover:

Anybody has experience? Any parameter to tune the pool so the active sessions(which are broken obviously because we see just some on DB side) are kicked out after some time?
Thank you for each suggestion.