Record: RetryConfig

Configurations related to connection reconnect attempts.

Closed record


  • maxReconnect int(default 60)
  • Maximum number of reconnect attempts. The reconnect state is triggered when an already established connection is lost. During the initial connection attempt, the client will cycle over its server list one time regardless of the maxReconnects value that is set. Use 0 to turn off auto reconnecting. Use -1 to turn on infinite reconnects.

  • reconnectWait decimal(default 2)
  • The time(in seconds) to wait between the reconnect attempts to reconnect to the same server

  • connectionTimeout decimal(default 2)
  • The timeout (in seconds) for the connection attempts