Wrong statistic of total request count
See original GitHub issueDescription of issue / feature request
Locust told me 249 requests had been made, but I got 327 records from service access log.
Expected behavior
I think locust should report that the completed requests is 327, but not 249.
Environment settings (for bug reports)
- OS: Ubuntu 14.04.5 LTS
- Python version: Python 2.7.6
- Locust version: 0.8.1
Steps to reproduce (for bug reports)
Just run the following command in shell:
locust -H http://10.44.147.237:8024 -f locustfile.py --no-web -c 50 -r 10 -n 200
lucustfile.py
# -*- coding: utf-8 -*-
from __future__ import absolute_import
import locust
class PerformanceTaskSet(locust.TaskSet):
@locust.task(weight=1)
def apply_resources(self):
self.client.put(
'/accounts/xxxx/projects/integration-test/resource_apply/',
json={'cpu': 8, 'memory': 16}
)
class PerformanceLocust(locust.HttpLocust):
task_set = PerformanceTaskSet
min_wait = 100
max_wait = 1000
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
CloudWatch metrics for your Application Load Balancer
CloudWatch enables you to retrieve statistics about those data points as an ordered set of time-series data, known as metrics.
Read more >What does 'Total Requests' in Server statistics actually show?
I try to make some summary statistics on services usage. ... ArcGIS Server Statistics as 'Total Requests' (or 'RequestCount' in admin API).
Read more >How to Monitor NGINX | Datadog
Total is a cumulative count of client requests. Note that a single client connection can involve multiple requests, so this number may be ......
Read more >2020 Census Undercounts in Six States, Overcounts in Eight
If an estimated net coverage error is negative, it means the census counts may have been too low and the census missed some...
Read more >Crawl Stats report - Search Console Help
All URLs shown and counted are the actual URLs requested by Google; data is not assigned to canonical URLs as is done in...
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
THE LOGS
Locust showed 2875 , but I got 3229 actually.
Without setting not to reset stats, Locust will make requests while scaling up the users and then reset stats.
In 0.8.1 that is
--no-reset-stats
but will change in 0.9.0 https://github.com/locustio/locust/pull/674