forked from martin-gaievski/opensearch-benchmark-workloads
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
introduce common operations directory for OSB workloads (opensearch-p…
…roject#514) * restructure common operations folder based on discussion with ian Signed-off-by: Michael Oviedo <[email protected]> * refactor common ops changes based on discussion with ian Signed-off-by: Michael Oviedo <[email protected]> * rework common ops configuration Signed-off-by: Michael Oviedo <[email protected]> * add missing params and update geonames workload Signed-off-by: Michael Oviedo <[email protected]> * parameterize request-timeout and warmup-time-period Signed-off-by: Michael Oviedo <[email protected]> --------- Signed-off-by: Michael Oviedo <[email protected]>
- Loading branch information
Showing
7 changed files
with
83 additions
and
244 deletions.
There are no files selected for viewing
This file contains 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,12 @@ | ||
{ | ||
"name": "check-cluster-health", | ||
"operation": { | ||
"operation-type": "cluster-health", | ||
"index": "{{ index_name }}", | ||
"request-params": { | ||
"wait_for_status": "{{cluster_health | default('green')}}", | ||
"wait_for_no_relocating_shards": "true" | ||
}, | ||
"retry-until-success": true | ||
} | ||
} |
This file contains 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,6 @@ | ||
{ | ||
"operation": { | ||
"operation-type": "create-index", | ||
"settings": {{index_settings | default(default_index_settings | default({})) | tojson}} | ||
} | ||
} |
This file contains 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,3 @@ | ||
{ | ||
"operation": "delete-index" | ||
} |
This file contains 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,25 @@ | ||
{ | ||
"operation": { | ||
"operation-type": "force-merge", | ||
"request-timeout": {{ request_timeout | default(60) | tojson }}{%- if max_num_segments is defined %}, | ||
"max-num-segments": {{ max_num_segments | tojson }} | ||
{%- endif %} | ||
} | ||
}, | ||
{ | ||
"name": "refresh-after-force-merge", | ||
"operation": "refresh" | ||
}, | ||
{ | ||
"name": "wait-until-merges-finish", | ||
"operation": { | ||
"operation-type": "index-stats", | ||
"index": "_all", | ||
"condition": { | ||
"path": "_all.total.merges.current", | ||
"expected-value": 0 | ||
}, | ||
"retry-until-success": true, | ||
"include-in-reporting": false | ||
} | ||
} |
This file contains 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,10 @@ | ||
{ | ||
"operation": "index-append", | ||
"warmup-time-period": {{ warmup_time_period | default(120) | tojson }}, | ||
"clients": {{bulk_indexing_clients | default(8)}}, | ||
"ignore-response-error-level": "{{error_level | default('non-fatal')}}" | ||
}, | ||
{ | ||
"name": "refresh-after-index", | ||
"operation": "refresh" | ||
} |
This file contains 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,5 @@ | ||
{{ benchmark.collect(parts="delete_index.json") }}, | ||
{{ benchmark.collect(parts="create_index.json") }}, | ||
{{ benchmark.collect(parts="check_cluster_health.json") }}, | ||
{{ benchmark.collect(parts="index_append.json") }}, | ||
{{ benchmark.collect(parts="force_merge.json") }} |
This file contains 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