Change number of threads of keystone to 1

The number of keystone threads in apache
was changed to 1 to solve keystone performance
degradation issue.

Closes-Bug: #1628534

(cherry picked from commit 22652dc0a7)

Change-Id: Iba8f2c7a6f7da10caae2c451ea420f88d6c28a46
This commit is contained in:
Maksym Yatsenko 2016-10-03 13:25:55 +03:00
parent 76c20e9163
commit c6103ad392
2 changed files with 7 additions and 7 deletions

View File

@ -151,7 +151,7 @@ class openstack_tasks::keystone::keystone {
class { '::keystone::wsgi::apache':
priority => '05',
threads => 3,
threads => 1,
workers => min($::processorcount, 6),
ssl => $ssl,
vhost_custom_fragment => $vhost_limit_request_field_size,

View File

@ -215,26 +215,26 @@ describe manifest do
should contain_keystone_config('eventlet_server/admin_workers').with(:value => service_workers)
end
it 'should declare keystone::wsgi::apache class with 4 processess and 3 threads on 4 CPU system' do
it 'should declare keystone::wsgi::apache class with 4 processess and 1 threads on 4 CPU system' do
should contain_class('keystone::wsgi::apache').with(
'threads' => '3',
'threads' => '1',
'workers' => '4',
'vhost_custom_fragment' => 'LimitRequestFieldSize 81900'
)
end
it 'should declare keystone::wsgi::apache class with 6 processes and 3 threads on 48 CPU system' do
it 'should declare keystone::wsgi::apache class with 6 processes and 1 threads on 48 CPU system' do
facts[:processorcount] = 48
should contain_class('keystone::wsgi::apache').with(
'threads' => '3',
'threads' => '1',
'workers' => '6'
)
end
it 'should declare keystone::wsgi::apache class with 1 process and 3 threads on 1 CPU system' do
it 'should declare keystone::wsgi::apache class with 1 process and 1 threads on 1 CPU system' do
facts[:processorcount] = 1
should contain_class('keystone::wsgi::apache').with(
'threads' => '3',
'threads' => '1',
'workers' => '1'
)
end