-
Notifications
You must be signed in to change notification settings - Fork 58
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
Provide variation of the workload(s) with unsigned_long data type #86
Conversation
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
nyc_taxis/index.json
Outdated
@@ -80,10 +80,10 @@ | |||
"scaling_factor": 100, | |||
"type": "scaled_float" | |||
}, | |||
"trip_distance": { | |||
"trip_distance": {%- if trip_distance_type is defined %} {{ trip_distance_type | tojson }} {%- else %} { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@IanHoang would appreciate your feedback on this solution: it turned out we don't need change in test procedure - the default one works just fine (it has aggregations over trip_distrance
) but what we need it the mapping type change for trip_distance
. Using workload params seems like one of the ways to achieve that (without copy/pasting the whole index).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
workload-params.json
:
{
"trip_distance_type": {
"type": "unsigned_long"
}
}
And use like that: opensearch-benchmark execute_test --pipeline=benchmark-only --workload=nyc_taxis --target-hosts=localhost:9200 --workload-params=workload-params.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you can use workload-params to achieve this, but it would be helpful to update the README with an example, after you decide what to name the trip_distance_type
literal.
nyc_taxis/README.md
Outdated
@@ -73,6 +73,7 @@ This workload allows to overwrite the following parameters using `--workload-par | |||
* `error_level` (default: "non-fatal"): Available for bulk operations only to specify ignore-response-error-level. | |||
* `target_throughput` (default: default values for each operation): Number of requests per second, `none` for no limit. | |||
* `search_clients`: Number of clients that issues search requests. | |||
* `trip_distance_type` (default: { "scaling_factor": 100, "type": "scaled_float" }): The `trip_distance` field type mapping |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not seem right. The literal trip_distance_type
refers not just to a type, but also includes the scaling factor, so it should probably be renamed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
trip_distance_type
Sure, like trip_distance_field_mapping
or trip_distance_mapping
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The former seems more appropriate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So trip_distance_mapping
it is, any more comments? thank you!
nyc_taxis/index.json
Outdated
@@ -80,10 +80,10 @@ | |||
"scaling_factor": 100, | |||
"type": "scaled_float" | |||
}, | |||
"trip_distance": { | |||
"trip_distance": {%- if trip_distance_type is defined %} {{ trip_distance_type | tojson }} {%- else %} { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you can use workload-params to achieve this, but it would be helpful to update the README with an example, after you decide what to name the trip_distance_type
literal.
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
nyc_taxis/README.md
Outdated
} | ||
``` | ||
|
||
Save it as `params.json` and provide it to Benchmark with `--workload-params="/path/to/params.json"`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change to "OpenSearch Benchmark". There are some references to "Benchmark" for historical reasons, but they will be updated in due course.
nyc_taxis/README.md
Outdated
### Example of specifying parameters using `--workload-params`: | ||
|
||
Example: | ||
```json | ||
{ | ||
"trip_distance_mapping": { | ||
"type": "unsigned_long" | ||
} | ||
} | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you rename the section title to something like "Specifying Workload Parameters" and add a link to it from the previous section:
This workload allows [specifying the following parameters](#specifying-workload-parameters) using the `-workload-parameters` option to OSB.
You should also indicate that if it is a simple entry, something like --workload-params=search_clients:2
will suffice.
1816fff
to
e0cb121
Compare
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
@gkamat anything else is holding us off? thank you |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for incorporating the suggestions.
…ensearch-project#86) * Provide variation of the workload(s) with unsigned_long data type Signed-off-by: Andriy Redko <andriy.redko@aiven.io> * Address review comments Signed-off-by: Andriy Redko <andriy.redko@aiven.io> * Address code review comments Signed-off-by: Andriy Redko <andriy.redko@aiven.io> --------- Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
…ensearch-project#86) * Provide variation of the workload(s) with unsigned_long data type Signed-off-by: Andriy Redko <andriy.redko@aiven.io> * Address review comments Signed-off-by: Andriy Redko <andriy.redko@aiven.io> * Address code review comments Signed-off-by: Andriy Redko <andriy.redko@aiven.io> --------- Signed-off-by: Andriy Redko <andriy.redko@aiven.io> Signed-off-by: Govind Kamat <govkamat@amazon.com>
* Provide variation of the workload(s) with unsigned_long data type Signed-off-by: Andriy Redko <andriy.redko@aiven.io> * Address review comments Signed-off-by: Andriy Redko <andriy.redko@aiven.io> * Address code review comments Signed-off-by: Andriy Redko <andriy.redko@aiven.io> --------- Signed-off-by: Andriy Redko <andriy.redko@aiven.io> Signed-off-by: Govind Kamat <govkamat@amazon.com>
…ensearch-project#86) * Provide variation of the workload(s) with unsigned_long data type Signed-off-by: Andriy Redko <andriy.redko@aiven.io> * Address review comments Signed-off-by: Andriy Redko <andriy.redko@aiven.io> * Address code review comments Signed-off-by: Andriy Redko <andriy.redko@aiven.io> --------- Signed-off-by: Andriy Redko <andriy.redko@aiven.io> Signed-off-by: Govind Kamat <govkamat@amazon.com>
* Provide variation of the workload(s) with unsigned_long data type Signed-off-by: Andriy Redko <andriy.redko@aiven.io> * Address review comments Signed-off-by: Andriy Redko <andriy.redko@aiven.io> * Address code review comments Signed-off-by: Andriy Redko <andriy.redko@aiven.io> --------- Signed-off-by: Andriy Redko <andriy.redko@aiven.io> Signed-off-by: Govind Kamat <govkamat@amazon.com>
…ensearch-project#86) * Provide variation of the workload(s) with unsigned_long data type Signed-off-by: Andriy Redko <andriy.redko@aiven.io> * Address review comments Signed-off-by: Andriy Redko <andriy.redko@aiven.io> * Address code review comments Signed-off-by: Andriy Redko <andriy.redko@aiven.io> --------- Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
…ensearch-project#86) * Provide variation of the workload(s) with unsigned_long data type Signed-off-by: Andriy Redko <andriy.redko@aiven.io> * Address review comments Signed-off-by: Andriy Redko <andriy.redko@aiven.io> * Address code review comments Signed-off-by: Andriy Redko <andriy.redko@aiven.io> --------- Signed-off-by: Andriy Redko <andriy.redko@aiven.io> Signed-off-by: Govind Kamat <govkamat@amazon.com>
…ensearch-project#86) * Provide variation of the workload(s) with unsigned_long data type Signed-off-by: Andriy Redko <andriy.redko@aiven.io> * Address review comments Signed-off-by: Andriy Redko <andriy.redko@aiven.io> * Address code review comments Signed-off-by: Andriy Redko <andriy.redko@aiven.io> --------- Signed-off-by: Andriy Redko <andriy.redko@aiven.io> Signed-off-by: Govind Kamat <govkamat@amazon.com>
* Provide variation of the workload(s) with unsigned_long data type Signed-off-by: Andriy Redko <andriy.redko@aiven.io> * Address review comments Signed-off-by: Andriy Redko <andriy.redko@aiven.io> * Address code review comments Signed-off-by: Andriy Redko <andriy.redko@aiven.io> --------- Signed-off-by: Andriy Redko <andriy.redko@aiven.io> Signed-off-by: Govind Kamat <govkamat@amazon.com>
Description
Provide variation of the workload(s) with
unsigned_long
data typeIssues Resolved
Closes #85
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.