-
Notifications
You must be signed in to change notification settings - Fork 80
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
Create-Workload Improvements: Write Test Procedures and Operations into Separate Directories and Files #397
Changes from all commits
15f2cb1
0f2af67
7debd74
66f7b29
c2f981f
296fd42
5c59e88
9cc196f
4cec68e
632dc3c
df2af12
1fcc667
de27dcf
c4fb5ea
d05766a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -115,3 +115,6 @@ recipes/ccr/ccr-target-hosts.json | |
|
||
# Tracker tracks | ||
tracks/ | ||
|
||
# Visual Studio Code for Contributors | ||
.vscode/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "index-append", | ||
"operation-type": "bulk", | ||
"bulk-size": {{bulk_size}}, | ||
"ingest-percentage": {{ingest_percentage}} | ||
}, | ||
{ | ||
"name": "search", | ||
"operation-type": "search", | ||
"index": {{ indices | map(attribute='name') | list | join(',') | tojson }}, | ||
"body": { | ||
"query": { | ||
"match_all": {} | ||
} | ||
} | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We need to include a way to add custom queries. Some users might use the |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"name": "append-no-conflicts", | ||
"schedule": [ | ||
{ | ||
"operation": "delete-index" | ||
},{% raw %} | ||
{ | ||
"operation": { | ||
"operation-type": "create-index", | ||
"settings": {{index_settings | tojson}} | ||
} | ||
},{% endraw %} | ||
{ | ||
"operation": { | ||
"operation-type": "cluster-health", | ||
"index": {{ indices | map(attribute='name') | list | join(',') | tojson }},{% raw %} | ||
"request-params": { | ||
"wait_for_status": "{{cluster_health}}", | ||
"wait_for_no_relocating_shards": "true" | ||
}, | ||
"retry-until-success": true | ||
} | ||
}, | ||
{ | ||
"operation": "index-append", | ||
{% raw -%}"clients": {{bulk_indexing_clients}}, | ||
"ignore-response-error-level": "{{error_level}}"{% endraw -%} | ||
}, | ||
{ | ||
"name": "refresh-after-index", | ||
"operation": "refresh" | ||
}, | ||
{ | ||
"name": "search-after-index", | ||
"operation": "search" | ||
}, | ||
{% endraw -%} | ||
{%- block queries -%} | ||
{% for query in custom_queries %} | ||
{ | ||
"operation":"{{query.name}}", | ||
"warmup-iterations": {{query.warmup_iterations}}}}, | ||
"iterations": {{query.iterations}}, | ||
{%- if query.target_throughput %} | ||
"target-throughput": {{ query.target_throughput}} | ||
{%- else %} | ||
"target-throughput": {{ query.target_throughput | tojson }} | ||
{%- endif %} | ||
{%-if search_clients is defined and search_clients %} | ||
,"clients": {{ search_clients | tojson}} | ||
{%- endif %} | ||
},{% if not loop.last %},{% endif -%} | ||
{% endfor %} | ||
IanHoang marked this conversation as resolved.
Show resolved
Hide resolved
|
||
{%- endblock %} | ||
} | ||
] | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "index-append", | ||
"operation-type": "bulk", | ||
IanHoang marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"bulk-size": {{bulk_size | default(5000)}}, | ||
"ingest-percentage": {{ingest_percentage | default(100)}} | ||
}, | ||
{ | ||
"name": "search", | ||
"operation-type": "search", | ||
"index": {{ indices | map(attribute='name') | list | join(',') | tojson }}, | ||
"body": { | ||
"query": { | ||
"match_all": {} | ||
} | ||
} | ||
} |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"name": "append-no-conflicts", | ||
"description": "Indexes the whole document corpus using OpenSearch default settings. We only adjust the number of replicas as we benchmark a single node cluster and Benchmark will only start the benchmark if the cluster turns green. Document ids are unique so all index operations are append only.", | ||
"default": true, | ||
"schedule": [ | ||
{ | ||
"operation": "delete-index" | ||
},{% raw %} | ||
{ | ||
"operation": { | ||
"operation-type": "create-index", | ||
"settings": {{index_settings | default({}) | tojson}} | ||
} | ||
},{% endraw %} | ||
{ | ||
"operation": { | ||
"operation-type": "cluster-health", | ||
"index": {{ indices | map(attribute='name') | list | join(',') | tojson }},{% raw %} | ||
"request-params": { | ||
"wait_for_status": "{{cluster_health | default('green')}}", | ||
"wait_for_no_relocating_shards": "true" | ||
}, | ||
"retry-until-success": true | ||
} | ||
},{% endraw -%} | ||
{ | ||
"operation": "index-append", | ||
{% raw -%} "clients": {{bulk_indexing_clients | default(8)}},{% endraw -%} | ||
{% raw -%}"ignore-response-error-level": "{{error_level | default('non-fatal')}}"{% endraw -%} | ||
}, | ||
{ | ||
"name": "refresh-after-index", | ||
"operation": "refresh" | ||
}, | ||
{ | ||
"name": "search-after-index", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should still include basic workload parameters such as |
||
"operation": "search" | ||
} | ||
] | ||
} | ||
|
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.
We should still include the same Jinja defaults as the
default-operations.json.j2
file.