Skip to content

Commit 857414b

Browse files
Expose starting_point for daily indexing (elastic#76)
With this commit we expose a new track parameter `starting_point` for the challenge `index-logs-fixed-daily-volume`. It has previously assumed a certain date but for consistency with `index-and-query-logs-fixed-daily-volume` we now expose a track parameter for this date.
1 parent adbbdb4 commit 857414b

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -234,13 +234,14 @@ The table below shows the track parameters that can be adjusted along with defau
234234

235235
This challenge indexes a fixed (raw) logging volume of logs per day into daily indices. This challenge will complete tasks as quickly as possible and won't take the amount of days specified in the number_of_days field. The table below shows the track parameters that can be adjusted along with default values:
236236

237-
| Parameter | Explanation | Type | Default Value |
238-
| ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | ----- | ------------- |
239-
| `bulk_indexing_clients` | Number of bulk indexing clients/connections | `int` | `8` |
237+
| Parameter | Explanation | Type | Default Value |
238+
| ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | ----- | --------------------- |
239+
| `bulk_indexing_clients` | Number of bulk indexing clients/connections | `int` | `8` |
240240
| `bulk_size` | Number of documents to send per bulk | `int` | `1000` |
241-
| `daily_logging_volume` | The raw logging volume. Supported units are bytes (without any unit), `kb`, `MB` and `GB`). For the value, only integers are allowed. | `str` | `100GB` |
242-
| `number_of_days` | The number of simulated days for which data should be generated. | `int` | `24` |
243-
| `number_of_shards` | Number of primary shards | `int` | `3` |
241+
| `daily_logging_volume` | The raw logging volume. Supported units are bytes (without any unit), `kb`, `MB` and `GB`). For the value, only integers are allowed. | `str` | `100GB` |
242+
| `starting_point` | The first timestamp for which logs should be generated. | `str` | `2018-05-01:00:00:00` |
243+
| `number_of_days` | The number of simulated days for which data should be generated. | `int` | `24` |
244+
| `number_of_shards` | Number of primary shards | `int` | `3` |
244245

245246
### index-and-query-logs-fixed-daily-volume
246247

eventdata/challenges/daily-log-volume-index.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{% set p_bulk_indexing_clients = (bulk_indexing_clients | default(8)) %}
22
{% set p_bulk_size = (bulk_size | default(1000)) %}
3+
{% set p_starting_point = (starting_point | default("2018-05-01:00:00:00")) %}
34
{% set p_number_of_days = (number_of_days | default(24)) %}
45
{% set p_daily_logging_volume = (daily_logging_volume | default("100GB")) %}
56

@@ -35,7 +36,7 @@
3536
"operation-type": "bulk",
3637
"param-source": "elasticlogs_bulk",
3738
"index": "elasticlogs-<yyyy>-<mm>-<dd>",
38-
"starting_point": "2018-05-01:00:00:00",
39+
"starting_point": "{{p_starting_point}}",
3940
"bulk-size": {{p_bulk_size}},
4041
"daily_logging_volume": "{{p_daily_logging_volume}}",
4142
"number_of_days": {{p_number_of_days}},

0 commit comments

Comments
 (0)