Skip to content

Commit

Permalink
add cardinality aggregation in big5 (opensearch-project#311)
Browse files Browse the repository at this point in the history
Signed-off-by: bowenlan-amzn <bowenlan23@gmail.com>
  • Loading branch information
bowenlan-amzn authored Jun 18, 2024
1 parent 12504df commit 7c5ddaa
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
30 changes: 30 additions & 0 deletions big5/operations/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -847,6 +847,36 @@
}
}
},
{
"name": "cardinality-agg-low",
"operation-type": "search",
"index": "{{index_name | default('big5')}}",
"body": {
"size": 0,
"aggs": {
"region": {
"cardinality": {
"field": "cloud.region"
}
}
}
}
},
{
"name": "cardinality-agg-high",
"operation-type": "search",
"index": "{{index_name | default('big5')}}",
"body": {
"size": 0,
"aggs": {
"agent": {
"cardinality": {
"field": "agent.name"
}
}
}
}
},
{
"name": "query-string-on-message",
"operation-type": "search",
Expand Down
14 changes: 14 additions & 0 deletions big5/test_procedures/common/big5-schedule.json
Original file line number Diff line number Diff line change
Expand Up @@ -329,4 +329,18 @@
"iterations": {{ test_iterations | default(100) | tojson }},
"target-throughput": {{ target_throughput | default(2) | tojson }},
"clients": {{ search_clients | default(1) }}
},
{
"operation": "cardinality-agg-low",
"warmup-iterations": {{ warmup_iterations | default(200) | tojson }},
"iterations": {{ test_iterations | default(100) | tojson }},
"target-throughput": {{ target_throughput | default(2) | tojson }},
"clients": {{ search_clients | default(1) }}
},
{
"operation": "cardinality-agg-high",
"warmup-iterations": {{ warmup_iterations | default(200) | tojson }},
"iterations": {{ test_iterations | default(100) | tojson }},
"target-throughput": {{ target_throughput | default(2) | tojson }},
"clients": {{ search_clients | default(1) }}
}

0 comments on commit 7c5ddaa

Please sign in to comment.