Home > front end >  Jenkins master server load test
Jenkins master server load test

Time:06-22

I am running a jenkins master server. About 30 agent nodes are registered in the jenkins master server, and there are a total of 1000 jobs. So I want to load test not only the node but also the master server. I would like to use a load testing tool like Jmeter or locust. How should I proceed with load testing?

CodePudding user response:

It depends on what do you need to test exactly.

Well-behaved load test should replicate real life usage of the system with 100% accuracy. If you want to check how many maximum users will be able to use Jenkins system without any issues using their browsers - you need to simulate real user using a real browser accessing Jenkins as it would be in reality.

  1. Each user should have its own credentials
  2. You need to simulate cookies, headers, cache, think times, etc.
  3. You need to define the workload, i.e. what different logical groups of users be doing, i.e. starting jobs, browsing, reading build results, etc.

With JMeter you can even record your test scenario(s) using HTTP(S) Test Script Recorder, with Locust you will need to write each and every request definition in Python

CodePudding user response:

You should maybe use Jmeter distributed testing: Official documentation

Here are some important considerations:

  1. Design of your test cases
  2. Test data management
  3. Define your load model & rate
  4. Define metrics you'd like to measure
  • Related