Skip to content

Commit

Permalink
Unblock eql for public serverless (elastic#485)
Browse files Browse the repository at this point in the history
  • Loading branch information
gbanasiak authored and inqueue committed Dec 6, 2023
1 parent 9e30f37 commit f6c54a7
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions eql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ This track allows to overwrite the following parameters using `--track-params`:
* `cluster_health` (default: "green"): The minimum required cluster health.
* `error_level` (default: "non-fatal"): Available for bulk operations only to specify ignore-response-error-level.
* `cluster` (default: '') Cluster name configured on the target ES host as a remote cluster to allow execution of CCS queries.
* `post_ingest_sleep` (default: false): Whether to pause after ingest and prior to subsequent operations.
* `post_ingest_sleep_duration` (default: 30): Sleep duration in seconds.

### Query Selection

Expand Down
9 changes: 9 additions & 0 deletions eql/challenges/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@
},
"tags": "setup"
},
{# serverless-post-ingest-sleep-marker-start #}{%- if post_ingest_sleep|default(false) -%}
{
"name": "post-ingest-sleep",
"operation": {
"operation-type": "sleep",
"duration": {{ post_ingest_sleep_duration|default(30) }}
}
},
{%- endif -%}{# serverless-post-ingest-sleep-marker-end #}
{% include 'legacy_queries.json' %},
{% include 'queries.json' %}
]
Expand Down
9 changes: 9 additions & 0 deletions eql/challenges/index_sorting.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,15 @@
},
"tags": "setup"
},
{# serverless-post-ingest-sleep-marker-start #}{%- if post_ingest_sleep|default(false) -%}
{
"name": "post-ingest-sleep",
"operation": {
"operation-type": "sleep",
"duration": {{ post_ingest_sleep_duration|default(30) }}
}
},
{%- endif -%}{# serverless-post-ingest-sleep-marker-end #}
{% include 'queries.json' %}
]
}
2 changes: 2 additions & 0 deletions eql/endgame-4.28.2-000001.json
Original file line number Diff line number Diff line change
Expand Up @@ -2809,8 +2809,10 @@
"limit": "10000"
}
},
{# non-serverless-index-settings-marker-start #}{%- if build_flavor != "serverless" or serverless_operator == true -%}
"number_of_replicas": "{{number_of_replicas | default(0)}}",
"number_of_shards": "{{number_of_shards | default(5)}}",
{%- endif -%}{# non-serverless-index-settings-marker-end #}
"refresh_interval": "30s"
}
}
Expand Down

0 comments on commit f6c54a7

Please sign in to comment.