Giter VIP home page Giter VIP logo

Comments (6)

myzhan avatar myzhan commented on August 23, 2024

Any PR is welcome. In my daily work, I did similar things with Jenkins and Docker, and it's doable.

from boomer.

 avatar commented on August 23, 2024

I was thinking of using the Locust --no-web switch and awk to parse console output and netcat to send the metric to the statsd_exporter. Pretty low-fi , I know - but I should be able to graph metrics in Grafana.

from boomer.

myzhan avatar myzhan commented on August 23, 2024

Another option with the WebUI.

  1. Start 100 users with a hatch rate of 10.
curl --data "locust_count=100&hatch_rate=10" "http://locust:8089/swarm"
  1. Collect json stats every 2 seconds, like the ajax request.
for ((i=1; i<= 300; i++));
do
  curl -s "http://localhost:8089/stats/requests" >> locust-stats.json;
  echo "" >> locust-stats.json;
  sleep 2;
done
  1. Stop the test.
curl -s "http://localhost:8089/stop"

You will get locust-stats.json, easier to parse.

from boomer.

 avatar commented on August 23, 2024

Thanks for the suggestion but I am thinking the boomer rps flags and the locust user/ swarm rate could be confusing for the load tester, and I am leaning towards no interaction with the Locust UI. Although I could be heading in the wrong direction.

from boomer.

 avatar commented on August 23, 2024

Yeah, Looks like a real hassle parsing stout or using tee. Getting broken connection and peer resets when using the Locust UI.

from boomer.

 avatar commented on August 23, 2024

@myzhan Your technique works. Thanks.

from boomer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.