Skip to content

Commit

Permalink
renamed step to l_num_allocations
Browse files Browse the repository at this point in the history
  • Loading branch information
maxhniebergall committed Oct 27, 2023
1 parent aade5fa commit af0f7ee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,10 @@
{%- set bulk_size_mult_int = (bulk_size_multiplier/10)*(max_doc_size/doc_size) | round %}
{%- set adj_bulk_size = bulk_size*bulk_size_mult_int | default(100) %}

{%- set itr_keys = doc_size ~ "-doc-size--" ~ step ~ "-allocations--" ~ adj_bulk_size ~ "-bulk-size",%}

{%- for l_num_allocations in range(p_min_number_of_allocations, p_max_number_of_allocations + 1, 1) %}

{%- set itr_keys = doc_size ~ "-doc-size--" ~ l_num_allocations ~ "-allocations--" ~ adj_bulk_size ~ "-bulk-size",%}

{
"operation": "create-index",
"name": "loop-create-index-{{ itr_keys }}"
Expand Down
10 changes: 5 additions & 5 deletions elser-ingest-speedtest/challenges/Multi-Parametric.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,18 @@
{%- for l_num_allocations in range(1, p_number_of_allocations + 1, 1) %},
{
"operation": "create-index",
"name": "loop-create-index-{{ step }}"
"name": "loop-create-index-{{ l_num_allocations }}"
},
{
"name": "stop any existing trained model deployment with name: [{{ model_id }}]--{{ step }}",
"name": "stop any existing trained model deployment with name: [{{ model_id }}]--{{ l_num_allocations }}",
"operation": {
"operation-type": "stop-trained-model-deployment",
"include-in-reporting": false,
"model_id": "{{ model_id }}"
}
},
{
"name": "start new trained model deployment with name [{{ model_id }}] and [{{ step }}] allocations",
"name": "start new trained model deployment with name [{{ model_id }}] and [{{ l_num_allocations }}] allocations",
"operation": {
"operation-type": "start-trained-model-deployment",
"number_of_allocations": {{ l_num_allocations | default(1) }},
Expand All @@ -80,7 +80,7 @@
}
},
{
"name": "bulk--{{ step }}-allocations--{{ bulk_indexing_clients }}-clients--{{ ingest_percentage }}-ingest-percent--{{ bulk_size }}-bulk-size",
"name": "bulk--{{ l_num_allocations }}-allocations--{{ bulk_indexing_clients }}-clients--{{ ingest_percentage }}-ingest-percent--{{ bulk_size }}-bulk-size",
"clients": {{ bulk_indexing_clients | default(3) }},
"operation": {
"operation-type": "bulk",
Expand All @@ -94,7 +94,7 @@
},
{
"operation": "delete-index",
"name": "loop-delete-index-{{ step }}"
"name": "loop-delete-index-{{ l_num_allocations }}"
}
{%- endfor %},
{
Expand Down

0 comments on commit af0f7ee

Please sign in to comment.