Skip to content

Commit

Permalink
add cardinality aggregation in big5 (#311) (#330)
Browse files Browse the repository at this point in the history
(cherry picked from commit 7c5ddaa)

Signed-off-by: bowenlan-amzn <bowenlan23@gmail.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent aca3e6a commit 0e34219
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 0e34219

Please sign in to comment.