7b5f6fd6ae
This adds the use of eventlet's db_pool module so that we can make mysql calls without blocking the whole process. New config options are introduced: sql_dbpool_enable -- Enables the use of eventlet's db_pool sql_min_pool_size -- Set the minimum number of SQL connections sql_max_pool_size -- Set the maximum number of SQL connections sql_idle_timeout -- Timeout before idle sql connections are reaped The default for sql_dbpool_enable is False for now, so there is no forced behavior changes for those using mysql. sql_min_pool_size is defaulted to 1 to match behavior if not using db_pool. Fixes bug 1086173 Change-Id: Ied0aae33211585743fe955028a75c4e192a15d2f
40 lines
1.7 KiB
INI
40 lines
1.7 KiB
INI
[DATABASE]
|
|
# This line MUST be changed to actually run the plugin.
|
|
# Example:
|
|
# sql_connection = mysql://root:nova@127.0.0.1:3306/ovs_quantum
|
|
# Replace 127.0.0.1 above with the IP address of the database used by the
|
|
# main quantum server. (Leave it as is if the database runs on this host.)
|
|
sql_connection = mysql://root:password@localhost/quantum_metaplugin?charset=utf8
|
|
|
|
# Database reconnection retry times - in event connectivity is lost
|
|
# set to -1 implgies an infinite retry count
|
|
# sql_max_retries = 10
|
|
# Database reconnection interval in seconds - if the initial connection to the
|
|
# database fails
|
|
reconnect_interval = 2
|
|
|
|
# Enable the use of eventlet's db_pool for MySQL. The flags sql_min_pool_size,
|
|
# sql_max_pool_size and sql_idle_timeout are relevant only if this is enabled.
|
|
# sql_dbpool_enable = False
|
|
# Minimum number of SQL connections to keep open in a pool
|
|
# sql_min_pool_size = 1
|
|
# Maximum number of SQL connections to keep open in a pool
|
|
# sql_max_pool_size = 5
|
|
# Timeout in seconds before idle sql connections are reaped
|
|
# sql_idle_timeout = 3600
|
|
|
|
[META]
|
|
## This is list of flavor:quantum_plugins
|
|
# extension method is used in the order of this list
|
|
plugin_list= 'openvswitch:quantum.plugins.openvswitch.ovs_quantum_plugin.OVSQuantumPluginV2,linuxbridge:quantum.plugins.linuxbridge.lb_quantum_plugin.LinuxBridgePluginV2'
|
|
l3_plugin_list= 'openvswitch:quantum.plugins.openvswitch.ovs_quantum_plugin.OVSQuantumPluginV2,linuxbridge:quantum.plugins.linuxbridge.lb_quantum_plugin.LinuxBridgePluginV2'
|
|
|
|
# Default value of flavor
|
|
default_flavor = 'openvswitch'
|
|
default_l3_flavor = 'openvswitch'
|
|
|
|
# supported extentions
|
|
supported_extension_aliases = 'providernet'
|
|
# specific method map for each flavor to extensions
|
|
extension_map = 'get_port_stats:nvp'
|