summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorVictor Sergeyev <vsergeyev@mirantis.com>2014-02-25 15:51:49 +0200
committerVictor Sergeyev <vsergeyev@mirantis.com>2014-02-26 21:13:57 +0200
commit9bbea3bf0040eb1138f9e8a8e719039f79c647de (patch)
treec1bd8073e1c74d2995093809a10839e71940e0e8 /etc
parent1a57ac47b3fa878d07d7c05bafa6ad20ce5afe9d (diff)
downloadironic-9bbea3bf0040eb1138f9e8a8e719039f79c647de.tar.gz
Sync common db code from Oslo
This sync contains commit - ce69e7f Don't store engine instances in oslo.db - which removed global engine from oslo.db code. So, added code for work with sqla engines and sessions to Ironic - get_engine() and get_session() functions in ironic.db.sqlalchemy.api module. Also this remove database slave connection and tpool features, because they was removed from oslo code. Latest oslo.db commit - 7959826af1f36a4bbc4c466d0d1e0b9efd468649 Change-Id: I14c3b823a8b975d5cd097778f3514cfb1abe2e10
Diffstat (limited to 'etc')
-rw-r--r--etc/ironic/ironic.conf.sample57
1 files changed, 31 insertions, 26 deletions
diff --git a/etc/ironic/ironic.conf.sample b/etc/ironic/ironic.conf.sample
index 1480e068f..6d1ec538c 100644
--- a/etc/ironic/ironic.conf.sample
+++ b/etc/ironic/ironic.conf.sample
@@ -113,17 +113,6 @@
#
-# Options defined in ironic.openstack.common.db.sqlalchemy.session
-#
-
-# The file name to use with SQLite (string value)
-#sqlite_db=ironic.sqlite
-
-# If True, SQLite uses synchronous mode (boolean value)
-#sqlite_synchronous=true
-
-
-#
# Options defined in ironic.openstack.common.eventlet_backdoor
#
@@ -501,33 +490,30 @@
#
-# Options defined in ironic.openstack.common.db.api
+# Options defined in ironic.openstack.common.db.options
#
+# The file name to use with SQLite (string value)
+#sqlite_db=ironic.sqlite
+
+# If True, SQLite uses synchronous mode (boolean value)
+#sqlite_synchronous=true
+
# The backend to use for db (string value)
# Deprecated group/name - [DEFAULT]/db_backend
#backend=sqlalchemy
-# Enable the experimental use of thread pooling for all DB API
-# calls (boolean value)
-# Deprecated group/name - [DEFAULT]/dbapi_use_tpool
-#use_tpool=false
-
-
-#
-# Options defined in ironic.openstack.common.db.sqlalchemy.session
-#
-
# The SQLAlchemy connection string used to connect to the
# database (string value)
# Deprecated group/name - [DEFAULT]/sql_connection
# Deprecated group/name - [DATABASE]/sql_connection
# Deprecated group/name - [sql]/connection
-#connection=sqlite:////ironic/openstack/common/db/$sqlite_db
+#connection=<None>
-# The SQLAlchemy connection string used to connect to the
-# slave database (string value)
-#slave_connection=
+# The SQL mode to be used for MySQL sessions (default is
+# empty, meaning do not override any server-side SQL mode
+# setting) (string value)
+#mysql_sql_mode=<None>
# Timeout before idle sql connections are reaped (integer
# value)
@@ -581,6 +567,25 @@
# Deprecated group/name - [DATABASE]/sqlalchemy_pool_timeout
#pool_timeout=<None>
+# Enable the experimental use of database reconnect on
+# connection lost (boolean value)
+#use_db_reconnect=false
+
+# seconds between db connection retries (integer value)
+#db_retry_interval=1
+
+# Whether to increase interval between db connection retries,
+# up to db_max_retry_interval (boolean value)
+#db_inc_retry_interval=true
+
+# max seconds between db connection retries, if
+# db_inc_retry_interval is enabled (integer value)
+#db_max_retry_interval=10
+
+# maximum db connection retries before error is raised.
+# (setting -1 implies an infinite retry count) (integer value)
+#db_max_retries=20
+
[glance]