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

Improve JSON v1 operator API performance.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5.0
    • Component/s: HTTP API
    • Labels:

      Description

      According to some user reports, a simple comparison of the v1 operator API (using the "GET_TASKS" call) and the v0 /tasks HTTP endpoint shows that the v1 API suffers from an inefficient implementation:

      Curl Timing
      Operator HTTP API (GET_TASKS): 0.02s user 0.08s system 1% cpu 9.883 total
      Old /tasks API: /tasks: 0.00s user 0.00s system 1% cpu 0.222 total
      

      Looking over the implementation, it suffers from the same issues we originally had with the JSON endpoints:

      • Excessive copying up the "tree" of state building calls.
      • Building up the state object as opposed to directly serializing it.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mzhu Meng Zhu
                Reporter:
                bmahler Benjamin Mahler
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: