-
Notifications
You must be signed in to change notification settings - Fork 313
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
Improve response checks in bulk API runner #207
Comments
note that failing replicas will not bubble up as an error. You need to look at the failures section of the |
Thanks for the pointer. In that case I think we should add this as an option which needs to be enabled by the user in the track. |
maybe we should improve the bulk response to bubble this up. I think it has merit for exactly the reason you think of making it optional - people won't have to parse the response. |
This would definitely help in this case. The reason I wanted to make response parsing optional is to avoid adding any bottlenecks in the load test driver. I did not check yet how long it would take to extract these data (for different bulk sizes) and my gut feeling tells me that the overhead is negligible but I'd rather measure it first and base my decision on hard numbers. :) |
Rally will return a structure like: {
"weight": 5000,
"unit": "docs",
"bulk-size": 5000,
"success": true,
"success-count": 5000,
"error-count": 0,
"ops": {
"index": {
"item-count": 5000,
"created": 5000
}
},
"shards_histogram": [
{
"item-count": 5000,
"shards": {
"total": 2,
"successful": 2,
"failed": 0
}
}
]
} when the new parameter {
"weight": 5000,
"unit": "docs",
"bulk-size": 5000,
"success": true,
"success-count": 5000,
"error-count": 0
} The default value will be |
By the way, the pydoc comment has a few more examples that might also be interesting. |
@danielmitterdorfer does it mean you gave up on:
|
@bleskes I did not gave up but Rally works with ES 1.x, 2.x, 5.x and 6.x and I needed to implement a solution that works for all of them. We can still implement this in ES though. I can create a ticket later. |
@danielmitterdorfer makes total sense. Thanks for explaining. |
I've created elastic/elasticsearch#23143 now as a follow-up. |
At the moment, Rally checks for bulk errors by inspecting the
errors
property of the bulk response (and adds it to the request meta-data).On errors, we should improve the inspection and also report more meta-data (like items with failed shards etc.)
The text was updated successfully, but these errors were encountered: