-
Notifications
You must be signed in to change notification settings - Fork 314
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
Index-append operation only indexing bulk-size * clients documents #377
Comments
I could reproduce the behavior that you are seeing. It is caused by the fact that you did not specify any iterations or time-periods on the task. If you add "schedule": [
{
"clients": 4,
"warmup-time-period": 0,
"operation": {
"name": "index-append",
"operation-type": "bulk",
"bulk-size": {{bulk_size | default(100)}}
}
} The reason for this - admittedly - strange behavior is that you can either have a time-period-based or an iteration-based task. If you do not specify anything, Rally will run the provided operation once without warmup by default and that's what you see here. While we could argue that it makes no sense to execute a bulk operation only once, Rally does not impose any semantics on the operation on that level. It simply executes what you give it. |
Very odd, okay, I wonder if maybe it'd be nice to have a different operation type that will always consume all of the documents from the file? That's the only thing I could think that would help alleviate the weirdness |
Yes. I let this ticket open as a reminder for now but I need to think how to make this less trappy in the future. |
Another user just hit this in https://discuss.elastic.co/t/bulk-index-operation-for-multiple-indices/120373. Hence, I have changed the milestone now so we do something about this earlier. |
Rally 0.9.4 will implement the following behavior in case the user did not specify |
With this commit we also query the parameter source when determining the default number of iterations. Previously, when the user did not specify any time-period nor any number of iterations we always defaulted to zero warmup iterations and one measurement iteration. This lead to surprising behavior for bulk-indexing when the user forgot to add a warmup time period because we only issued one bulk request. Closes elastic#377
With this commit we also query the parameter source when determining the default number of iterations. Previously, when the user did not specify any time-period nor any number of iterations we always defaulted to zero warmup iterations and one measurement iteration. This lead to surprising behavior for bulk-indexing when the user forgot to add a warmup time period because we only issued one bulk request. Closes #377 Relates #436
Rally version (get with
esrally --version
):Latest from master, 425d8f6
Invoked command:
Configuration file (located in
~/.rally/rally.ini
)):JVM version:
JDK 8
OS version:
Fedora 26
Description of the problem including expected versus actual behavior:
I have a track with an index-append operation defined inline in the challenge like so:
The documents.json contains 1967 documents, however, only 400 are actually indexed.
Steps to reproduce:
bulk-size x clients
documents are indexed, in my case,100 x 4 = 400
documents actually indexed.I've noticed that this didn't affect me when the indexing was defined in a separate operation, it only started affecting me when I defined it inline in the challenge.
Provide logs (if relevant):
The data is from a private repo, so I cannot provide it here.
The text was updated successfully, but these errors were encountered: