[openstack-dev] design question : green thread model

murali reddy muralimmreddy at gmail.com
Wed Jan 28 17:18:16 UTC 2015


Thanks JE.

On hosts with multi-core processors, it does not seem optimal to run a
single service instance with just green thread. I understand that on
controller node, we can run one or more nova services but still it does not
seem to utilize multi-core processors.

Is it not a nova scaling concern?

On Wed, Jan 28, 2015 at 10:38 PM, Johannes Erdfelt <johannes at erdfelt.com>
wrote:

> On Wed, Jan 28, 2015, murali reddy <muralimmreddy at gmail.com> wrote:
> > I am trying to understand how a nova component can be run parallely on a
> > host. From the developer reference documentation it seems to indicate
> that
> > all the openstack services use green thread model of threading. Is it the
> > only model of parallelism for all the components or multiple processes
> can
> > be used for a nova service on a host. Does nova.service which seems to do
> > os.fork is being used to fork multiple processes for a nova service?
>
> Multiple processes are used in some places, for instance, nova-api can
> fork multiple processes. Each process would also use greenthreads as
> well.
>
> However, most services don't use multiple processes (at least in Nova).
>
> JE
>
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150128/22922756/attachment.html>


More information about the OpenStack-dev mailing list