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

gordon chung gord at live.ca
Tue Jun 27 13:16:27 UTC 2017



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.0:9914/
>
> 2017-06-27 17:42:18.864 1958059 INFO abc.common.wsgi [-] (1958059) wsgi
> starting up on http://0.0.0.0:9914/

because you asked for 2 workers? workers in oslo.service are 
processes[1]. i have no idea how 0 workers doesn't throw an error.

[1] 
https://github.com/openstack/oslo.service/blob/master/oslo_service/service.py#L523-L526

-- 
gord


More information about the OpenStack-dev mailing list