From 4a779ce2a62073a7fac981e7fe27c2336fb4b1d0 Mon Sep 17 00:00:00 2001 From: eh552t Date: Thu, 17 Aug 2017 12:10:40 +0200 Subject: [PATCH] Fix clamp maxReconnects Increase maxReconnects from default value 3 to 100 Change-Id: Iab8ee1e1a43f03a6442c051e11e44236c07ed6b9 Signed-off-by: eh552t Issue-Id: CLAMP-42 --- extra/docker/clamp/clamp.env | 2 +- src/main/resources/application.properties | 22 +++++++++++----------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/extra/docker/clamp/clamp.env b/extra/docker/clamp/clamp.env index 842afd63..bac8fd31 100644 --- a/extra/docker/clamp/clamp.env +++ b/extra/docker/clamp/clamp.env @@ -1 +1 @@ -SPRING_APPLICATION_JSON={"spring.datasource.camunda.url":"jdbc:mysql://db:3306/camundabpm?verifyServerCertificate=false&useSSL=false&requireSSL=false&autoReconnect=true","spring.datasource.cldsdb.url":"jdbc:mysql://db:3306/cldsdb4?verifyServerCertificate=false&useSSL=false&requireSSL=false&autoReconnect=true"} \ No newline at end of file +SPRING_APPLICATION_JSON={"spring.datasource.camunda.url":"jdbc:mysql://db:3306/camundabpm?verifyServerCertificate=false&useSSL=false&requireSSL=false&autoReconnect=true&maxReconnects=100","spring.datasource.cldsdb.url":"jdbc:mysql://db:3306/cldsdb4?verifyServerCertificate=false&useSSL=false&requireSSL=false&autoReconnect=true&maxReconnects=100"} \ No newline at end of file diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index fd908c87..ce4158bb 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -5,16 +5,16 @@ # Copyright (C) 2017 AT&T Intellectual Property. All rights # reserved. # ================================================================================ -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. # You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and # limitations under the License. # ============LICENSE_END============================================ # =================================================================== @@ -62,7 +62,7 @@ kubernetes.namespace=com-att-ajsc #server.port=0 #Camunda Process Engine DataSource connection Details -spring.datasource.camunda.url=jdbc:mysql://localhost:${docker.mariadb.port.host}/camundabpm?verifyServerCertificate=false&useSSL=false&requireSSL=false&autoReconnect=true +spring.datasource.camunda.url=jdbc:mysql://localhost:${docker.mariadb.port.host}/camundabpm?verifyServerCertificate=false&useSSL=false&requireSSL=false&autoReconnect=true&maxReconnects=100 spring.datasource.camunda.username=camunda spring.datasource.camunda.password=ndMSpw4CAM spring.datasource.camunda.driverClassName=com.mysql.jdbc.Driver @@ -79,7 +79,7 @@ camunda.bpm.history-level=auto #clds datasource connection details spring.datasource.cldsdb.driver-class-name=com.mysql.jdbc.Driver -spring.datasource.cldsdb.url=jdbc:mysql://localhost:${docker.mariadb.port.host}/cldsdb4?verifyServerCertificate=false&useSSL=false&requireSSL=false&autoReconnect=true +spring.datasource.cldsdb.url=jdbc:mysql://localhost:${docker.mariadb.port.host}/cldsdb4?verifyServerCertificate=false&useSSL=false&requireSSL=false&autoReconnect=true&maxReconnects=100 spring.datasource.cldsdb.username=clds spring.datasource.cldsdb.password=sidnnd83K spring.datasource.cldsdb.driverClassName=com.mysql.jdbc.Driver @@ -109,7 +109,7 @@ org.onap.clamp.config.files.cldsPolicyConfig=classpath:/clds/clds-policy-config. org.onap.clamp.config.files.cldsUsers=classpath:/clds/clds-users.json org.onap.clamp.config.files.globalClds=classpath:/clds/globalClds.properties -#Define user permission related parameters, the permission type can be changed but MUST be redefined in clds-users.properties in that case ! +#Define user permission related parameters, the permission type can be changed but MUST be redefined in clds-users.properties in that case ! CLDS_PERMISSION_TYPE_CL=permission-type-cl CLDS_PERMISSION_TYPE_CL_MANAGE=permission-type-cl-manage CLDS_PERMISSION_TYPE_CL_EVENT=permission-type-cl-event -- 2.16.6