Why are paremeters missing in default dbconfig.xml for postgresql?

When JIRA is installed using a postgresql db, there are parameters missing in the dbconfig.xml file that are included in the instructions about how to set a postgres db.

Here are the additional parameters:

<validation-query>select version();</validation-query>
    <min-evictable-idle-time-millis>60000</min-evictable-idle-time-millis>
    <time-between-eviction-runs-millis>300000</time-between-eviction-runs-millis>
  
    <pool-test-on-borrow>false</pool-test-on-borrow>
	<pool-test-while-idle>true</pool-test-while-idle>

How significant are these parameters? Why are they included in one and not the other?

There are some explanations about the parameters here but they don't answer my question.

Thanks

1 answer

2 votes
Andy Nguyen Atlassian Team Nov 23, 2015

Hi Seb,

As far as I know, not only Postgre but also MSSQL and Oracle dbconfig.xml do not come with these parameters by default. They're indeed only needed for Surviving Connection Closures, which means the default parameters should be good enough in the first place.

However, one point to note is MySQL dbconfig.xml does come with (some of) these parameters by default, so a Suggestion could be we make this consistent for all database types.

Cheers.

P/S: https://jira.atlassian.com/browse/JRA-40754 may be related

Hi Andy,

thanks for the reply. I have an official ticket open where it was suggested that I should add the missing parameters but I'm curious to learn as to why. I suggested in the ticket that support could reply here so the rest of the world also learns what's going on.

Cheers

Andy Nguyen Atlassian Team Nov 23, 2015

Hi Seb, Yes, Surviving Connection Closures should be the answer. Seems that the parameters come by default for MySQL just because only this database type supports validation-query-timeout. The other database types are left open for JIRA admins to tune accordingly. However, this is just my thought. Other users might have better answers :)

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

519 views 3 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you