I want to use rally to insert many docs to an index for benchmark, e.g. I have a documents.json with 1405 records, I want to insert 1405*1000 to index for benchmark.
{
"operation": "bulk-index",
"iterations": 1000,
"clients": 8,
"detailed-results":true
},
but when I execute the track I got below error
2018-09-28 11:26:15,378 ActorAddr-(T|:65048)/PID:26475 esrally.driver.driver ERROR Could not execute schedule
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/esrally/driver/driver.py", line 1327, in iteration_count_based
yield (next_scheduled, sample_type, percent_completed, runner, params.params())
File "/usr/local/lib/python3.7/site-packages/esrally/track/params.py", line 527, in params
return next(self.internal_params)
StopIteration
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/esrally/driver/driver.py", line 985, in __call__
for expected_scheduled_time, sample_type, percent_completed, runner, params in self.schedule:
RuntimeError: generator raised StopIteration
and actually it only inserted 1405 docs that is iterations:1.
So does iterations not support bulk operation? Or it's caused by some other reason and how to solve it?
P.S.
➜ ~ esrally --pipeline=benchmark-only --target-hosts=127.0.0.1:9200 --track-repository=private --track=companies --challenge=repeat-bulk-index
[INFO] Racing on track [companies], challenge [repeat-bulk-index] and car ['external'] with version [6.2.2].
Running delete [100% done]
Running create [100% done]
Running bulk-index [ 0% done]
[ERROR] Cannot race. Error in load generator [0]
generator raised StopIteration