Connect Retries

Description

The maximum number of retries when attempting to connect to the database. After each failed attempt, MigrateDB will wait 1 second before attempting to connect again, up to the maximum number of times specified by connectRetries. The interval between retries doubles with each subsequent attempt.

Default

0

Usage

Command line

./migratedb -connectRetries=10 info

Configuration File

migratedb.connectRetries=10

Environment Variable

MIGRATEDB_CONNECT_RETRIES=10

API

MigrateDb.configure()
    .connectRetries(10)
    .load()