Skip to content

Commit 2c2350f

Browse files
Use proper index for bulk size evaluation
With this commit we specify an index template and use a matching index in all bulk-size evaluation challenges. Due to restrictions with the maximum number of clients we also reduce the number of concurrent clients from 200 to 100 in the concurrency challenge. Relates elastic#51
1 parent 135294f commit 2c2350f

File tree

2 files changed

+44
-63
lines changed

2 files changed

+44
-63
lines changed

eventdata/challenges/bulk-size-evaluation.json

+43-63
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,23 @@
1111
},
1212
"schedule": [
1313
{
14-
"operation": "delete-index"
14+
"operation": "deleteindex_elasticlogs"
15+
},
16+
{
17+
"operation": "delete-index-template"
18+
},
19+
{
20+
"operation": "create-index-template"
1521
},
1622
{
1723
"operation": {
1824
"operation-type": "create-index",
19-
"settings": {
20-
"index.number_of_replicas": {{ p_replica_count }},
21-
"index.number_of_shards": {{ p_shard_count }}
25+
"index": "elasticlogs",
26+
"body": {
27+
"settings": {
28+
"index.number_of_replicas": {{ p_replica_count }},
29+
"index.number_of_shards": {{ p_shard_count }}
30+
}
2231
}
2332
}
2433
},
@@ -87,11 +96,18 @@
8796
},
8897
"schedule": [
8998
{
90-
"operation": "delete-index"
99+
"operation": "deleteindex_elasticlogs"
100+
},
101+
{
102+
"operation": "delete-index-template"
103+
},
104+
{
105+
"operation": "create-index-template"
91106
},
92107
{
93108
"operation": {
94109
"operation-type": "create-index",
110+
"index": "elasticlogs",
95111
"settings": {
96112
"index.number_of_replicas": {{ p_replica_count }},
97113
"index.number_of_shards": {{ p_shard_count }}
@@ -114,89 +130,53 @@
114130
},
115131
{
116132
"name": "bulk-size-concurrency-evaluation",
117-
"description": "Indexes with different bulk sizes and number of connections (2, 20, and 200) while keeping the number of documents in flight constant. IDs are autogenerated by Elasticsearch, meaning there are no conflicts.",
133+
"description": "Indexes with different bulk sizes and number of connections (2, 20, and 100) while keeping the number of documents in flight constant. IDs are autogenerated by Elasticsearch, meaning there are no conflicts.",
118134
"meta": {
119135
"benchmark_type": "indexing_bulksize"
120136
},
121137
"schedule": [
122138
{
123-
"name": "delete-index-2clients",
124-
"operation": "delete-index"
125-
},
126-
{
127-
"name": "create-index-2clients",
128-
"operation": {
129-
"operation-type": "create-index",
130-
"settings": {
131-
"index.number_of_replicas": {{ p_replica_count }},
132-
"index.number_of_shards": {{ p_shard_count }}
133-
}
134-
}
135-
},
136-
{
137-
"name": "index-append-1000-2clients",
138-
"operation": {
139-
"operation-type": "bulk",
140-
"param-source": "elasticlogs_bulk",
141-
"bulk-size": 1000,
142-
"record_raw_event_size": {{p_record_raw_event_size}}
143-
},
144-
"warmup-time-period": 300,
145-
"time-period": 600,
146-
"clients": 2
147-
},
148-
{
149-
"name": "delete-index-20clients",
150-
"operation": "delete-index"
139+
"operation": "delete-index-template"
151140
},
152141
{
153-
"name": "create-index-20clients",
154-
"operation": {
155-
"operation-type": "create-index",
156-
"settings": {
157-
"index.number_of_replicas": {{ p_replica_count }},
158-
"index.number_of_shards": {{ p_shard_count }}
159-
}
160-
}
142+
"operation": "create-index-template"
161143
},
144+
{% set comma = joiner() %}
145+
{% for factor in [1, 10, 50] %}
146+
{{comma()}}
147+
{% set concurrency_evaluation_clients = 2 * factor %}
148+
{% set concurrency_evaluation_bulk_size = 1000 // factor %}
162149
{
163-
"name": "index-append-100-20clients",
164-
"operation": {
165-
"operation-type": "bulk",
166-
"param-source": "elasticlogs_bulk",
167-
"bulk-size": 100,
168-
"record_raw_event_size": {{p_record_raw_event_size}}
169-
},
170-
"warmup-time-period": 300,
171-
"time-period": 600,
172-
"clients": 20
173-
},
174-
{
175-
"name": "delete-index-200clients",
176-
"operation": "delete-index"
150+
"name": "delete-index-{{concurrency_evaluation_clients}}clients",
151+
"operation": "deleteindex_elasticlogs"
177152
},
178153
{
179-
"name": "create-index-200clients",
154+
"name": "create-index-{{concurrency_evaluation_clients}}clients",
180155
"operation": {
181156
"operation-type": "create-index",
182-
"settings": {
183-
"index.number_of_replicas": {{ p_replica_count }},
184-
"index.number_of_shards": {{ p_shard_count }}
157+
"index": "elasticlogs",
158+
"body": {
159+
"settings": {
160+
"index.number_of_replicas": {{ p_replica_count }},
161+
"index.number_of_shards": {{ p_shard_count }}
162+
}
185163
}
186164
}
187165
},
188166
{
189-
"name": "index-append-10-200clients",
167+
"name": "index-append-{{concurrency_evaluation_bulk_size}}-{{concurrency_evaluation_clients}}clients",
190168
"operation": {
191169
"operation-type": "bulk",
192170
"param-source": "elasticlogs_bulk",
193-
"bulk-size": 10,
171+
"index": "elasticlogs",
172+
"bulk-size": {{concurrency_evaluation_bulk_size}},
194173
"record_raw_event_size": {{p_record_raw_event_size}}
195174
},
196175
"warmup-time-period": 300,
197176
"time-period": 600,
198-
"clients": 200
177+
"clients": {{concurrency_evaluation_clients}}
199178
}
179+
{% endfor%}
200180
]
201181
}
202182

eventdata/operations/indexing.json

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ rolledover_indices_suffix_separator: used by the `delete_rolledover_index_patter
1414
"name": "index-append-{{bulk_size}}",
1515
"operation-type": "bulk",
1616
"param-source": "elasticlogs_bulk",
17+
"index": "elasticlogs",
1718
"bulk-size": {{bulk_size}},
1819
"record_raw_event_size": {{p_record_raw_event_size}}
1920
}

0 commit comments

Comments
 (0)