Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-38087

initial search call extremely slow

    XMLWordPrintable

    Details

    • Similar Issues:
    • Epic Link:

      Description

      After a restart of Jenkins, a refresh of the blueocean UI causes a call to the following endpoint:

      <Jenkins URL>/blue/rest/search/?q=type:pipeline;excludedFromFlattening:jenkins.branch.MultiBranchProject,hudson.matrix.MatrixProject&filter=no-folders&start=0&limit=26
      

      The very first time this runs it is SUPER slow - irrespective of how long the instance has been up and running.

      I have a 60s timeout on my http frontend - and it hits this and the frontend returns a 504.

      The second time I reload the UI, it takes ~12s and return 11kB of information (the instance is relatively small).

        Attachments

          Issue Links

            Activity

            bwalding Ben Walding created issue -
            bwalding Ben Walding made changes -
            Field Original Value New Value
            Description After a restart of Jenkins, a refresh of the blueocean UI causes a call to the following endpoint:

            https://&lt;jenkins&gt;/blue/rest/search/?q=type:pipeline;excludedFromFlattening:jenkins.branch.MultiBranchProject,hudson.matrix.MatrixProject&filter=no-folders&start=0&limit=26

            The very first time this runs it is SUPER slow - irrespective of how long the instance has been up and running.

            I have a 60s timeout on my http frontend - and it hits this and the frontend returns a 504.

            The second time I reload the UI, it takes ~12s and return 11kB of information (the instance is relatively small).
            After a restart of Jenkins, a refresh of the blueocean UI causes a call to the following endpoint:

            {noformat}
            <Jenkins URL>/blue/rest/search/?q=type:pipeline;excludedFromFlattening:jenkins.branch.MultiBranchProject,hudson.matrix.MatrixProject&filter=no-folders&start=0&limit=26
            {noformat}

            The very first time this runs it is SUPER slow - irrespective of how long the instance has been up and running.

            I have a 60s timeout on my http frontend - and it hits this and the frontend returns a 504.

            The second time I reload the UI, it takes ~12s and return 11kB of information (the instance is relatively small).
            jamesdumay James Dumay made changes -
            Assignee Vivek Pandey [ vivek ]
            jamesdumay James Dumay made changes -
            Epic Link JENKINS-37957 [ 174099 ]
            vivek Vivek Pandey made changes -
            Link This issue is blocked by JENKINS-38079 [ JENKINS-38079 ]
            vivek Vivek Pandey made changes -
            Link This issue is blocked by JENKINS-38079 [ JENKINS-38079 ]
            vivek Vivek Pandey made changes -
            Link This issue blocks JENKINS-38079 [ JENKINS-38079 ]
            jamesdumay James Dumay made changes -
            Sprint 1.0-b05/b-06 [ 111 ]
            jamesdumay James Dumay made changes -
            Rank Ranked lower
            jamesdumay James Dumay made changes -
            Assignee Vivek Pandey [ vivek ]
            Hide
            jamesdumay James Dumay added a comment -

            Sounds like a cold cache problem that is innate to Jenkins. Moving this out of the sprint to the bottom of the backlog.

            Show
            jamesdumay James Dumay added a comment - Sounds like a cold cache problem that is innate to Jenkins. Moving this out of the sprint to the bottom of the backlog.
            jamesdumay James Dumay made changes -
            Sprint 1.0-b05/b-06 [ 111 ]
            jamesdumay James Dumay made changes -
            Rank Ranked higher
            michaelneale Michael Neale made changes -
            Priority Trivial [ 5 ] Major [ 3 ]
            Hide
            michaelneale Michael Neale added a comment -

            James Dumay Part of it is warming up, but 12s is still too slow when warmed up (due to reasons mentioned on originating ticket) so I think I will open another ticket to track the persistent slowness and lack of back end pagination

            Show
            michaelneale Michael Neale added a comment - James Dumay Part of it is warming up, but 12s is still too slow when warmed up (due to reasons mentioned on originating ticket) so I think I will open another ticket to track the persistent slowness and lack of back end pagination
            michaelneale Michael Neale made changes -
            Link This issue relates to JENKINS-38335 [ JENKINS-38335 ]
            Hide
            michaelneale Michael Neale added a comment -

            Ben Walding vivek has a fix in progress on the linked ticket - once that is in (he is verifying with dogfood workspace locally) - might get you to try again, and re-open this if it is still a problem.

            Basically pagination was still causing full calculations, thrashing disk. This would make things worse after warm up naturally so hopefully it will address both the unacceptably slow load for page of data, and the warm up.

            Show
            michaelneale Michael Neale added a comment - Ben Walding vivek has a fix in progress on the linked ticket - once that is in (he is verifying with dogfood workspace locally) - might get you to try again, and re-open this if it is still a problem. Basically pagination was still causing full calculations, thrashing disk. This would make things worse after warm up naturally so hopefully it will address both the unacceptably slow load for page of data, and the warm up.
            michaelneale Michael Neale made changes -
            Link This issue duplicates JENKINS-38335 [ JENKINS-38335 ]
            michaelneale Michael Neale made changes -
            Resolution Duplicate [ 3 ]
            Status Open [ 1 ] Closed [ 6 ]

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              bwalding Ben Walding
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: