|
11 | 11 | },
|
12 | 12 | "schedule": [
|
13 | 13 | {
|
14 |
| - "operation": "delete-index" |
| 14 | + "operation": "deleteindex_elasticlogs" |
| 15 | + }, |
| 16 | + { |
| 17 | + "operation": "delete-index-template" |
| 18 | + }, |
| 19 | + { |
| 20 | + "operation": "create-index-template" |
15 | 21 | },
|
16 | 22 | {
|
17 | 23 | "operation": {
|
18 | 24 | "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 | + } |
22 | 31 | }
|
23 | 32 | }
|
24 | 33 | },
|
|
87 | 96 | },
|
88 | 97 | "schedule": [
|
89 | 98 | {
|
90 |
| - "operation": "delete-index" |
| 99 | + "operation": "deleteindex_elasticlogs" |
| 100 | + }, |
| 101 | + { |
| 102 | + "operation": "delete-index-template" |
| 103 | + }, |
| 104 | + { |
| 105 | + "operation": "create-index-template" |
91 | 106 | },
|
92 | 107 | {
|
93 | 108 | "operation": {
|
94 | 109 | "operation-type": "create-index",
|
| 110 | + "index": "elasticlogs", |
95 | 111 | "settings": {
|
96 | 112 | "index.number_of_replicas": {{ p_replica_count }},
|
97 | 113 | "index.number_of_shards": {{ p_shard_count }}
|
|
114 | 130 | },
|
115 | 131 | {
|
116 | 132 | "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.", |
118 | 134 | "meta": {
|
119 | 135 | "benchmark_type": "indexing_bulksize"
|
120 | 136 | },
|
121 | 137 | "schedule": [
|
122 | 138 | {
|
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" |
151 | 140 | },
|
152 | 141 | {
|
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" |
161 | 143 | },
|
| 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 %} |
162 | 149 | {
|
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" |
177 | 152 | },
|
178 | 153 | {
|
179 |
| - "name": "create-index-200clients", |
| 154 | + "name": "create-index-{{concurrency_evaluation_clients}}clients", |
180 | 155 | "operation": {
|
181 | 156 | "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 | + } |
185 | 163 | }
|
186 | 164 | }
|
187 | 165 | },
|
188 | 166 | {
|
189 |
| - "name": "index-append-10-200clients", |
| 167 | + "name": "index-append-{{concurrency_evaluation_bulk_size}}-{{concurrency_evaluation_clients}}clients", |
190 | 168 | "operation": {
|
191 | 169 | "operation-type": "bulk",
|
192 | 170 | "param-source": "elasticlogs_bulk",
|
193 |
| - "bulk-size": 10, |
| 171 | + "index": "elasticlogs", |
| 172 | + "bulk-size": {{concurrency_evaluation_bulk_size}}, |
194 | 173 | "record_raw_event_size": {{p_record_raw_event_size}}
|
195 | 174 | },
|
196 | 175 | "warmup-time-period": 300,
|
197 | 176 | "time-period": 600,
|
198 |
| - "clients": 200 |
| 177 | + "clients": {{concurrency_evaluation_clients}} |
199 | 178 | }
|
| 179 | +{% endfor%} |
200 | 180 | ]
|
201 | 181 | }
|
202 | 182 |
|
0 commit comments