Uploaded image for project: 'Marathon'
  1. Marathon
  2. MARATHON-6761

fixes MGI-1278 - Improves response time of /v2/tasks and /v2/apps/{appId}/t...

    Details

    • Type: Task
    • Status: Resolved
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      ...asks ans adds limit and offset parameters.

      The tests have been executed on a GCE 2 vCPU instance with 1,000 running tasks.

      /v2/tasks

      Before:

      time curl -H "Accept: application/json" localhost:8080/v2/tasks >> /dev/null
        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                       Dload  Upload   Total   Spent    Left  Speed
      100  234k    0  234k    0     0  34984      0 --:--:--  0:00:06 --:--:-- 62134
      
      real    0m6.880s
      user    0m0.004s
      sys 0m0.004s
      

      After:

      time curl -H "Accept: application/json" localhost:8080/v2/tasks >> /dev/null
        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                       Dload  Upload   Total   Spent    Left  Speed
      100  234k    0  234k    0     0   847k      0 --:--:-- --:--:-- --:--:--  847k
      
      real    0m0.283s
      user    0m0.020s
      sys 0m0.152s
      

      {{/v2/apps/

      {appId}

      /tasks}}

      Before:

      time curl -H "Accept: application/json" localhost:8080/v2/apps/foo/tasks >> /dev/null
        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                       Dload  Upload   Total   Spent    Left  Speed
      100  212k    0  212k    0     0  23290      0 --:--:--  0:00:09 --:--:-- 65303
      
      real    0m9.342s
      user    0m0.000s
      sys 0m0.008s
      

      After:

      time curl -H "Accept: application/json" localhost:8080/v2/apps/foo/tasks >> /dev/null
        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                       Dload  Upload   Total   Spent    Left  Speed
      100  212k    0  212k    0     0  1388k      0 --:--:-- --:--:-- --:--:-- 1397k
      
      real    0m0.159s
      user    0m0.012s
      sys 0m0.048s
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              GitHub_drexin Dario Rexin (Inactive)
              Team:
              Orchestration Team
              Watchers:
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: