Questions tagged [locust]

Locust is a Python based load testing framework (http://locust.io/)

Locust is an open source load testing tool, where user behaviour is defined in pure Python code

862 questions
0
votes
1 answer

Python locust not working in AWS instances

I am trying to use locust in ec2 instance for load testing of my project. So, I have installed locust using this command: python -m pip install locustio I got this below response: Requirement already satisfied: locust in…
Agniswar Bakshi
  • 328
  • 5
  • 21
0
votes
1 answer

Test API, Dynamic Threads

I want test an API. My scenario: 1 hour. From 0 to 300, 000 users. 3 request by user. Users (threads) increments by second, like +5, +15, +20, +5, +30. threads are remove also, -2, -5, -15, -5. When the threads is alive, call again the 3…
CrlsPerez
  • 117
  • 1
  • 10
0
votes
1 answer

Locust load test: having an issue on user timings spawned by locust

I have been working on Locust lately, I wanted to know if we can manage the user timings for each user or a set of users maybe. for example, how can I replicate a user being on for a certain amount of time and then killing the user. I am not sure…
VKr
  • 3
  • 4
0
votes
1 answer

Locust benchmark test with post API with headers

When I try to trigger HTTP.get benchmark test, this code works perfectly for me: from locust import HttpLocust, TaskSet, task class ReferenceWsTest(TaskSet): @task(1) def index(self): response =…
Fan
  • 3
  • 1
  • 4
0
votes
1 answer

Cloudflare Loadtest 520 error

I'm using locust to loadtest my application through Cloudflare. When my test hits ~ 2k users I start getting 520 response errors. Is that Cloudflare DDoS protection or I need to tune Up my web/app server? I see no errors on nginx logs.
Heron Rossi
  • 681
  • 6
  • 18
0
votes
0 answers

locust bad argument to internal function

I am trying out a locust tutorial. I am having an error Objects/dictobject.c:1439: bad argument to internal function when I am trying to run locust -f locustfile.py --host=http://localhost:8080 . Server is running already. Error snippet: …
Dee
  • 401
  • 3
  • 9
  • 22
0
votes
0 answers

access original version of patched python module

I am load testing my system using the Locust framework. My project contains the Locust source files (not listed as dependency) because I had to make some modifications to the source code for some needed functionality. Unfortunately in locust/core…
0
votes
1 answer

Get Locust IO info for each generated user

The company I work on compromises to deliver 99% of their service responses in less than 1 second and 99.9% or their responses in less that 2 seconds. How can I make Locust report if this rule has been broken for any of the virtual users? My first…
0
votes
2 answers

HTTP request of Locust and Jmeter varies load on tomcat server

I tried 500 users with 100 Ramp up/Hatch rate per seconds. The load generated was monitored for tomcat using JConsole. For same set of request JMeter requests were using 100-80% CPU usage where as locust was around 60-30% CPU usage. I wanted to get…
lAH2iV
  • 1,159
  • 2
  • 12
  • 28
0
votes
1 answer

TypeError: must be str, not NoneType when running distributed locust with taurus

I am trying to create a configuration for distributed locust run, I have a .py script with defined tasks, and I have simple taurus configuration just to make it working: execution: executor: locust master: true slaves: 1 scenario: tns …
alohamaloha
  • 147
  • 1
  • 12
0
votes
0 answers

Locust load test for Socket.io implemented in a Restify API is causing significant slowdown

I'm running a Locust load test for 100 users at a hatch rate of 1 per second on a Socket.io server that I set up within a Restify Node.js API. It causes significant slowdown and the API becomes inaccessible. The API exposes one port and is deployed…
stevetronix
  • 1,231
  • 2
  • 16
  • 32
0
votes
1 answer

Gatling in Taurus with feeder

I am familiarizing myself with performance tools and I found Taurus which seems great. I'd like to run Gatling in Taurus which is possible with executors. However during the test a text file should be used which contains dynamic data for the tests.…
Viktor
  • 1,325
  • 2
  • 19
  • 41
0
votes
1 answer

Running Locust in distributed mode on Azure functions

I am building a small utility that packages Locust - performance testing tool (https://locust.io/) and deploys it on azure functions. Just a fun side project to get some hands on with the serverless craze. Here's the git repo:…
0
votes
2 answers

How to have Locust Master dynamically allocate users to slaves

I am trying to load test a HTTP URL(Dynamic) using Locust.io. I already have the python scripts that will make a GET call to the URL. The challenge i am facing is, the urls and the number of users are dynamic and are read from a CSV file. For…
0
votes
0 answers

python requests sending None instead of null

I've looked around but was unable to find any information that clearly answers this. I might be doing this wrong, but I'm sending a JSON in locustio using Python(3.6) (which uses Python requests library under the hood) that looks like: {'Owner':…
fobius
  • 285
  • 1
  • 3
  • 15