Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-9577

Add websocket support to libprocess.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Accepted
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: libprocess
    • Labels:
      None

      Description

      Websockets can provide an efficiency improvement over http in bi-directional streaming use cases. It's also helpful in cases where the client is incapable of using streaming requests. For example, browsers seem to not support streaming requests.

      One use case is building a "terminal" into the container from the browser. In this case, the browser has to resort to de-bouncing the keystrokes and sending them as separate ATTACH_CONTAINER_INPUT requests. Which leads to increased latency (have to wait for response of previous request before making a new request), as well as increased request load for mesos and proxies.

      The integration could be done against the existing libprocess http server through a "sans-IO" library like: https://github.com/tatsuhiro-t/wslay

      Alternatively, adoption of a library like h2o would provide this (see MESOS-8633).

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bmahler Benjamin Mahler
            • Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: