Skip to content
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

Feature to increase the size of the data corpus for the http_logs workload #79

Merged
merged 1 commit into from
Apr 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions http_logs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,22 @@ node pipeline to run. Valid options are `'baseline'` (default), `'grok'` and `'
* `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.


### Beta Feature: Increasing the size of the data corpus

This workload provides for a feature to use a generated data corpus in lieu of the provided corpora files (which currently total ~31 GB.) The generated corpus could, for instance, be 100 GB or more. For more details on generating such a corpus, run the following command:

```
expand-data-corpus.py -h
```

Once a corpus has been generated, it can be used for a test by supplying the following parameter via `--workoad-params`:

* `generated_corpus:t`: Use the generated data corpus instead of the corpora files packaged with this track

If there are multiple generated corpora files, they are all used concurrently. Ingestion of the generated and the default corpora are mutually exclusive in any single OSB run. Once ingested, however, queries packaged with this workload will operate on the entire loaded data set.


### License

Original license text:
Expand Down
77 changes: 44 additions & 33 deletions http_logs/workload.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,41 +8,52 @@
"description": "HTTP server log data",
"#TODO": "Replace index definitions with a template after setting the workload version to 2. Explicit index definitions are not necessary anymore.",
"indices": [
{
"name": "logs-181998",
"body": "{{ index_body }}"
},
{
"name": "logs-191998",
"body": "{{ index_body }}"
},
{
"name": "logs-201998",
"body": "{{ index_body }}"
},
{
"name": "logs-211998",
"body": "{{ index_body }}"
},
{
"name": "logs-221998",
"body": "{{ index_body }}"
},
{
"name": "logs-231998",
"body": "{{ index_body }}"
},
{
"name": "logs-241998",
"body": "{{ index_body }}"
},
{
"name": "reindexed-logs",
"body": "{{ index_body }}"
}
{%- if generated_corpus is defined %}
{{ benchmark.collect(parts="gen-idx-*.json") }}
{%- else %}
{
"name": "logs-181998",
"body": "{{ index_body }}"
},
{
"name": "logs-191998",
"body": "{{ index_body }}"
},
{
"name": "logs-201998",
"body": "{{ index_body }}"
},
{
"name": "logs-211998",
"body": "{{ index_body }}"
},
{
"name": "logs-221998",
"body": "{{ index_body }}"
},
{
"name": "logs-231998",
"body": "{{ index_body }}"
},
{
"name": "logs-241998",
"body": "{{ index_body }}"
},
{
"name": "reindexed-logs",
"body": "{{ index_body }}"
}
{%- endif %}
],
"corpora": [
{%- if ingest_pipeline is defined and ingest_pipeline == "grok" %}
{%- if generated_corpus is defined %}
{
"name": "http_logs",
"documents": [
{{ benchmark.collect(parts="gen-docs-*.json") }}
]
}
{%- elif ingest_pipeline is defined and ingest_pipeline == "grok" %}
{
"name": "http_logs_unparsed",
"base-url": "https://opensearch-benchmark-workloads.s3.amazonaws.com/corpora/http_logs",
Expand Down