-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Locust starts throwing failures when users > 130 (OS X) #496
Comments
Hmm, that sounds like a DNS error. What happens if you use the IP-address as host (and set the |
DNS is Route 53 and I don't thing that's the issue as I could run 250-500 concurrent users using other tools. I cannot simply use IP address as a host because there's an nginx box in front of it and its serving 3 different sites.
|
i might have found something, there is another failure down the log... too many open files |
self.client.get("/nonprofit/ifrc/articles/125585", headers={"host":"my-custom-domain"}) |
Ah, that's probably it (http://docs.locust.io/en/latest/installation.html#increasing-maximum-number-of-open-files-limit). You should increase the maximum number of open files. I don't remember exactly how to do it in OSX but it should be easy to google it. |
yes that's the problem ! thanks. Just in case if someone stumble upon the same issue the command is: |
@heyman - in fact there were 2 issues and using ip address along with passing the header fixes the original issue reported
|
@rafalf typo on it! the correct code is |
I have the same errors on macOS, but when I type Is there any way to fix it? Same config - Route53, arounf 20% of requests failing with
|
Oops, 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. |
I got locust installed on Macbook Air
The test is very basic, only one page is tested:
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',))",),)
The text was updated successfully, but these errors were encountered: