Wait for database with mariadb connector 01/12401/1
authoreh552t <eh552t@intl.att.com>
Thu, 14 Sep 2017 09:20:19 +0000 (11:20 +0200)
committereh552t <eh552t@intl.att.com>
Thu, 14 Sep 2017 09:21:26 +0000 (11:21 +0200)
With the change from Mysql to MariaDB connector
maxReconnect parameters doesn't work anymore.
We then need to use retriesAllDown instead but
this is doing retries as fast as possible with
no wait between tries so need an arbitrary high
value. With maxReconnect it was waiting a time
exponentially growing so a low value was enough.

Change-Id: I7d03baa69bbee46d82a403f573d9f492f9720a4c
Signed-off-by: eh552t <eh552t@intl.att.com>
Issue-ID: CLAMP-42

extra/docker/clamp/clamp.env

index e5936e3..bcbccb6 100644 (file)
@@ -1 +1 @@
-SPRING_APPLICATION_JSON={"spring.datasource.camunda.url":"jdbc:mariadb:sequential://db:3306/camundabpm?verifyServerCertificate=false&useSSL=false&requireSSL=false&autoReconnect=true&retriesAllDown=2147483647&failoverLoopRetries=2147483647","spring.datasource.cldsdb.url":"jdbc:mariadb:sequential://db:3306/cldsdb4?verifyServerCertificate=false&useSSL=false&requireSSL=false&autoReconnect=true&retriesAllDown=2147483647&failoverLoopRetries=2147483647"}
\ No newline at end of file
+SPRING_APPLICATION_JSON={"spring.datasource.camunda.url":"jdbc:mariadb://db:3306/camundabpm?verifyServerCertificate=false&useSSL=false&requireSSL=false&autoReconnect=true&retriesAllDown=2147483647&failoverLoopRetries=2147483647","spring.datasource.cldsdb.url":"jdbc:mariadb://db:3306/cldsdb4?verifyServerCertificate=false&useSSL=false&requireSSL=false&autoReconnect=true&retriesAllDown=2147483647&failoverLoopRetries=2147483647"}
\ No newline at end of file