update the mysql/galera and haproxy timeouts
Update the database timeouts to higher values to prevent the services from disconnecting too frequently: - set the Galera HAProxy timeout to 90 minutes (with parameter) - set the database_idle_timeout to 5000 seconds (83 minutes) to allow the services to drop the connection before HAProxy does - add `on-marked-down shutdown-sessions` to Galera HAProxy balancer members to allow shutting down sessions when a Galera host goes down. Change-Id: I62c70c906a009df43acaf172eb27729d5d257b0f
This commit is contained in:
@@ -51,18 +51,19 @@ describe 'cloud::compute::scheduler' do
|
||||
|
||||
it 'configure nova common' do
|
||||
is_expected.to contain_class('nova').with(
|
||||
:verbose => true,
|
||||
:debug => true,
|
||||
:use_syslog => true,
|
||||
:log_facility => 'LOG_LOCAL0',
|
||||
:rabbit_userid => 'nova',
|
||||
:rabbit_hosts => ['10.0.0.1'],
|
||||
:rabbit_password => 'secrete',
|
||||
:rabbit_virtual_host => '/',
|
||||
:memcached_servers => ['10.0.0.1','10.0.0.2'],
|
||||
:database_connection => 'mysql://nova:secrete@10.0.0.1/nova?charset=utf8',
|
||||
:glance_api_servers => 'http://10.0.0.1:9292',
|
||||
:log_dir => false
|
||||
:verbose => true,
|
||||
:debug => true,
|
||||
:use_syslog => true,
|
||||
:log_facility => 'LOG_LOCAL0',
|
||||
:rabbit_userid => 'nova',
|
||||
:rabbit_hosts => ['10.0.0.1'],
|
||||
:rabbit_password => 'secrete',
|
||||
:rabbit_virtual_host => '/',
|
||||
:memcached_servers => ['10.0.0.1','10.0.0.2'],
|
||||
:database_connection => 'mysql://nova:secrete@10.0.0.1/nova?charset=utf8',
|
||||
:database_idle_timeout => '5000',
|
||||
:glance_api_servers => 'http://10.0.0.1:9292',
|
||||
:log_dir => false
|
||||
)
|
||||
is_expected.to contain_nova_config('DEFAULT/resume_guests_state_on_host_boot').with('value' => true)
|
||||
is_expected.to contain_nova_config('DEFAULT/default_availability_zone').with('value' => 'MyZone')
|
||||
|
||||
Reference in New Issue
Block a user