Re: [openstack-dev] [oslo][oslo-service] Multi main processes are started by using oslo_service

2017-06-27 Thread gordon chung
On 27/06/17 05:56 AM, zhi wrote: > Everything goes well when the "api_workers " equals 0 or 1. But two main > processes were started when the " api_workers " equals 2. The log shows > below: > > 2017-06-27 17:42:18.864 1958058 INFO abc.common.wsgi [-] (1958058) wsgi > starting up on http://0.0.0.

[openstack-dev] [oslo][oslo-service] Multi main processes are started by using oslo_service

2017-06-27 Thread zhi
Hi, all. Here, I want to start a main process and multi subprocess by using oslo_service. So I launch a service like this: from oslo_service import service as common_service def serve_wsgi(cls): try: service = cls.create() except Exception: wit