Locust starts throwing failures when users > 130 (OS X)
See original GitHub issueI got locust installed on Macbook Air The test is very basic, only one page is tested:
from locust import HttpLocust, TaskSet, task
class UserBehavior(TaskSet):
def on_start(self):
pass
@task
def profile(self):
self.client.get("/nonprofit/ifrc/articles/125585")
class WebsiteUser(HttpLocust):
task_set = UserBehavior
min_wait=5000
max_wait=15000
and the user load is very small obviously.
GET /nonprofit/ifrc/articles/125585 ConnectionError(MaxRetryError("HTTPConnectionPool(host='www.qammado.com', port=80): Max retries exceeded with url: /nonprofit/ifrc/articles/125585 (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x10ad788d0>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known',))",),)
Issue Analytics
- State:
- Created 7 years ago
- Comments:11 (3 by maintainers)
Top Results From Across the Web
How to fail setup in Locust? - python - Stack Overflow
I'd like for it to not even start the tests if setup fails. Is there a way to do that? Locust code class...
Read more >VLW - River Thames Conditions
Solid edge 2d mac, Oberkonsistorialrat. ... Mcfc score, Eaglebrook apartments locust grove ga, Trac connector, Contoh ijtihad dalam bidang ekonomi, ...
Read more >Untitled
Public radio app for mac! Burghley horse trials map, Tiltin windows northfield, Atcon home builders dublin ga, Residentevil5, Luxuria capa dvd, ...
Read more >Edible insects: future prospects for food and feed security
bees, wasps, ants, grasshoppers, locusts, crickets, cicadas, leaf and planthoppers, scale insects and true bugs, termites, dragonflies and flies.
Read more >負荷試験のために Locust を使ってみる - Neo's World
MacOS の場合は、先に Homebrew を使って python3 と、Locust が使う libev ... 参考:Locust starts throwing failures when users > 130 (OS X) ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
yes that’s the problem ! thanks. Just in case if someone stumble upon the same issue the command is:
ulimit -S -n 1024
there are other ways of setting it up as well closing itOops, my bad.
The proper way to check for number of file descriptors on MacOS currently is:
or you can use this to see all limits:
Mine was 256, changed it to 4096 and the issue was resolved:
Note: changes don’t persist and last current terminal session only.