Add customization for wsgi process display name

when ceilometer api is deployed in httpd, however
 the process name is like '/usr/sbin/httpd -DFOREGROUND',
it is ambiguous and make monitoring more difficult.
the aodh, gnocchi module are also like that.
so we should set an appropriate name for wsgi process.

Change-Id: I5e8c9be062a88e9ed6442e6cbce6573fba385030
Related-Bug: #1626550
This commit is contained in:
Xing Zhou
2016-12-15 15:18:42 +08:00
parent d91a4c7b36
commit ed9c5cf626
2 changed files with 48 additions and 40 deletions

View File

@@ -99,6 +99,10 @@
# (optional) Name of the WSGI daemon process.
# Defaults to $name
#
# [*wsgi_process_display_name*]
# (optional) Name of the WSGI process display-name.
# Defaults to $name
#
# [*wsgi_process_group*]
# (optional) Name of the WSGI process group.
# Defaults to $name
@@ -162,6 +166,7 @@ define openstacklib::wsgi::apache (
$user = undef,
$workers = 1,
$wsgi_daemon_process = $name,
$wsgi_process_display_name = $name,
$wsgi_process_group = $name,
$wsgi_script_dir = undef,
$wsgi_script_file = undef,
@@ -206,6 +211,7 @@ define openstacklib::wsgi::apache (
group => $group,
processes => $workers,
threads => $threads,
display-name => $wsgi_process_display_name,
}
$wsgi_script_aliases = hash([$path_real,"${wsgi_script_dir}/${wsgi_script_file}"])

View File

@@ -80,6 +80,7 @@ describe 'openstacklib::wsgi::apache' do
'group' => 'keystone',
'processes' => 1,
'threads' => global_facts[:os_workers],
'display-name' => 'keystone_wsgi',
},
'wsgi_application_group' => '%{GLOBAL}',
'require' => 'File[keystone_wsgi]',
@@ -119,6 +120,7 @@ describe 'openstacklib::wsgi::apache' do
'group' => 'keystone',
'processes' => '37',
'threads' => '8',
'display-name' => 'keystone_wsgi',
},
'wsgi_process_group' => 'keystone_wsgi',
'wsgi_script_aliases' => { '/' => "/var/www/cgi-bin/keystone/main" },