Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-16338

Move polling from Nodejs to client

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.1.2
    • Component/s: UI
    • Labels:
      None
    • Rank:
      1|i00u3j:

      Description

      We poll for resources in two different ways,

      1. From the client we poll using an interval
      2. From Nodejs where we start to poll for a resource when we receive poll-start message and stop when we receive poll-stop message.

      The second approach is problematic when CDAP sits behind proxies that are not 100% guaranteed to send a poll-stop or a socket close message (network drop). This is problematic as during these cases we start to leak polling and this eventually creates a lot of requests to appfabric over a period of time.

      As fix-forward solution we need to move all the polling to client, that way the app-fabric is isolated when clients drop or go out of network. The requests scale based on client usage and there are no leaks.

        Attachments

          Activity

            People

            • Assignee:
              ajai Ajai Narayan
              Reporter:
              ajai Ajai Narayan
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: