-
Notifications
You must be signed in to change notification settings - Fork 127
bump github.com/elastic/elastic-integration-corpus-generator-tool to … #1180
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
paolafrancesca
merged 8 commits into
elastic:main
from
paolafrancesca:bump-coprus-generator-v0.4.1
Mar 10, 2023
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
2105037
bump github.com/elastic/elastic-integration-corpus-generator-tool to …
695a1b2
rename --data-stream flag to --dataset
2a7afa2
fix go.mod
e7f953e
generate docs for subcommands
556c04b
bump corpus generator to v0.4.3
9d602b8
do not use temporary file
a05b2fc
add support for generating rally tracks
ebf8522
minor refinements
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
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 |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| # HOWTO: Generate corpus for a package dataset | ||
|
|
||
| ## Introduction | ||
|
|
||
| The `elastic-package` tool can be used to generate a rally corpus for a package dataset. | ||
| This feature is currently in beta and manual steps are required to create a valid rally track from the generated corpus. | ||
| Currently, only data for what we have related assets on https://github.com/elastic/elastic-integration-corpus-generator-tool are supported. | ||
|
|
||
| ### Generate a corpus for a package dataset | ||
|
|
||
| #### Steps | ||
|
|
||
| 1. Run the elastic-package command for generating the corpus of the package dataset: | ||
| `elastic-package benchmark generate-corpus --dataset sqs --package aws --size 100M` | ||
| 1. replace the sample value for `--dataset` with the one of the dataset you want to generate a corpus for | ||
| 2. replace the sample value for `--package` with the one of the package you want to generate a corpus for | ||
| 3. replace the sample value for `--size` with the *approximate* size of the corpus you want to generate | ||
| 2. Choose a file where to redirect the output of the command if you want to save it: | ||
| `elastic-package benchmark generate-corpus --dataset sqs --package aws --size 100M > aws.sqs.100M.ndjson` | ||
| 1. replace the sample value of the redirect file with the one you've chosen | ||
|
|
||
| ### Generate a rally track for a package dataset and run a rally benchmark | ||
|
|
||
| *BEWARE*: this is only supported for `metrics` type data streams. | ||
|
|
||
| #### Steps | ||
|
|
||
| 1. Run the elastic-package command for generating the corpus of the package dataset: | ||
| `elastic-package benchmark generate-corpus --dataset sqs --package aws --size 100M --rally-track-output-dir | ||
| ./track-output-dir` | ||
| 1. replace the sample value for `--dataset` with the one of the dataset you want to generate a corpus for | ||
| 2. replace the sample value for `--package` with the one of the package you want to generate a corpus for | ||
| 3. replace the sample value for `--size` with the *approximate* size of the corpus you want to generate | ||
| 4. replace the sample value for `--rally-track-output-dir` with the path to the folder where you want to save the rally track and the generated corpus (the folder will be created if it does not exist already) | ||
| 2. Go to the Kibana instance of the cluster you want to run the rally on and install the integration package that you have generated the rally track for. | ||
| 3. Run the rally race with the generated track: | ||
| `esrally race --kill-running-processes --track-path=./track-output-dir --target-hosts=my-deployment.es.eastus2.azure.elastic-cloud.com:443 --pipeline=benchmark-only` | ||
| 1. replace the sample value for `--track-path` with the path to the folder provided as `--rally-track-output-dir` at step 1 | ||
| 2. replace the sample value for `--target-hosts` with the host and port of the Elasticsearch instance(s) you want rally to connect to. | ||
| 3. You might need to add the "client-options" parameter to rally in order to authenticate and use SSL: `--client-options="use_ssl:true,verify_certs:true,basic_auth_user:'elastic',basic_auth_password:'changeme'"` | ||
| 1. replace the sample value for `basic_auth_user` and `basic_auth_password` in `--client-options` to the credentials of the user in the cluster you want rally to use. |
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
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
Oops, something went wrong.
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.
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.
👍