From ff1b201d586e4c15a7d0f6e2eff9449bf6bfa2eb Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Wed, 15 Nov 2023 01:51:49 +0900 Subject: [PATCH] Honor connection_recycle_timeout in MysqlPersistenceDriver The taskflow library allows us to customize idle_timeout. This change makes the option set according to the equivalent option in oslo.db similarly to the other options such as max_overflow. Change-Id: I1c50f232c4f0c5c10a3dd5a928466f7ef67a9763 --- octavia/controller/worker/v2/taskflow_jobboard_driver.py | 1 + ...sql-persistence-driver-idle_timeout-23a481d304c3d283.yaml | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 releasenotes/notes/mysql-persistence-driver-idle_timeout-23a481d304c3d283.yaml 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.