|
1 | 1 | {% set p_bulk_indexing_clients = (bulk_indexing_clients | default(20)) %}
|
2 |
| -{% set p_iterations = bulk_indexing_iterations | default(100000) %} |
| 2 | +{% set p_iterations = bulk_indexing_iterations | default(200000) %} |
3 | 3 | {% set p_iterations_per_client = (p_iterations / p_bulk_indexing_clients) | int %}
|
4 | 4 |
|
5 | 5 | {
|
6 | 6 | "name": "document_id_evaluation",
|
7 |
| - "description": "Index about 20GB of data into five single shard indices using different document ID types. IDs are autogenerated by Elasticsearch, meaning there are no conflicts.", |
| 7 | + "description": "Indexes about 40GB of data into seven single shard indices using different document ID types. IDs are autogenerated by Elasticsearch, meaning there are no conflicts.", |
8 | 8 | "meta": {
|
9 | 9 | "client_count": {{ p_bulk_indexing_clients }},
|
10 | 10 | "benchmark_type": "document-id-evaluation"
|
11 | 11 | },
|
12 | 12 | "schedule": [
|
| 13 | + {% for id in [{ 'type': 'auto', 'desc': 'auto' }, |
| 14 | + { 'type': 'uuid', 'desc': 'uuid' }, |
| 15 | + { 'type': 'sha1', 'desc': 'sha1' }, |
| 16 | + { 'type': 'epoch_uuid', 'desc': 'epoch_uuid' }, |
| 17 | + { 'type': 'epoch_md5', 'desc': 'epoch_md5'} ] %} |
13 | 18 | {
|
14 |
| - "name": "deleteindex_elasticlogs-auto", |
| 19 | + "name": "deleteindex_elasticlogs-{{ id['desc'] }}", |
15 | 20 | "operation": {
|
16 | 21 | "operation-type": "delete-index",
|
17 |
| - "index": "elasticlogs-auto" |
18 |
| - } |
19 |
| - }, |
20 |
| - { |
21 |
| - "name": "deleteindex_elasticlogs-uuid", |
22 |
| - "operation": { |
23 |
| - "operation-type": "delete-index", |
24 |
| - "index": "elasticlogs-uuid" |
25 |
| - } |
26 |
| - }, |
27 |
| - { |
28 |
| - "name": "deleteindex_elasticlogs-epoch-no_delay", |
29 |
| - "operation": { |
30 |
| - "operation-type": "delete-index", |
31 |
| - "index": "elasticlogs-epoch-no_delay" |
32 |
| - } |
33 |
| - }, |
34 |
| - { |
35 |
| - "name": "deleteindex_elasticlogs-epoch-10pct_60s", |
36 |
| - "operation": { |
37 |
| - "operation-type": "delete-index", |
38 |
| - "index": "elasticlogs-epoch-10pct_60s" |
39 |
| - } |
40 |
| - }, |
41 |
| - { |
42 |
| - "name": "deleteindex_elasticlogs-epoch-10pct_300s", |
43 |
| - "operation": { |
44 |
| - "operation-type": "delete-index", |
45 |
| - "index": "elasticlogs-epoch-10pct_300s" |
46 |
| - } |
| 22 | + "index": "elasticlogs-{{ id['desc'] }}" |
| 23 | + }, |
| 24 | + "include-in-reporting": false |
47 | 25 | },
|
48 | 26 | {
|
49 |
| - "name": "create_elasticlogs-auto", |
| 27 | + "name": "create_elasticlogs-{{ id['desc'] }}", |
50 | 28 | "operation": {
|
51 | 29 | "operation-type": "createindex",
|
52 |
| - "index_name": "elasticlogs-auto", |
| 30 | + "index_name": "elasticlogs-{{ id['desc'] }}", |
53 | 31 | "index_template_body": {
|
54 |
| - "template": "elasticlogs-auto", |
| 32 | + "template": "elasticlogs-{{ id['desc'] }}", |
55 | 33 | "settings": {
|
56 | 34 | "index.refresh_interval": "5s",
|
57 | 35 | "index.codec": "best_compression",
|
| 36 | + "index.translog.retention.size": "10mb", |
58 | 37 | "index.number_of_replicas": 0,
|
59 | 38 | "index.number_of_shards": 1
|
60 | 39 | },
|
61 | 40 | "mappings": "mappings.json",
|
62 | 41 | "aliases": {}
|
63 | 42 | },
|
64 |
| - "index_template_name": "elasticlogs-auto" |
65 |
| - } |
| 43 | + "index_template_name": "elasticlogs-{{ id['desc'] }}" |
| 44 | + }, |
| 45 | + "include-in-reporting": false |
66 | 46 | },
|
67 | 47 | {
|
68 |
| - "name": "index-append-1000-elasticlogs-auto", |
| 48 | + "name": "index-append-1000-elasticlogs-{{ id['desc'] }}", |
69 | 49 | "operation": {
|
70 | 50 | "operation-type": "bulk",
|
71 | 51 | "param-source": "elasticlogs_bulk",
|
72 |
| - "index": "elasticlogs-auto", |
73 |
| - "bulk-size": 1000 |
| 52 | + "index": "elasticlogs-{{ id['desc'] }}", |
| 53 | + "bulk-size": 1000, |
| 54 | + "id_type": "{{ id['type'] }}" |
74 | 55 | },
|
75 | 56 | "iterations": {{ p_iterations_per_client }},
|
76 | 57 | "clients": {{ p_bulk_indexing_clients }},
|
77 | 58 | "meta": {
|
78 |
| - "id_mode": "auto" |
| 59 | + "id_mode": "{{ id['desc'] }}" |
79 | 60 | }
|
80 | 61 | },
|
81 | 62 | {
|
82 |
| - "name": "create_elasticlogs-uuid", |
| 63 | + "name": "indicesstats-elasticlogs-{{ id['desc'] }}", |
83 | 64 | "operation": {
|
84 |
| - "operation-type": "createindex", |
85 |
| - "index_name": "elasticlogs-uuid", |
86 |
| - "index_template_body": { |
87 |
| - "template": "elasticlogs-uuid", |
88 |
| - "settings": { |
89 |
| - "index.refresh_interval": "5s", |
90 |
| - "index.codec": "best_compression", |
91 |
| - "index.number_of_replicas": 0, |
92 |
| - "index.number_of_shards": 1 |
93 |
| - }, |
94 |
| - "mappings": "mappings.json", |
95 |
| - "aliases": {} |
96 |
| - }, |
97 |
| - "index_template_name": "elasticlogs-uuid" |
98 |
| - } |
99 |
| - }, |
100 |
| - { |
101 |
| - "name": "index-append-1000-elasticlogs-uuid", |
102 |
| - "operation": { |
103 |
| - "operation-type": "bulk", |
104 |
| - "param-source": "elasticlogs_bulk", |
105 |
| - "index": "elasticlogs-uuid", |
106 |
| - "bulk-size": 1000, |
107 |
| - "id_type": "uuid" |
| 65 | + "operation-type": "indicesstats", |
| 66 | + "index_pattern": "elasticlogs-{{ id['desc'] }}" |
108 | 67 | },
|
109 |
| - "iterations": {{ p_iterations_per_client }}, |
110 |
| - "clients": {{ p_bulk_indexing_clients }}, |
111 | 68 | "meta": {
|
112 |
| - "id_mode": "uuid" |
| 69 | + "forcemerged": "no", |
| 70 | + "id_mode": "{{ id['desc'] }}" |
113 | 71 | }
|
114 | 72 | },
|
| 73 | + |
115 | 74 | {
|
116 |
| - "name": "create_elasticlogs-epoch-no_delay", |
| 75 | + "name": "force-merge-{{ id['desc'] }}", |
117 | 76 | "operation": {
|
118 |
| - "operation-type": "createindex", |
119 |
| - "index_name": "elasticlogs-epoch-no_delay", |
120 |
| - "index_template_body": { |
121 |
| - "template": "elasticlogs-epoch-no_delay", |
122 |
| - "settings": { |
123 |
| - "index.refresh_interval": "5s", |
124 |
| - "index.codec": "best_compression", |
125 |
| - "index.number_of_replicas": 0, |
126 |
| - "index.number_of_shards": 1 |
127 |
| - }, |
128 |
| - "mappings": "mappings.json", |
129 |
| - "aliases": {} |
130 |
| - }, |
131 |
| - "index_template_name": "elasticlogs-epoch-no_delay" |
132 |
| - } |
| 77 | + "operation-type": "force-merge", |
| 78 | + "max-num-segments": 1 |
| 79 | + }, |
| 80 | + "clients": 1 |
133 | 81 | },
|
134 |
| - { |
135 |
| - "name": "index-append-1000-elasticlogs-epoch-no_delay", |
| 82 | + { |
| 83 | + "name": "indicesstats-elasticlogs-fm-{{ id['desc'] }}", |
136 | 84 | "operation": {
|
137 |
| - "operation-type": "bulk", |
138 |
| - "param-source": "elasticlogs_bulk", |
139 |
| - "index": "elasticlogs-epoch-no_delay", |
140 |
| - "bulk-size": 1000, |
141 |
| - "id_type": "epoch_uuid" |
| 85 | + "operation-type": "indicesstats", |
| 86 | + "index_pattern": "elasticlogs-{{ id['desc'] }}" |
142 | 87 | },
|
143 |
| - "iterations": {{ p_iterations_per_client }}, |
144 |
| - "clients": {{ p_bulk_indexing_clients }}, |
145 | 88 | "meta": {
|
146 |
| - "id_mode": "epoch_uuid-no_delay" |
| 89 | + "forcemerged": "yes", |
| 90 | + "id_mode": "{{ id['desc'] }}" |
147 | 91 | }
|
148 | 92 | },
|
| 93 | + {% endfor %} |
| 94 | + {% for id in [{ 'type': 'epoch_md5', 'desc': 'epoch_md5-10pct_60s', 'delay': 60 }, |
| 95 | + { 'type': 'epoch_md5', 'desc': 'epoch_md5-10pct_300s', 'delay': 300 }] %} |
| 96 | + { |
| 97 | + "name": "deleteindex_elasticlogs-{{ id['desc'] }}", |
| 98 | + "operation": { |
| 99 | + "operation-type": "delete-index", |
| 100 | + "index": "elasticlogs-{{ id['desc'] }}" |
| 101 | + }, |
| 102 | + "include-in-reporting": false |
| 103 | + }, |
149 | 104 | {
|
150 |
| - "name": "create_elasticlogs-epoch-10pct_60s", |
| 105 | + "name": "create_elasticlogs-{{ id['desc'] }}", |
151 | 106 | "operation": {
|
152 | 107 | "operation-type": "createindex",
|
153 |
| - "index_name": "elasticlogs-epoch-10pct_60s", |
| 108 | + "index_name": "elasticlogs-{{ id['desc'] }}", |
154 | 109 | "index_template_body": {
|
155 |
| - "template": "elasticlogs-epoch-10pct_60s", |
| 110 | + "template": "elasticlogs-{{ id['desc'] }}", |
156 | 111 | "settings": {
|
157 | 112 | "index.refresh_interval": "5s",
|
158 | 113 | "index.codec": "best_compression",
|
| 114 | + "index.translog.retention.size": "10mb", |
159 | 115 | "index.number_of_replicas": 0,
|
160 | 116 | "index.number_of_shards": 1
|
161 | 117 | },
|
162 | 118 | "mappings": "mappings.json",
|
163 | 119 | "aliases": {}
|
164 | 120 | },
|
165 |
| - "index_template_name": "elasticlogs-epoch-10pct_60s" |
166 |
| - } |
| 121 | + "index_template_name": "elasticlogs-{{ id['desc'] }}" |
| 122 | + }, |
| 123 | + "include-in-reporting": false |
167 | 124 | },
|
168 | 125 | {
|
169 |
| - "name": "index-append-1000-elasticlogs-epoch-10pct_60s", |
| 126 | + "name": "index-append-1000-elasticlogs-{{ id['desc'] }}", |
170 | 127 | "operation": {
|
171 | 128 | "operation-type": "bulk",
|
172 | 129 | "param-source": "elasticlogs_bulk",
|
173 |
| - "index": "elasticlogs-epoch-10pct_60s", |
| 130 | + "index": "elasticlogs-{{ id['desc'] }}", |
174 | 131 | "bulk-size": 1000,
|
175 |
| - "id_type": "epoch_uuid", |
| 132 | + "id_type": "{{ id['type'] }}", |
176 | 133 | "id_delay_probability": 0.1,
|
177 |
| - "id_delay_secs": 60 |
| 134 | + "id_delay_secs": {{ id['delay'] }} |
178 | 135 | },
|
179 | 136 | "iterations": {{ p_iterations_per_client }},
|
180 | 137 | "clients": {{ p_bulk_indexing_clients }},
|
181 | 138 | "meta": {
|
182 |
| - "id_mode": "epoch_uuid-10pct/60s" |
| 139 | + "id_mode": "{{ id['desc'] }}" |
183 | 140 | }
|
184 | 141 | },
|
185 | 142 | {
|
186 |
| - "name": "create_elasticlogs-epoch-10pct_300s", |
| 143 | + "name": "indicesstats-elasticlogs-{{ id['desc'] }}", |
187 | 144 | "operation": {
|
188 |
| - "operation-type": "createindex", |
189 |
| - "index_name": "elasticlogs-epoch-10pct_300s", |
190 |
| - "index_template_body": { |
191 |
| - "template": "elasticlogs-epoch-10pct_300s", |
192 |
| - "settings": { |
193 |
| - "index.refresh_interval": "5s", |
194 |
| - "index.codec": "best_compression", |
195 |
| - "index.number_of_replicas": 0, |
196 |
| - "index.number_of_shards": 1 |
197 |
| - }, |
198 |
| - "mappings": "mappings.json", |
199 |
| - "aliases": {} |
200 |
| - }, |
201 |
| - "index_template_name": "elasticlogs-epoch-10pct_300s" |
| 145 | + "operation-type": "indicesstats", |
| 146 | + "index_pattern": "elasticlogs-{{ id['desc'] }}" |
| 147 | + }, |
| 148 | + "meta": { |
| 149 | + "forcemerged": "no", |
| 150 | + "id_mode": "{{ id['desc'] }}" |
202 | 151 | }
|
203 | 152 | },
|
| 153 | + |
204 | 154 | {
|
205 |
| - "name": "index-append-1000-elasticlogs-epoch-10pct_300s", |
| 155 | + "name": "force-merge-{{ id['desc'] }}", |
206 | 156 | "operation": {
|
207 |
| - "operation-type": "bulk", |
208 |
| - "param-source": "elasticlogs_bulk", |
209 |
| - "index": "elasticlogs-epoch-10pct_300s", |
210 |
| - "bulk-size": 1000, |
211 |
| - "id_type": "epoch_uuid", |
212 |
| - "id_delay_probability": 0.1, |
213 |
| - "id_delay_secs": 300 |
| 157 | + "operation-type": "force-merge", |
| 158 | + "max-num-segments": 1 |
| 159 | + }, |
| 160 | + "clients": 1 |
| 161 | + }, |
| 162 | + { |
| 163 | + "name": "indicesstats-elasticlogs-fm-{{ id['desc'] }}", |
| 164 | + "operation": { |
| 165 | + "operation-type": "indicesstats", |
| 166 | + "index_pattern": "elasticlogs-{{ id['desc'] }}" |
214 | 167 | },
|
215 |
| - "iterations": {{ p_iterations_per_client }}, |
216 |
| - "clients": {{ p_bulk_indexing_clients }}, |
217 | 168 | "meta": {
|
218 |
| - "id_mode": "epoch_uuid-10pct/300s" |
| 169 | + "forcemerged": "yes", |
| 170 | + "id_mode": "{{ id['desc'] }}" |
219 | 171 | }
|
| 172 | + }, |
| 173 | + {% endfor %} |
| 174 | + { |
| 175 | + "name": "refresh-final", |
| 176 | + "operation": "refresh", |
| 177 | + "iterations": 1, |
| 178 | + "clients": 1, |
| 179 | + "include-in-reporting": false |
220 | 180 | }
|
221 | 181 | ]
|
222 | 182 | }
|
0 commit comments