summaryrefslogtreecommitdiffstats
path: root/nova/flags.py
diff options
context:
space:
mode:
authorRyan Lucio <rlucio@internap.com>2010-12-30 16:21:11 -0800
committerRyan Lucio <rlucio@internap.com>2010-12-30 16:21:11 -0800
commit7f27f62e41fd655049574975bd3bf6c5b00e9ccf (patch)
tree066e46217a6ce26138c0e67f121c440c9c48bd96 /nova/flags.py
parentc1acb68ef54309584816fbf5c93e38266accb2f0 (diff)
downloadnova-7f27f62e41fd655049574975bd3bf6c5b00e9ccf.tar.gz
nova-7f27f62e41fd655049574975bd3bf6c5b00e9ccf.tar.xz
nova-7f27f62e41fd655049574975bd3bf6c5b00e9ccf.zip
Converted the pool_recycle setting to be a flag with a default of 3600 seconds
Diffstat (limited to 'nova/flags.py')
-rw-r--r--nova/flags.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/nova/flags.py b/nova/flags.py
index 76a98d35a..338dcbf46 100644
--- a/nova/flags.py
+++ b/nova/flags.py
@@ -260,6 +260,9 @@ DEFINE_string('state_path', os.path.join(os.path.dirname(__file__), '../'),
DEFINE_string('sql_connection',
'sqlite:///$state_path/nova.sqlite',
'connection string for sql database')
+DEFINE_string('sql_idle_timeout',
+ '3600',
+ 'timeout for idle sql database connections')
DEFINE_string('compute_manager', 'nova.compute.manager.ComputeManager',
'Manager for compute')