tune undercloud service workers similar to overcloud

Bug #1728039 reported by Joe Talerico
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Luke Short

Bug Description

Keystone on the Undercloud is not properly tuned

WSGIDaemonProcess keystone_admin display-name=keystone-admin group=keystone processes=1 threads=12 user=keystone

On the Overcloud it is

WSGIDaemonProcess keystone_admin display-name=keystone-admin group=keystone processes=12 threads=1 user=keystone

There might be other services to interrogate. I haven't totally diagnosed, but this could be why scaling out my cloud with heat convergence enabled failed.

Joe Talerico (jtaleric)
Changed in tripleo:
assignee: nobody → Joe Talerico (jtaleric)
Changed in tripleo:
milestone: none → queens-2
Changed in tripleo:
milestone: queens-2 → queens-3
Changed in tripleo:
milestone: queens-3 → queens-rc1
Changed in tripleo:
milestone: queens-rc1 → rocky-1
Changed in tripleo:
milestone: rocky-1 → rocky-2
Changed in tripleo:
milestone: rocky-2 → rocky-3
Changed in tripleo:
milestone: rocky-3 → rocky-rc1
Changed in tripleo:
milestone: rocky-rc1 → stein-1
Changed in tripleo:
milestone: stein-1 → stein-2
Changed in tripleo:
milestone: stein-2 → stein-3
Changed in tripleo:
milestone: stein-3 → stein-rc1
Changed in tripleo:
milestone: stein-rc1 → train-1
Changed in tripleo:
milestone: train-1 → train-2
Changed in tripleo:
milestone: train-2 → train-3
Changed in tripleo:
milestone: train-3 → ussuri-1
Revision history for this message
Luke Short (ekultails) wrote :

Which way is preferred? Setting the processes or threads to the $cpu_count?

Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

@Luke, IIRC the summary from the freezing heartbeats under WSGI topic, it should be always threads=1, like processes=12 threads=1

tags: added: rocky-backport-potential stein-backport-potential
Revision history for this message
Herve Beraud (herveberaud) wrote :
Luke Short (ekultails)
Changed in tripleo:
assignee: Joe Talerico (jtaleric) → Luke Short (ekultails)
Revision history for this message
Luke Short (ekultails) wrote :

Somewhat related, here's the original (and resolved) report of this problem affecting the Overcloud's performance: https://bugzilla.redhat.com/show_bug.cgi?id=1347305

This is no longer an issue for the Undercloud on newer versions of OpenStack but it may still affect Queens.

Revision history for this message
Luke Short (ekultails) wrote :

I can confirm that this is fixed for all services in the latest version of Queens.

[stack@undercloud ~]$ sudo grep -ir thread /etc/httpd/conf*
/etc/httpd/conf.d/10-keystone_wsgi_main.conf: WSGIDaemonProcess keystone_main display-name=keystone-main group=keystone processes=2 threads=1 user=keystone
...

Changed in tripleo:
status: Triaged → Fix Released
Revision history for this message
Radoslaw Smigielski (radoslaw-smigielski) wrote :

I know this is an old bug and I know that the AMQP heartbeat could be lost when we have more than one thread what was reported and investigated here https://bugzilla.redhat.com/show_bug.cgi?id=1711794

But for services like:
- Keystone which doesn't really use AMQP
- Or all *_api type services
wouldn't it make sense to configure threads>1 ?

By doing it we could significantly reduce load on controllers or UC.

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.