generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 627
Workload and client options draft #10208
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
Merged
Merged
Changes from 1 commit
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -41,6 +41,38 @@ Results from the test appear in the directory set by the `--output-path` option | |
|
|
||
| If you want to run the test in test mode to make sure that your workload operates as intended, add the `--test-mode` option to the `execute-test` command. Test mode ingests only the first 1,000 documents from each index provided and runs query operations against them. | ||
|
|
||
| ### Working with `--workload-params` | ||
|
|
||
| You can customize the behavior of a workload by passing workload-specific parameters using the `--workload-params` option. This flag accepts a comma-separated list of key-value pairs that override default values defined in the workload’s `workload.json` file. | ||
|
|
||
| For example, some workloads let you configure the number of documents indexed, the number of clients used for query execution, or the index name. These parameters can be critical for tailoring benchmarks to your specific use case or infrastructure constraints. | ||
|
|
||
| To pass workload parameters, use the following syntax: | ||
|
|
||
| ```bash | ||
| --workload-params="number_of_documents:100000,index_name:custom-index" | ||
| ``` | ||
|
|
||
| Add this option to your `execute-test` command as shown in the following example: | ||
natebower marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ```bash | ||
| opensearch-benchmark execute-test \ | ||
| --pipeline=benchmark-only \ | ||
| --workload=nyc_taxis \ | ||
| --target-host=https://localhost:9200 \ | ||
| --client-options=basic_auth_user:admin,basic_auth_password:admin,verify_certs:false \ | ||
| --workload-params="bulk_size:500,index_name:nyc_custom" | ||
| ``` | ||
|
|
||
| To find available workload parameters for a given workload, use the following steps: | ||
kolchfa-aws marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| 1. Navigate to the workload’s directory in the [OpenSearch Benchmark Workloads GitHub repository](https://github.com/opensearch-project/opensearch-benchmark-workloads). | ||
kolchfa-aws marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| 2. Open the `workload.json` file. | ||
kolchfa-aws marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| 3. Look for parameter definitions under the `params` section or within individual operation templates. | ||
|
||
|
|
||
| Each workload documents its available parameters in the `workload.json` file, making it the authoritative source for customizing benchmark runs. | ||
|
||
|
|
||
|
|
||
| ## Step 3: Validate the test | ||
|
|
||
| After running an OpenSearch Benchmark test, take the following steps to verify that it has run properly: | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.