Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8093385
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T20:29:35+00:00 2026-06-05T20:29:35+00:00

We use Jenkins for our CI build system. We also use ‘concurrent builds’ so

  • 0

We use Jenkins for our CI build system. We also use ‘concurrent builds’ so that Jenkins will build each change independently. This means we often have 5 or 6 builds of the same job running simultaneously. To accommodate this, we have 4 slaves each with 12 executors.

The problem is that Jenkins doesn’t really ‘load balance’ among its slaves. It tries to build a job on the same slave that it previously built on (presumably to reduce the time syncing from source control). This is a problem because Jenkins will build all 6 instances of our build on the same slave (or more likely between 2 slaves). One build machine gets bogged down and runs very slowly while the rest of them sit idle.

How do I configure the load balancing behavior of Jenkins, and how it controls its slaves?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T20:29:36+00:00Added an answer on June 5, 2026 at 8:29 pm

    If you do not find a plugin that does it automatically, here’s an idea of what you can do:

    • Install Node Label Parameter plugin

    • Add SLAVE parameter to your jobs

    • Restrict jobs to run on ${SLAVE}

    • Add a trigger job that will do the following:

      • Analyze load distribution via a System Groovy Script and decide on which node to start next build.
      • Dispatch the build on that node with Parameterized Trigger
        plugin

        by assigning appropriate value to SLAVE parameter.

    In order to analyze load distribution you need to install Groovy plugin and familiarize yourself with Jenkins Main Module API. Here are some useful initial pointers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For each job in our jenkins server I also want to build the javadoc.
As part of our Continuous Integration builds, I'd like the build to fail if
I have started to use jenkins to build my project. I build my project
I currently Jenkins to as my continuous integration system and I use Gradle to
Our Jenkins CI build server is set up on a Mac Mini running OSX
We currently uses Jenkins for all our (Java) build/deployment from a Linux box. Now
So we have continuous integration in Jenkins of our maven builds. We have a
I have a fairly complicated build workflow for one of my Jenkins builds. The
I have a Projekt that's hosted on Subversion. And i use the Jenkins (old
We are using Jenkins to automate several of our build and test processes. For

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.