Browse Source

Enable worker-multiplier for wsgi

So that users can have a control over the number of processes to be
spawend and database connections to be consumed.

Change-Id: I7ffdafb807a604d89381a2fecaba8300f00e9691
Closes-Bug: #1677543
changes/78/744578/2
Nobuto Murata 11 months ago
parent
commit
3ba2652b10
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/templates/rocky/barbican-api.conf

+ 2
- 2
src/templates/rocky/barbican-api.conf View File

@ -8,7 +8,7 @@ Listen {{ options.service_listen_info.barbican_worker.admin_port }}
<VirtualHost *:{{ options.service_listen_info.barbican_worker.public_port }}>
WSGIScriptAlias / /usr/share/barbican/app.wsgi
WSGIDaemonProcess barbican-api user=barbican group=barbican processes=3 threads=10
WSGIDaemonProcess barbican-api user=barbican group=barbican processes={{ options.wsgi_worker_context.processes }} threads=1 display-name=%{GROUP}
WSGIProcessGroup barbican-api
WSGIApplicationGroup %{GLOBAL}
ErrorLog /var/log/barbican/barbican-api.log
@ -17,7 +17,7 @@ Listen {{ options.service_listen_info.barbican_worker.admin_port }}
<VirtualHost *:{{ options.service_listen_info.barbican_worker.admin_port }}>
WSGIScriptAlias / /usr/share/barbican/app.wsgi
WSGIDaemonProcess barbican-api-admin user=barbican group=barbican processes=3 threads=10
WSGIDaemonProcess barbican-api-admin user=barbican group=barbican processes={{ options.wsgi_worker_context.processes }} threads=1 display-name=%{GROUP}
WSGIProcessGroup barbican-api-admin
WSGIApplicationGroup %{GLOBAL}
ErrorLog /var/log/barbican/barbican-api.log


Loading…
Cancel
Save