Uploaded image for project: 'VOLTHA'
  1. VOLTHA
  2. VOL-338

OfAgent should not block during the subscribe streaming GRPC call

    XMLWordPrintable

    Details

      Description

      As part of the effort to support ofagent in a swarm deployment, a streaming GRPC call was implemented to monitor connectivity between OFAgent and Voltha.

      The GRPC call is currently implemented as a bidirectional streaming call, meaning that a generator on the client side continuously sends requests to the server. The server takes these requests and continuously sends responses.

      To avoid CPU intensive loops, delays have to be integrated. Unfortunately, the asynchronous sleep that is used throughout VOLTHA cannot be used within a generator. Therefore, a plain time.sleep had to be used. As a result, the ofagent will block for a period of time within the generator at every pass of the loop.

      We need to find a better approach to avoid any blocking.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            sbarbari Stephane Barbarie
            Reporter:
            sbarbari Stephane Barbarie
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes