I am trying to find a way to throttle the thruput on the request of our Network folks. They want me to not exceed 5.5Mb/sec. Is there a way to do this within Jenkins. Looking at the config files under

Manage Jenkins > Nodes > "Node name"

I couldn't find anything that would do this.

Also, googling for a solution only resulted in simultaneous build info.


  • Not asked, what is source source control and what are you building?
    – Ian W
    Commented Apr 24, 2021 at 20:45

2 Answers 2


hmmm, tuff one. dont think it's possible do do this directly

counter question, why do you wish to limit traffic ? If you could do this, say through a network config of some kind, it owuld negatively impact build time.

From experience things that have an impact on traffic between agent and sever :

  • Artifacts: if you are storing artifacts within your builds they will be stored on the server. So at these points in your build process you will upload them from the agent to the server and depending on artifact size it will generate traffic.
  • Sync: Depending on what source control you use (if any) and how you use it it's possible that the sync to occur on the master and then transfered over to the agent. You can probably change this so the sync only occur on the agent which will pretty much eliminate this part of the traffic between them.
  • Logs: all logs generated on the your jobs will be transfered back to the server. Though to max out a connection here you'dhave to generate a whole lot of it !

It's posible some plugins can generate their own traffic. Without knowing more on your tasks it's difficult to go further.

As to the actual question my first reflex here would be to look for ways to achieve this through a firewall or some other network system to throttle traffic. Some will allow to target a specific application in addition to source/target IPs in their rules.

  • Yes, we did this thru on the network. I had to do this because our network folks said we weren't being fair to others using the network. :(
    – Eric C
    Commented Apr 21, 2021 at 13:26

It's a strange question coming from network as they control it but then again... network folks ;).
I'm assuming you have a Jenkins master node and a separate Jenkins slave node. For a quick blunt fix you could take a look at https://github.com/magnific0/wondershaper and run it on the remote slave node. It will slow things down considerably when there's stuff to be pushed/pulled over the network but at least you are complying to their request. Another option is true "Traffic Shaping" but it's a hassle to set up whereas wondershaper is a quick but less elegant fix. Perhaps you could enable wondershaper at the start of the Jenkins job and disable it afterwards or you could add another nic and create dedicated routes between master/slave so that network card is used for jenkins communication and run wondershaper on that nic alone leaving normal/default network traffic at max speed.

Last option is to stake your ground and respond to the network people "You guys run the network, can't you configure appropriate Traffic Shaping on the router/firewall?"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.