<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 23, 2014 at 9:41 AM, Chris Friesen <span dir="ltr"><<a href="mailto:chris.friesen@windriver.com" target="_blank">chris.friesen@windriver.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>
Hi all,<br>
<br>
I was wondering if someone could point me to a doc describing the threading model for nova.<br>
<br>
I know that we use greenthreads to map multiple threads of execution onto a single native OS thread. And the python GIL results in limitations as well.<br>
<br>
According to the description at "<a href="https://bugs.launchpad.net/tripleo/+bug/1203906" target="_blank">https://bugs.launchpad.net/<u></u>tripleo/+bug/1203906</a>" for nova-api we potentially fork off multiple instances because it's database-heavy and we don't want to serialize on the database.<br>
<br>
If that's the case, why do we only run one instance of nova-conductor on a single OS thread?</blockquote><div><br></div><div>Nova-api and nova-conductor use the same logic to fork off multiple workers, and we run with multiple conductor workers in the gate. </div>
<div> </div><div><a href="http://logs.openstack.org/62/107562/9/check/check-tempest-dsvm-full/50adcf5/logs/screen-n-cond.txt.gz#_2014-07-23_04_31_52_292">http://logs.openstack.org/62/107562/9/check/check-tempest-dsvm-full/50adcf5/logs/screen-n-cond.txt.gz#_2014-07-23_04_31_52_292</a><br>
</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
And looking at nova-compute on a compute node with no instances running I see 22 OS threads. Where do these come from? Are these related to libvirt? Or are they forked the way that nova-api is?<br>
<br>
Any pointers would be appreciated.<br>
<br>
Chris<br>
<br>
______________________________<u></u>_________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.<u></u>org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/<u></u>cgi-bin/mailman/listinfo/<u></u>openstack-dev</a><br>
</blockquote></div><br></div></div>