From 077acd02863cfebfc9378b3ef47b7ca6d9af455d Mon Sep 17 00:00:00 2001 From: Sean Lin Date: Tue, 5 Mar 2019 11:59:31 -0800 Subject: [PATCH] Db failover (#188) * Limit max age of database connection --- gradle.properties | 2 +- src/main/resources/cms.conf | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index d3b4c843f..2c836a3df 100644 --- a/gradle.properties +++ b/gradle.properties @@ -14,6 +14,6 @@ # limitations under the License. # -version=3.25.4 +version=3.25.5 groupId=com.nike.cerberus artifactId=cms diff --git a/src/main/resources/cms.conf b/src/main/resources/cms.conf index 4ce04b9b2..11038608e 100644 --- a/src/main/resources/cms.conf +++ b/src/main/resources/cms.conf @@ -71,6 +71,7 @@ c3p0.acquireIncrement=10 c3p0.testConnectionOnCheckin=true c3p0.idleConnectionTestPeriod=300 c3p0.maxIdleTimeExcessConnections=4200 +c3p0.maxConnectionAge=300 c3p0.preferredTestQuery=SELECT 1 # Hystrix Configuration