mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
DCD-1362: Add tcpKeepAlive and socketTimeout for Jira dbconfig.xml
This commit is contained in:
@@ -22,6 +22,11 @@ atl_tomcat_redirectport: ""
|
||||
atl_tomcat_scheme: "http"
|
||||
atl_tomcat_secure: "false"
|
||||
|
||||
# Mitigation of potentially stuck threads with certain network setup while using PostgreSQL
|
||||
# https://confluence.atlassian.com/jirakb/connection-problems-to-postgresql-result-in-stuck-threads-in-jira-1047534091.html
|
||||
atl_db_keepalive: 'true'
|
||||
atl_db_sockettimeout: '240'
|
||||
|
||||
atl_db_poolminsize: '20'
|
||||
atl_db_poolmaxsize: '100'
|
||||
atl_db_minidle: '10'
|
||||
|
||||
@@ -15,6 +15,8 @@ def test_dbconfig_file(host):
|
||||
assert f.contains("<username>atljira</username>")
|
||||
assert f.contains("<password>molecule_password</password>")
|
||||
|
||||
assert f.contains("<connection-properties>tcpKeepAlive=true;socketTimeout=240</connection-properties>")
|
||||
|
||||
assert f.contains("<pool-min-size>1111</pool-min-size>")
|
||||
assert f.contains("<pool-max-size>1111</pool-max-size>")
|
||||
assert f.contains("<pool-min-idle>1111</pool-min-idle>")
|
||||
|
||||
@@ -13,6 +13,8 @@
|
||||
atl_jvm_heap: 'PLACEHOLDER'
|
||||
atl_jvm_opts: 'PLACEHOLDER'
|
||||
atl_cluster_node_id: 'FAKEID'
|
||||
atl_db_keepalive: 'false'
|
||||
atl_db_sockettimeout: '111'
|
||||
atl_db_poolminsize: 1111
|
||||
atl_db_poolmaxsize: 1111
|
||||
atl_db_minidle: 1111
|
||||
|
||||
@@ -15,6 +15,8 @@ def test_dbconfig_file(host):
|
||||
assert f.contains("<username>atljira</username>")
|
||||
assert f.contains("<password>molecule_password</password>")
|
||||
|
||||
assert f.contains("<connection-properties>tcpKeepAlive=false;socketTimeout=111</connection-properties>")
|
||||
|
||||
assert f.contains("<pool-min-size>1111</pool-min-size>")
|
||||
assert f.contains("<pool-max-size>1111</pool-max-size>")
|
||||
assert f.contains("<pool-min-idle>1111</pool-min-idle>")
|
||||
|
||||
@@ -10,6 +10,9 @@
|
||||
<username>{{ atl_jdbc_user }}</username>
|
||||
<password>{{ atl_jdbc_password | replace("&", "&") }}</password>
|
||||
<driver-class>{{ atl_db_driver }}</driver-class>
|
||||
{% if 'postgres' in atl_db_type %}
|
||||
<connection-properties>tcpKeepAlive={{ atl_db_keepalive }};socketTimeout={{ atl_db_sockettimeout }}</connection-properties>
|
||||
{% endif %}
|
||||
|
||||
<pool-min-size>{{ atl_db_poolminsize }}</pool-min-size>
|
||||
<pool-max-size>{{ atl_db_poolmaxsize }}</pool-max-size>
|
||||
|
||||
Reference in New Issue
Block a user