charm-barbican doesn't use worker-multiplier to set up wsgi processes

Bug #1889902 reported by Nobuto Murata
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Barbican Charm
New
Undecided
Unassigned

Bug Description

At this moment, the charm has a hard coded value as processes=3 threads=10 unlike other charms. Would be nice to configure it dynamically based on the config specified as worker-multiplier.

charm-barbican (master=)$ git grep processes= src/templates/rocky/barbican-api.conf
src/templates/rocky/barbican-api.conf: WSGIDaemonProcess barbican-api user=barbican group=barbican processes=3 threads=10
src/templates/rocky/barbican-api.conf: WSGIDaemonProcess barbican-api-admin user=barbican group=barbican processes=3 threads=10

Revision history for this message
Nobuto Murata (nobuto) wrote :

Also, barbican-worker has only one process, it seems it's not following worker-multiplier either. But I'm not sure if it's a good idea to run multiple processes in parallel.

pgrep -af barbican-worker
289 /usr/bin/python3 /usr/bin/barbican-worker --config-file=/etc/barbican/barbican.conf --log-file=/var/log/barbican/barbican-worker.log

Revision history for this message
Nobuto Murata (nobuto) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.