Skip to content
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

Include metric types in tsdb index and template mappings #316

120 changes: 119 additions & 1 deletion tsdb/challenges/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,124 @@
"operation": "default_1k",
"warmup-iterations": 50,
"iterations": 100
},
{
"operation": "date-histo-entire-range",
"warmup-iterations": 50,
"iterations": 100
}
]
},
{
"name": "downsample",
"description": "Indexes the whole document corpus and executes a few downsampling operations using different interval values",
"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": "tsdb",
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
},
"retry-until-success": true
}
},
{
"operation": "index",
"warmup-time-period": 240,
"clients": {{bulk_indexing_clients | default(8)}},
"ignore-response-error-level": "{{error_level | default('non-fatal')}}"
},
{
"name": "refresh-after-index",
"operation": "refresh"
},
{
"operation": {
"operation-type": "force-merge",
"request-timeout": 7200{%- if force_merge_max_num_segments is defined %},
"max-num-segments": {{ force_merge_max_num_segments | tojson }}
{%- endif %}
}
},
{
"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
}
},
{
"name": "refresh-after-force-merge",
"operation": "refresh"
},
{
"name": "block-source-index-writes",
"operation": {
"operation-type": "raw-request",
"path": "/tsdb/_block/write",
"method": "PUT"
}
},
{
"name": "downsample-1m",
"operation": {
"operation-type": "downsample",
"fixed-interval": "1m",
"source-index": "tsdb",
"target-index": "tsdb-1m"
}
},
{
"name": "downsample-1h",
"operation": {
"operation-type": "downsample",
"fixed-interval": "1h",
"source-index": "tsdb",
"target-index": "tsdb-1h"
}
},
{
"name": "downsample-1d",
"operation": {
"operation-type": "downsample",
"fixed-interval": "1d",
"source-index": "tsdb",
"target-index": "tsdb-1d"
}
},
{
"operation": "date-histo-entire-range-1m",
Copy link
Contributor Author

@salvatore-campagna salvatore-campagna Sep 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am wondering if it makes sense to have these three aggregations here or if we want to just have them under an "aggs" challenge for the tsdb track (not part of the downsampling challenge). Maybe we can keep them until we have an "aggs" challenge for the tsdb track?

nik9000 marked this conversation as resolved.
Show resolved Hide resolved
"warmup-iterations": 50,
"iterations": 100
},
{
"operation": "date-histo-entire-range-1h",
"warmup-iterations": 50,
"iterations": 100
},
{
"operation": "date-histo-entire-range-1d",
"warmup-iterations": 50,
"iterations": 100
}
]
}
}
Loading