The message executor should work with "eventlet"

Bug #1517843 reported by Jean-Emile DARTOIS on 2015-11-19
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
watcher
Low
David TARDIVEL

Bug Description

By default, the messaging executor is 'blocking' and it doesn't work with eventlet.
We need to fix that.

Solution
--------

In watcher/common/messaging/messaging_handler.py, modify the build_server() method of MessagingHandler as followed:

    def build_server(self, target):
        return om.get_rpc_server(self.__transport, target,
                                 self.__endpoints,
                                 executor='eventlet',
                                 serializer=self.__serializer)

Jean-Emile DARTOIS (jed56) wrote :

change status

Changed in watcher:
status: New → Confirmed
Changed in watcher:
assignee: nobody → David TARDIVEL (david-tardivel)
Changed in watcher:
milestone: none → mitaka-3
Changed in watcher:
importance: Undecided → Low
Changed in watcher:
milestone: mitaka-3 → mitaka-rc-1
milestone: mitaka-rc-1 → mitaka-rc-final
Changed in watcher:
milestone: mitaka-rc-final → newton-1
Changed in watcher:
milestone: newton-1 → newton-2
tags: added: low-hanging-fruit
description: updated
Changed in watcher:
status: Confirmed → Triaged
Changed in watcher:
milestone: newton-2 → newton-3
Changed in watcher:
status: Triaged → In Progress

Reviewed: https://review.openstack.org/338356
Committed: https://git.openstack.org/cgit/openstack/watcher/commit/?id=21d161007120ccebbc4b7cf3f4a9973aeb883e58
Submitter: Jenkins
Branch: master

commit 21d161007120ccebbc4b7cf3f4a9973aeb883e58
Author: David TARDIVEL <email address hidden>
Date: Wed Jul 6 17:38:54 2016 +0200

    Update executor to eventlet

    Default 'blocking' executor handles only one message at once.
    'eventlet' executor is recommended.

    Change-Id: Id738d0462fbb3c7fd6c78ee2f0dd0f1e79131ca7
    Closes-Bug: #1517843

Changed in watcher:
status: In Progress → Fix Released

This issue was fixed in the openstack/watcher 0.29.0 release.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers