nuxeo / FunkLoad

Functional and load testing framework for web applications, written in Python
http://funkload.nuxeo.org/
GNU General Public License v2.0
382 stars 83 forks source link

Error when running in distributed mode. #38

Open littlewiki opened 13 years ago

littlewiki commented 13 years ago

When I run the test on my system, it works fine. The nodes are running on debian stable.

work@voyager:~/random/funkload$ fl-run-bench test_example.com.py example.com.test_example.com --distribute --distribute-workers=xxx@node103 -c 1:2:3 -D 30
========================================================================
Benching example.com.test_example.com
========================================================================
test all get operations
------------------------------------------------------------------------

Configuration
=============

* Current time: 2011-10-11T20:34:57.390507
* Configuration file: /home/work/random/funkload/example.com.conf
* Distributed output: log-distributed
* Server: http://flocked.in
* Cycles: [1, 2, 3]
* Cycle duration: 30s
* Sleeptime between request: from 0.0s to 2.0s
* Sleeptime between test case: 1.0s
* Startup delay between thread: 0.2s
* Workers :node103

* Preparing sandboxes for 1 workers..
* Starting 1 workers* Start monitoring 192.168.36.238: ... done.
.

* [node103] returned

* Stop monitoring 192.168.36.238:  done.
Traceback (most recent call last):
  File "/usr/local/bin/fl-run-bench", line 9, in <module>
    load_entry_point('funkload==1.16.1', 'console_scripts', 'fl-run-bench')()
  File "/usr/local/lib/python2.7/dist-packages/funkload-1.16.1-py2.7.egg/funkload/BenchRunner.py", line 707, in main
    ret = distmgr.run()
  File "/usr/local/lib/python2.7/dist-packages/funkload-1.16.1-py2.7.egg/funkload/Distributed.py", line 468, in run
    self.correlate_statistics()
  File "/usr/local/lib/python2.7/dist-packages/funkload-1.16.1-py2.7.egg/funkload/Distributed.py", line 605, in correlate_statistics
    ratio = self._calculate_time_skew(results, stats)
  File "/usr/local/lib/python2.7/dist-packages/funkload-1.16.1-py2.7.egg/funkload/Distributed.py", line 565, in _calculate_time_skew
    monitor_min = min_time(stats)
  File "/usr/local/lib/python2.7/dist-packages/funkload-1.16.1-py2.7.egg/funkload/Distributed.py", line 562, in min_time
    return keyfunc(min(vals, key=keyfunc))
ValueError: min() arg is an empty sequence
bdelbosc commented 13 years ago

Hi

I think this is a bug when there is no test result during the cycles. Can you try with longer cycle like "-D 120" ?

ben