diff --git a/octavia/controller/worker/v2/taskflow_jobboard_driver.py b/octavia/controller/worker/v2/taskflow_jobboard_driver.py index d8595d7c56..38417dfc88 100644 --- a/octavia/controller/worker/v2/taskflow_jobboard_driver.py +++ b/octavia/controller/worker/v2/taskflow_jobboard_driver.py @@ -41,6 +41,7 @@ class MysqlPersistenceDriver(object): 'max_pool_size': CONF.database.max_pool_size, 'max_overflow': CONF.database.max_overflow, 'pool_timeout': CONF.database.pool_timeout, + 'idle_timeout': CONF.database.connection_recycle_time } def initialize(self): diff --git a/releasenotes/notes/mysql-persistence-driver-idle_timeout-23a481d304c3d283.yaml b/releasenotes/notes/mysql-persistence-driver-idle_timeout-23a481d304c3d283.yaml new file mode 100644 index 0000000000..8db904e0c5 --- /dev/null +++ b/releasenotes/notes/mysql-persistence-driver-idle_timeout-23a481d304c3d283.yaml @@ -0,0 +1,5 @@ +--- +features: + - | + Now the ``[database] connection_recycle_time`` option is also used by + connections in MySQL persistence driver.