-
Notifications
You must be signed in to change notification settings - Fork 72
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
introduce common operations directory for OSB workloads #514
Changes from all commits
7fe6c56
e735d34
e6ed9ec
81b43e1
aefcaab
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 |
---|---|---|
@@ -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 | ||
} | ||
} |
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}} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"operation": "delete-index" | ||
} |
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 %}, | ||
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. It might be better to make this explicit, since it applies only to the force-merge operation. So calling it something like I'd do this in the next set of changes, just so this PR can go in as is. |
||
"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 | ||
} | ||
} |
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" | ||
} |
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") }} |
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.
Just curious, is
default({}))
necessary if the workload has nothing specified?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.
I found that when I removed that final default({}) I was getting jinja2 templating errors, even if I specified default_settings={} in the geonames workload
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.
It's necessary because when
default_index_settings
is not specified, the{}
is needed for the JSON to be valid.