[openstack-dev] [oslo.messaging][zmq] Redundant zmq.Context creation
Li Ma
skywalker.nick at gmail.com
Wed Feb 4 14:29:08 UTC 2015
Any news here? Per-socket solution is a conservative solution that
makes zeromq driver work for multiple-workers. Neutron-server has
api-worker and rpc-worker. I'm not sure per-driver is applicable. I
will try to figure it out soon.
On Fri, Jan 23, 2015 at 7:53 PM, Oleksii Zamiatin
<ozamiatin at mirantis.com> wrote:
> 23.01.15, 13:22, Elena Ezhova пишет:
>
>
>
> On Fri, Jan 23, 2015 at 1:55 PM, Ilya Pekelny <ipekelny at mirantis.com> wrote:
>>
>>
>>
>> On Fri, Jan 23, 2015 at 12:46 PM, ozamiatin <ozamiatin at mirantis.com>
>> wrote:
>>>
>>> IMHO It should be created once per Reactor/Client or even per driver
>>> instance.
>>
>>
>> Per driver, sounds good.
>
> Wouldn't this create regression for Neutron? The original change was
> supposed to fix the bug [1], where each api-worker process got the same copy
> of the Context due to its singletony nature.
>
> It wouldn't be a singleton now, beacuse each process should have it's own
> driver instance. We of course will check this case. Each api-worker should
> take their own context. The purpose now is to have not more than one context
> per worker.
>>
>>
>>>
>>>
>>> By the way (I didn't check it yet with current implementation of the
>>> driver) such approach should break the IPC, because such kind of sockets
>>> should be produced from the same context.
>>
>>
>> Please, check it. Looks like a potential bug.
>>
>> __________________________________________________________________________
>> 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
>>
>
> [1] https://bugs.launchpad.net/neutron/+bug/1364814
>
>
> __________________________________________________________________________
> 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
>
>
>
> __________________________________________________________________________
> 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
>
--
Li Ma (Nick)
Email: skywalker.nick at gmail.com
More information about the OpenStack-dev
mailing list