|
5 | 5 |
|
6 | 6 | {
|
7 | 7 | "name": "large-shard-sizing",
|
8 |
| - "description": "Index data into a single shard ~25Gb at a time (up to a total of ~300GB), then record index statistics and run a number of queries against the shard. IDs are based on UUIDs or autogenerated by Elasticsearch, meaning there are no conflicts.", |
| 8 | + "description": "Index data into a single shard ~25Gb at a time (up to a total of ~300GB), then record index statistics and run a number of queries against the shard. IDs are autogenerated by Elasticsearch, meaning there are no conflicts.", |
9 | 9 | "meta": {
|
10 | 10 | "client_count": {{ p_bulk_indexing_clients }},
|
11 | 11 | "benchmark_type": "large-shard-sizing",
|
|
40 | 40 | "index_template_name": "elasticlogs-auto"
|
41 | 41 | }
|
42 | 42 | },
|
43 |
| - { |
44 |
| - "name": "deleteindex-elasticlogs-uuid", |
45 |
| - "operation": { |
46 |
| - "operation-type": "delete-index", |
47 |
| - "index": "elasticlogs-uuid" |
48 |
| - } |
49 |
| - }, |
50 |
| - { |
51 |
| - "name": "createindex-elasticlogs-uuid", |
52 |
| - "operation": { |
53 |
| - "operation-type": "createindex", |
54 |
| - "index_name": "elasticlogs-uuid", |
55 |
| - "index_template_body": { |
56 |
| - "template": "elasticlogs-uuid", |
57 |
| - "settings": { |
58 |
| - "index.refresh_interval": "5s", |
59 |
| - "index.codec": "best_compression", |
60 |
| - "index.number_of_replicas": 0, |
61 |
| - "index.number_of_shards": 1 |
62 |
| - }, |
63 |
| - "mappings": |
64 |
| - {% include "mappings.json" %} |
65 |
| - , |
66 |
| - "aliases": {} |
67 |
| - }, |
68 |
| - "index_template_name": "elasticlogs-uuid" |
69 |
| - } |
70 |
| - }, |
71 | 43 | {% for p_multiple in range(1, 13) %}
|
72 | 44 | {% set p_size = p_multiple * 25 %}
|
73 | 45 | {
|
|
76 | 48 | "operation-type": "bulk",
|
77 | 49 | "param-source": "elasticlogs_bulk",
|
78 | 50 | "index": "elasticlogs-auto",
|
79 |
| - "bulk-size": 1000 |
| 51 | + "bulk-size": 1000, |
| 52 | + "id_type": "auto" |
80 | 53 | },
|
81 | 54 | "iterations": {{ p_ops_per_client }},
|
82 | 55 | "clients": {{ p_bulk_indexing_clients }},
|
|
87 | 60 | },
|
88 | 61 | {
|
89 | 62 | "name": "refresh-auto-{{ p_size }}",
|
90 |
| - "operation": { |
91 |
| - "operation-type": "raw-request", |
92 |
| - "method": "POST", |
93 |
| - "path": "/elasticlogs-auto/_refresh" |
94 |
| - }, |
| 63 | + "operation": "refresh", |
95 | 64 | "iterations": 1,
|
96 | 65 | "clients": 1
|
97 | 66 | },
|
|
103 | 72 | },
|
104 | 73 | "meta": {
|
105 | 74 | "id_mode": "auto",
|
106 |
| - "shard_size": {{ p_size }} |
| 75 | + "shard_size": {{ p_size }} |
107 | 76 | }
|
108 | 77 | },
|
109 | 78 | {
|
|
181 | 150 | }
|
182 | 151 | },
|
183 | 152 | {% endfor %}
|
184 |
| - {% for p_multiple in range(1, 13) %} |
185 |
| - {% set p_size = p_multiple * 25 %} |
186 | 153 | {
|
187 |
| - "name": "index-append-1000-uuid-{{ p_size }}", |
| 154 | + "name": "refresh-final", |
| 155 | + "operation": "refresh", |
| 156 | + "iterations": 1, |
| 157 | + "clients": 1 |
| 158 | + } |
| 159 | + ] |
| 160 | +}, |
| 161 | +{ |
| 162 | + "name": "large-shard-id-type-evaluation", |
| 163 | + "description": "Index data into a number of ~25Gb single shard indices with different document ID types, then record index statistics to allow size and memory usage comparisons. IDs are based on UUIDs or autogenerated by Elasticsearch, meaning there are no conflicts.", |
| 164 | + "meta": { |
| 165 | + "client_count": {{ p_bulk_indexing_clients }}, |
| 166 | + "benchmark_type": "large-shard-sizing", |
| 167 | + "version": 2 |
| 168 | + }, |
| 169 | + "schedule": [ |
| 170 | + {% for id_type in ['auto', 'uuid', 'epoch_uuid', 'sha1', 'sha256', 'sha384', 'sha512'] %} |
| 171 | + { |
| 172 | + "name": "deleteindex-elasticlogs-{{ id_type }}", |
188 | 173 | "operation": {
|
189 |
| - "operation-type": "bulk", |
190 |
| - "param-source": "elasticlogs_bulk", |
191 |
| - "index": "elasticlogs-uuid", |
192 |
| - "bulk-size": 1000 |
193 |
| - }, |
194 |
| - "iterations": {{ p_ops_per_client }}, |
195 |
| - "clients": {{ p_bulk_indexing_clients }}, |
196 |
| - "meta": { |
197 |
| - "id_mode": "uuid", |
198 |
| - "shard_size": {{ p_size }} |
| 174 | + "operation-type": "delete-index", |
| 175 | + "index": "elasticlogs-{{ id_type }}" |
199 | 176 | }
|
200 | 177 | },
|
201 | 178 | {
|
202 |
| - "name": "refresh-uuid-{{ p_size }}", |
| 179 | + "name": "createindex-elasticlogs-{{ id_type }}", |
203 | 180 | "operation": {
|
204 |
| - "operation-type": "raw-request", |
205 |
| - "method": "POST", |
206 |
| - "path": "/elasticlogs-uuid/_refresh" |
207 |
| - }, |
208 |
| - "iterations": 1, |
209 |
| - "clients": 1 |
| 181 | + "operation-type": "createindex", |
| 182 | + "index_name": "elasticlogs-{{ id_type }}", |
| 183 | + "index_template_body": { |
| 184 | + "template": "elasticlogs-{{ id_type }}", |
| 185 | + "settings": { |
| 186 | + "index.refresh_interval": "5s", |
| 187 | + "index.codec": "best_compression", |
| 188 | + "index.number_of_replicas": 0, |
| 189 | + "index.number_of_shards": 1 |
| 190 | + }, |
| 191 | + "mappings": |
| 192 | + {% include "mappings.json" %} |
| 193 | + , |
| 194 | + "aliases": {} |
| 195 | + }, |
| 196 | + "index_template_name": "elasticlogs-{{ id_type }}" |
| 197 | + } |
210 | 198 | },
|
211 | 199 | {
|
212 |
| - "name": "indicesstats-elasticlogs-uuid-{{ p_size }}", |
| 200 | + "name": "index-append-1000-{{ id_type }}", |
213 | 201 | "operation": {
|
214 |
| - "operation-type": "indicesstats", |
215 |
| - "index_pattern": "elasticlogs-uuid" |
| 202 | + "operation-type": "bulk", |
| 203 | + "param-source": "elasticlogs_bulk", |
| 204 | + "index": "elasticlogs-{{ id_type }}", |
| 205 | + "bulk-size": 1000, |
| 206 | + "id_type": "{{ id_type }}" |
216 | 207 | },
|
| 208 | + "iterations": {{ p_ops_per_client }}, |
| 209 | + "clients": {{ p_bulk_indexing_clients }}, |
217 | 210 | "meta": {
|
218 |
| - "id_mode": "uuid", |
219 |
| - "shard_size": {{ p_size }} |
| 211 | + "id_mode": "{{ id_type }}" |
220 | 212 | }
|
221 | 213 | },
|
222 | 214 | {
|
223 |
| - "name": "fieldstats-elasticlogs-uuid-{{ p_size }}", |
224 |
| - "operation": { |
225 |
| - "operation-type": "fieldstats", |
226 |
| - "index_pattern": "elasticlogs-uuid" |
227 |
| - }, |
228 |
| - "warmup-iterations": 1, |
229 |
| - "iterations": 1, |
230 |
| - "clients": {{ p_bulk_indexing_clients }} |
231 |
| - }, |
232 |
| - { |
233 |
| - "name": "clear-caches-uuid-{{ p_size }}", |
234 |
| - "operation": { |
235 |
| - "operation-type": "raw-request", |
236 |
| - "method": "POST", |
237 |
| - "path": "/_cache/clear" |
238 |
| - }, |
| 215 | + "name": "refresh-{{ id_type }}", |
| 216 | + "operation": "refresh", |
239 | 217 | "iterations": 1,
|
240 | 218 | "clients": 1
|
241 | 219 | },
|
242 |
| - { |
243 |
| - "name": "kibana-content_issues-50%-uuid-{{ p_size }}", |
244 |
| - "operation": { |
245 |
| - "operation-type": "kibana", |
246 |
| - "param-source": "elasticlogs_kibana", |
247 |
| - "dashboard": "content_issues", |
248 |
| - "index_pattern": "elasticlogs-uuid", |
249 |
| - "query_string": ["*"], |
250 |
| - "window_end": "START+50%,END", |
251 |
| - "window_length": "50%" |
252 |
| - }, |
253 |
| - "iterations": {{ p_query_iterations }}, |
254 |
| - "clients": 1, |
255 |
| - "meta": { |
256 |
| - "id_mode": "uuid", |
257 |
| - "shard_size": {{ p_size }} |
258 |
| - } |
259 |
| - }, |
260 |
| - { |
261 |
| - "name": "kibana-traffic-25%-uuid-{{ p_size }}", |
262 |
| - "operation": { |
263 |
| - "operation-type": "kibana", |
264 |
| - "param-source": "elasticlogs_kibana", |
265 |
| - "dashboard": "traffic", |
266 |
| - "index_pattern": "elasticlogs-uuid", |
267 |
| - "query_string": ["*"], |
268 |
| - "window_end": "START+25%,END", |
269 |
| - "window_length": "25%" |
270 |
| - }, |
271 |
| - "iterations": {{ p_query_iterations }}, |
272 |
| - "clients": 1, |
273 |
| - "meta": { |
274 |
| - "id_mode": "uuid", |
275 |
| - "shard_size": {{ p_size }} |
276 |
| - } |
277 |
| - }, |
278 |
| - { |
279 |
| - "name": "kibana-discover-50%-uuid-{{ p_size }}", |
| 220 | + { |
| 221 | + "name": "indicesstats-elasticlogs-{{ id_type }}", |
280 | 222 | "operation": {
|
281 |
| - "operation-type": "kibana", |
282 |
| - "param-source": "elasticlogs_kibana", |
283 |
| - "dashboard": "discover", |
284 |
| - "index_pattern": "elasticlogs-uuid", |
285 |
| - "query_string": ["*"], |
286 |
| - "window_end": "START+50%,END", |
287 |
| - "window_length": "50%" |
| 223 | + "operation-type": "indicesstats", |
| 224 | + "index_pattern": "elasticlogs-{{ id_type }}" |
288 | 225 | },
|
289 |
| - "iterations": {{ p_query_iterations }}, |
290 |
| - "clients": 1, |
291 | 226 | "meta": {
|
292 |
| - "id_mode": "uuid", |
293 |
| - "shard_size": {{ p_size }} |
| 227 | + "id_mode": "{{ id_type }}" |
294 | 228 | }
|
295 | 229 | },
|
296 |
| - {% endfor %} |
| 230 | + {% endfor %} |
297 | 231 | {
|
298 | 232 | "name": "refresh-final",
|
299 |
| - "operation": { |
300 |
| - "operation-type": "raw-request", |
301 |
| - "method": "POST", |
302 |
| - "path": "/elasticlogs-*/_refresh" |
303 |
| - }, |
| 233 | + "operation": "refresh", |
304 | 234 | "iterations": 1,
|
305 | 235 | "clients": 1
|
306 | 236 | }
|
307 | 237 | ]
|
308 | 238 | }
|
| 239 | + |
0 commit comments