Adds Support for Glance Registry MySQL Idle Timeout
Previously, only the glance::api class could manage the sql idle timeout. This change allows the sql idle timeout for Glance Registry to be configurable. Defaults to '3600' for backwards compatibility with a `wait_timeout' of 8 hours, after which MySQL will drop idle connections. Change-Id: I00d01e77af56384f4d74ab8de4a7d3bbd298e9a2
This commit is contained in:
@@ -97,6 +97,7 @@ class openstack::glance (
|
||||
keystone_user => 'glance',
|
||||
keystone_password => $user_password,
|
||||
sql_connection => $sql_connection,
|
||||
sql_idle_timeout => $sql_idle_timeout,
|
||||
enabled => $enabled,
|
||||
}
|
||||
|
||||
|
@@ -45,6 +45,7 @@ describe 'openstack::glance' do
|
||||
:keystone_user => 'glance',
|
||||
:keystone_password => 'glance_user_pass',
|
||||
:sql_connection => 'mysql://glance:glance_db_pass@127.0.0.1/glance',
|
||||
:sql_idle_timeout => '3600',
|
||||
:enabled => true
|
||||
)
|
||||
should contain_class('glance::backend::file')
|
||||
|
Reference in New Issue
Block a user