Skip to content

Commit

Permalink
Add track for terms agg
Browse files Browse the repository at this point in the history
Adds a rally track specifically for testing the performance of the terms
agg as I'll be doing some work on it. In particular this focuses on
numeric terms because the first phase of my work only touches them.

Relates to elastic/elasticsearch#55873
  • Loading branch information
nik9000 committed Apr 29, 2020
1 parent e3f959d commit 39bf39c
Show file tree
Hide file tree
Showing 2 changed files with 140 additions and 1 deletion.
68 changes: 68 additions & 0 deletions noaa/challenges/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -337,4 +337,72 @@
"target-throughput": 1
}
]
},
{
"name": "terms",
"description": "Checks the performance of terms aggregations",
"default": false,
"schedule": [
{
"operation": "delete-index"
},
{
"operation": {
"operation-type": "create-index",
"settings": {{index_settings | default({}) | tojson}}
}
},
{
"name": "check-cluster-health",
"operation": {
"operation-type": "cluster-health",
"index": "weather-data-2016",
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
}
},
{
"operation": "index",
"#COMMENT": "This is an incredibly short warmup time period but it is necessary to get also measurement samples. As this benchmark is rather about search than indexing this is ok.",
"warmup-time-period": 10,
"clients": {{bulk_indexing_clients | default(8)}}
},
{
"name": "refresh-after-index",
"operation": "refresh",
"clients": 1
},
{
"operation": "force-merge",
"clients": 1
},
{
"name": "refresh-after-force-merge",
"operation": "refresh",
"clients": 1
},
{
"operation": "keyword_terms_numeric_terms",
"clients": 1,
"warmup-iterations": 10,
"iterations": 50,
"target-interval": 4
},
{
"operation": "numeric_terms_numeric_terms",
"clients": 1,
"warmup-iterations": 10,
"iterations": 50,
"target-interval": 3
},
{
"operation": "date_histo_numeric_terms",
"clients": 1,
"warmup-iterations": 10,
"iterations": 50,
"target-interval": 5
}
]
}
73 changes: 72 additions & 1 deletion noaa/operations/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -713,5 +713,76 @@
}
}
}
},
{
"name": "keyword_terms_numeric_terms",
"operation-type": "search",
"body": {
"size": 0,
"aggs": {
"station": {
"terms": {
"field": "station.id",
"size": 500
},
"aggs": {
"date": {
"terms": {
"field": "date",
"size": 1
},
"aggs": {
"max": {
"max": { "field": "tmax" }
}
}
}
}
}
}
}
},
{
"name": "numeric_terms_numeric_terms",
"operation-type": "search",
"body": {
"size": 0,
"aggs": {
"tmax": {
"terms": {
"field": "TMAX",
"size": 100
},
"aggs": {
"tavg": {
"terms": {
"field": "TAVG"
}
}
}
}
}
}
},
{
"name": "date_histo_numeric_terms",
"operation-type": "search",
"body": {
"size": 0,
"aggs": {
"date": {
"date_histogram": {
"field": "date",
"calendar_interval": "1w"
},
"aggs": {
"tavg": {
"terms": {
"field": "TAVG"
}
}
}
}
}
}
}

0 comments on commit 39bf39c

Please sign in to comment.