[keystone][openstack-helm][kolla] Is it safe to run the Keystone wsgi application in multiple threads?
Hi Keystone team, I am writing to ask someone from the Keystone team to give their opinion regarding whether it is safe to run the Keystone wsgi app in multiple threads in the same process. I see [1] Kolla team allows users to configure the number of processes but not the number of threads. We in Openstack-Helm have a similar review request [2] and we had a small discussion about this. I would really appreciate it if someone from the Keystone team can give their opinion on [2]. Thanks. [1] https://opendev.org/openstack/kolla-ansible/src/branch/master/ansible/roles/... [2] https://review.opendev.org/c/openstack/openstack-helm/+/971751 -- Best regards, Kozhukalov Vladimir
Hey, While nothing comes to my mind why this should be avoided, my tests done years ago were showing that this simply doesn't bring any benefit (loadtest wasn't showing any effect). And due to that I wasn't investigated deeper whether any locks occur. It could have changed in newer python versions though, so feel free to try it out. Artem ---- typed from mobile, auto-correct typos assumed ---- On Fri, 30 Jan 2026, 20:26 Vladimir Kozhukalov, <kozhukalov@gmail.com> wrote:
Hi Keystone team,
I am writing to ask someone from the Keystone team to give their opinion regarding whether it is safe to run the Keystone wsgi app in multiple threads in the same process.
I see [1] Kolla team allows users to configure the number of processes but not the number of threads.
We in Openstack-Helm have a similar review request [2] and we had a small discussion about this. I would really appreciate it if someone from the Keystone team can give their opinion on [2].
Thanks.
[1] https://opendev.org/openstack/kolla-ansible/src/branch/master/ansible/roles/... [2] https://review.opendev.org/c/openstack/openstack-helm/+/971751
-- Best regards, Kozhukalov Vladimir
participants (2)
-
Artem Goncharov
-
Vladimir Kozhukalov