Ask Your Question

Revision history [back]


There are 2 configuration variable sthat you might be interested in:

The first is sql_max_retries, which defines the number of times sqlalchemy will try to connect to the database. The second one is sql_retry_interval, which defines the seconds sqlalchemy will wait before retrying a connection.

The default values for those variables are 60 and 1 which means it will retry to connect 60 times with an interval of 1 second between each.

Also, what is the value of sql_idle_timeout ? This parameter defines the maximum time (in seconds) a connection will live before it is recycled.

  • Did you modify those parameters?
  • Are you having the same issue in other services? From your error, my guess is that Mysql is not reachable when that happens.