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

Add storage challenge to k8s track #500

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
103 changes: 102 additions & 1 deletion tsdb_k8s_queries/challenges/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -304,4 +304,105 @@
}{{ ", " if not loop.last else "" }}
{%- endfor %}
]
}
},
{
"name": "append-no-conflicts-index-only",
"description": "A challenge centered just around storage. Indexes the two data sets and runs a force merge after that.",
"default": false,
"schedule": [
{
"name": "delete-all-datastreams",
"operation": {
"operation-type": "delete-data-stream"
}
},
{
"name": "delete-all-composable-templates",
"operation": {
"operation-type": "delete-composable-template"
}
},
{
"name": "create-all-templates",
"operation": {
"operation-type": "create-composable-template",
"request-params": {
"create": "true"
}
}
},
martijnvg marked this conversation as resolved.
Show resolved Hide resolved
{
"name": "put-timestamp-pipeline",
"operation": {
"operation-type": "put-pipeline",
"id": "timestamp_pipeline",
"body": {
"processors": [
{
"set": {
"field": "@timestamp",
"value": {{'"{{_ingest.timestamp}}"'}}
}
},
{
"script": {
"source": "Random r = new Random();ctx['kubernetes']['pod']['uid'] = 'value-' + r.nextLong();"
}
}
]
}
}
},
{
"operation": "index-container",
"warmup-time-period": 240,
"clients": {{bulk_indexing_clients | default(8)}}
},
{
"operation": "index-pod",
"warmup-time-period": 240,
"clients": {{bulk_indexing_clients | default(8)}}
},
{
"name": "refresh-after-index",
"operation": "refresh"
},
{
"name": "wait-until-index-merges-fininshes",
"operation": {
"operation-type": "index-stats",
"index": "_all",
"condition": {
"path": "_all.total.merges.current",
"expected-value": 0
},
"retry-until-success": true,
"include-in-reporting": false
}
},
{
"operation": {
"operation-type": "force-merge",
"request-timeout": 14400,
"max-num-segments": 1
}
},
{
"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"
}
]
}
Loading