[JIRA] (JENKINS-56833) Hundreds of REST calls to JOB_URL/runs/2/nodes/?limit=10000

7 views
Skip to first unread message

kuisathaverat@gmail.com (JIRA)

unread,
Apr 1, 2019, 8:47:02 AM4/1/19
to jenkinsc...@googlegroups.com
Ivan Fernandez Calvo created an issue
 
Jenkins / Bug JENKINS-56833
Hundreds of REST calls to JOB_URL/runs/2/nodes/?limit=10000
Issue Type: Bug Bug
Assignee: Unassigned
Components: blueocean-plugin
Created: 2019-04-01 12:46
Environment: Jenkins core 2.169
BO 1.14

at least 100 build agents
Priority: Major Major
Reporter: Ivan Fernandez Calvo

When you are using a high number of agents running the BO UI increase the number of request to the URL JOB_URL/runs/2/nodes/?limit=10000, this could become insane and makes that the UI blinks every time making it unusable even when the jobs are done.

Steps to replicate

  • You need a system that can provision at least 100 agents to see the behavior
  • Execute the following pipeline three times to try to provision more than 100 agents
    #!/usr/bin/env groovy
    
    pipeline {
      agent { label 'master' }
      stages {
        stage('test'){
          steps{
            script {
                def tasks = [:]
                for(def i = 0; i < 50; i++){
                    tasks["t-${i}"] = parallelTask()
                }
                parallel(tasks)
            }
          }
        }
      }
    }
    
    def parallelTask(){
        return {
            node('immutable'){
                timeout(time: 90, unit: 'SECONDS') {
                    echo "NOOP"
                    sleep 1
                }
            }
        }
    }
    
  • Open the BO UI on one of the builds
  • Open the Chrome inspector on the network tab, after a minute or so you will start seen tons of REST request like 'JOB_URL/runs/2/nodes/?limit=10000' and 'JENKINS_URL/blue/rest/organizations/jenkins/computers/' meanwhile every few seconds the UI will blink
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

gmogan@cloudbees.com (JIRA)

unread,
Apr 23, 2019, 5:41:02 PM4/23/19
to jenkinsc...@googlegroups.com
Gavin Mogan closed an issue as Fixed
 

Feel free to re-open after 1.15 is out

Change By: Gavin Mogan
Status: Open Closed
Resolution: Fixed

gmogan@cloudbees.com (JIRA)

unread,
Apr 23, 2019, 5:41:02 PM4/23/19
to jenkinsc...@googlegroups.com
Gavin Mogan commented on Bug JENKINS-56833
 
Re: Hundreds of REST calls to JOB_URL/runs/2/nodes/?limit=10000

Yea we found out that every job/stage start/top will refresh the computers stuff. JENKINS-56773 has a fix, just needs to be merged.

rjfenton@mtu.edu (JIRA)

unread,
Feb 24, 2020, 5:37:03 PM2/24/20
to jenkinsc...@googlegroups.com
Ryan Fenton-Garcia updated an issue
 
Change By: Ryan Fenton-Garcia
Attachment: BO-Network.png
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

rjfenton@mtu.edu (JIRA)

unread,
Feb 24, 2020, 5:38:03 PM2/24/20
to jenkinsc...@googlegroups.com

rjfenton@mtu.edu (JIRA)

unread,
Feb 24, 2020, 5:38:03 PM2/24/20
to jenkinsc...@googlegroups.com
Ryan Fenton-Garcia commented on Bug JENKINS-56833
 
Re: Hundreds of REST calls to JOB_URL/runs/2/nodes/?limit=10000

I think I'm still seeing this currently with the Blue Ocean Aggregator 1.22.0

rjfenton@mtu.edu (JIRA)

unread,
Feb 24, 2020, 5:40:03 PM2/24/20
to jenkinsc...@googlegroups.com
Ryan Fenton-Garcia edited a comment on Bug JENKINS-56833
I think I'm still seeing this currently with the Blue Ocean Aggregator 1.22.0

!BO-Network.png!

!BO Nodes and Stuff.png!

It also gives like... a pretty sexy view that's just locked to the bottom of the last step of the stage view. No matter where you scroll, the ?limit=10000 request gets made and the view is reset and snapped back to the bottom of the page. It's a super frustrating user experience. 

jenkins@gavinmogan.com (JIRA)

unread,
Feb 24, 2020, 6:26:02 PM2/24/20
to jenkinsc...@googlegroups.com

Ryan Fenton-Garcia Please open a new issue

This one was resolved by making executor info an optional plugin, so only those that need it (and I recommend you uninstall the executor plugin), and doesn't break things, can have it installed

if its hitting a different endpoint. Its a new bug, and the new owners will need to take a look at it

rjfenton@mtu.edu (JIRA)

unread,
Feb 25, 2020, 1:41:03 PM2/25/20
to jenkinsc...@googlegroups.com

That's actually extremely helpful to know! Do you know what kind of things the executor info plugin actually provides? I tried to look at the github page for the plugin, but I only see a link to a presentation that I'm not sure what is or isn't specifically related to the plugin.

Also, do you know what other plugins that potentially degrade blue ocean's performance are optional? 

Reply all
Reply to author
Forward
0 new messages