You can configure the Cluster Manager to monitor the connection to the database. The following properties in accelerator.properties
control the monitor’s behavior:
-
ACCELERATOR_DB_WATCHDOG_FAILURE_THRESHOLD=3
By default, if the database connection fails three times in a row, the server is restarted. You can change the threshold to a number that meets your needs. Changing the threshold to 0 turns off database connection monitoring.
-
ACCELERATOR_DB_WATCHDOG_INTERVAL=20000
By default, the monitor check the database connection every 20000 milliseconds (20 seconds). You can change the threshold to an interval that meets your needs.