fe82df26f0
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
56 lines
2.0 KiB
INI
56 lines
2.0 KiB
INI
[DATABASE]
|
|
# This line MUST be changed to actually run the plugin.
|
|
# Example: sql_connection = mysql://root:nova@127.0.0.1:3306/ryu_quantum
|
|
#sql_connection = mysql://<user>:<pass>@<IP>:<port>/<dbname>
|
|
sql_connection = sqlite://
|
|
# 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
|
|
|
|
[OVS]
|
|
integration_bridge = br-int
|
|
|
|
# openflow_controller = <host IP address of ofp controller>:<port: 6633>
|
|
# openflow_rest_api = <host IP address of ofp rest api service>:<port: 8080>
|
|
openflow_controller = 127.0.0.1:6633
|
|
openflow_rest_api = 127.0.0.1:8080
|
|
|
|
# tunnel key range: 0 < tunnel_key_min < tunnel_key_max
|
|
# VLAN: 12bits, GRE, VXLAN: 24bits
|
|
# tunnel_key_min = 1
|
|
# tunnel_key_max = 0xffffff
|
|
|
|
# tunnel_ip = <ip address for tunneling>
|
|
# tunnel_interface = interface for tunneling
|
|
# when tunnel_ip is NOT specified, ip address is read
|
|
# from this interface
|
|
# tunnel_ip =
|
|
# tunnel_interface =
|
|
tunnel_interface = eth0
|
|
|
|
# ovsdb_port = port number on which ovsdb is listening
|
|
# ryu-agent uses this parameter to setup ovsdb.
|
|
# ovs-vsctl set-manager ptcp:<ovsdb_port>
|
|
# See set-manager section of man ovs-vsctl for details.
|
|
# currently ptcp is only supported.
|
|
# ovsdb_ip = <host IP address on which ovsdb is listening>
|
|
# ovsdb_interface = interface for ovsdb
|
|
# when ovsdb_addr NOT specifiied, ip address is gotten
|
|
# from this interface
|
|
# ovsdb_port = 6634
|
|
# ovsdb_ip =
|
|
# ovsdb_interface =
|
|
ovsdb_interface = eth0
|
|
|
|
[AGENT]
|
|
# Use "sudo quantum-rootwrap /etc/quantum/rootwrap.conf" to use the real
|
|
# root filter facility.
|
|
# Change to "sudo" to skip the filtering and just run the comand directly
|
|
root_helper = sudo
|