|
| 1 | +{% set p_bulk_indexing_clients = (bulk_indexing_clients | default(20)) %} |
| 2 | +{% set p_iterations = bulk_indexing_iterations | default(100000) %} |
| 3 | +{% set p_iterations_per_client = (p_iterations / p_bulk_indexing_clients) | int %} |
| 4 | + |
| 5 | +{ |
| 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.", |
| 8 | + "meta": { |
| 9 | + "client_count": {{ p_bulk_indexing_clients }}, |
| 10 | + "benchmark_type": "document-id-evaluation" |
| 11 | + }, |
| 12 | + "schedule": [ |
| 13 | + { |
| 14 | + "name": "deleteindex_elasticlogs-auto", |
| 15 | + "operation": { |
| 16 | + "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 | + } |
| 47 | + }, |
| 48 | + { |
| 49 | + "name": "create_elasticlogs-auto", |
| 50 | + "operation": { |
| 51 | + "operation-type": "createindex", |
| 52 | + "index_name": "elasticlogs-auto", |
| 53 | + "index_template_body": { |
| 54 | + "template": "elasticlogs-auto", |
| 55 | + "settings": { |
| 56 | + "index.refresh_interval": "5s", |
| 57 | + "index.codec": "best_compression", |
| 58 | + "index.number_of_replicas": 0, |
| 59 | + "index.number_of_shards": 1 |
| 60 | + }, |
| 61 | + "mappings": |
| 62 | + {% include "mappings.json" %} |
| 63 | + , |
| 64 | + "aliases": {} |
| 65 | + }, |
| 66 | + "index_template_name": "elasticlogs-auto" |
| 67 | + } |
| 68 | + }, |
| 69 | + { |
| 70 | + "name": "index-append-1000-elasticlogs-auto", |
| 71 | + "operation": { |
| 72 | + "operation-type": "bulk", |
| 73 | + "param-source": "elasticlogs_bulk", |
| 74 | + "index": "elasticlogs-auto", |
| 75 | + "bulk-size": 1000 |
| 76 | + }, |
| 77 | + "iterations": {{ p_iterations_per_client }}, |
| 78 | + "clients": {{ p_bulk_indexing_clients }}, |
| 79 | + "meta": { |
| 80 | + "id_mode": "auto" |
| 81 | + } |
| 82 | + }, |
| 83 | + { |
| 84 | + "name": "create_elasticlogs-uuid", |
| 85 | + "operation": { |
| 86 | + "operation-type": "createindex", |
| 87 | + "index_name": "elasticlogs-uuid", |
| 88 | + "index_template_body": { |
| 89 | + "template": "elasticlogs-uuid", |
| 90 | + "settings": { |
| 91 | + "index.refresh_interval": "5s", |
| 92 | + "index.codec": "best_compression", |
| 93 | + "index.number_of_replicas": 0, |
| 94 | + "index.number_of_shards": 1 |
| 95 | + }, |
| 96 | + "mappings": |
| 97 | + {% include "mappings.json" %} |
| 98 | + , |
| 99 | + "aliases": {} |
| 100 | + }, |
| 101 | + "index_template_name": "elasticlogs-uuid" |
| 102 | + } |
| 103 | + }, |
| 104 | + { |
| 105 | + "name": "index-append-1000-elasticlogs-uuid", |
| 106 | + "operation": { |
| 107 | + "operation-type": "bulk", |
| 108 | + "param-source": "elasticlogs_bulk", |
| 109 | + "index": "elasticlogs-uuid", |
| 110 | + "bulk-size": 1000, |
| 111 | + "id_type": "uuid" |
| 112 | + }, |
| 113 | + "iterations": {{ p_iterations_per_client }}, |
| 114 | + "clients": {{ p_bulk_indexing_clients }}, |
| 115 | + "meta": { |
| 116 | + "id_mode": "uuid" |
| 117 | + } |
| 118 | + }, |
| 119 | + { |
| 120 | + "name": "create_elasticlogs-epoch-no_delay", |
| 121 | + "operation": { |
| 122 | + "operation-type": "createindex", |
| 123 | + "index_name": "elasticlogs-epoch-no_delay", |
| 124 | + "index_template_body": { |
| 125 | + "template": "elasticlogs-epoch-no_delay", |
| 126 | + "settings": { |
| 127 | + "index.refresh_interval": "5s", |
| 128 | + "index.codec": "best_compression", |
| 129 | + "index.number_of_replicas": 0, |
| 130 | + "index.number_of_shards": 1 |
| 131 | + }, |
| 132 | + "mappings": |
| 133 | + {% include "mappings.json" %} |
| 134 | + , |
| 135 | + "aliases": {} |
| 136 | + }, |
| 137 | + "index_template_name": "elasticlogs-epoch-no_delay" |
| 138 | + } |
| 139 | + }, |
| 140 | + { |
| 141 | + "name": "index-append-1000-elasticlogs-epoch-no_delay", |
| 142 | + "operation": { |
| 143 | + "operation-type": "bulk", |
| 144 | + "param-source": "elasticlogs_bulk", |
| 145 | + "index": "elasticlogs-epoch-no_delay", |
| 146 | + "bulk-size": 1000, |
| 147 | + "id_type": "epoch_uuid" |
| 148 | + }, |
| 149 | + "iterations": {{ p_iterations_per_client }}, |
| 150 | + "clients": {{ p_bulk_indexing_clients }}, |
| 151 | + "meta": { |
| 152 | + "id_mode": "epoch_uuid-no_delay" |
| 153 | + } |
| 154 | + }, |
| 155 | + { |
| 156 | + "name": "create_elasticlogs-epoch-10pct_60s", |
| 157 | + "operation": { |
| 158 | + "operation-type": "createindex", |
| 159 | + "index_name": "elasticlogs-epoch-10pct_60s", |
| 160 | + "index_template_body": { |
| 161 | + "template": "elasticlogs-epoch-10pct_60s", |
| 162 | + "settings": { |
| 163 | + "index.refresh_interval": "5s", |
| 164 | + "index.codec": "best_compression", |
| 165 | + "index.number_of_replicas": 0, |
| 166 | + "index.number_of_shards": 1 |
| 167 | + }, |
| 168 | + "mappings": |
| 169 | + {% include "mappings.json" %} |
| 170 | + , |
| 171 | + "aliases": {} |
| 172 | + }, |
| 173 | + "index_template_name": "elasticlogs-epoch-10pct_60s" |
| 174 | + } |
| 175 | + }, |
| 176 | + { |
| 177 | + "name": "index-append-1000-elasticlogs-epoch-10pct_60s", |
| 178 | + "operation": { |
| 179 | + "operation-type": "bulk", |
| 180 | + "param-source": "elasticlogs_bulk", |
| 181 | + "index": "elasticlogs-epoch-10pct_60s", |
| 182 | + "bulk-size": 1000, |
| 183 | + "id_type": "epoch_uuid", |
| 184 | + "id_delay_probability": 0.1, |
| 185 | + "id_delay_secs": 60 |
| 186 | + }, |
| 187 | + "iterations": {{ p_iterations_per_client }}, |
| 188 | + "clients": {{ p_bulk_indexing_clients }}, |
| 189 | + "meta": { |
| 190 | + "id_mode": "epoch_uuid-10pct/60s" |
| 191 | + } |
| 192 | + }, |
| 193 | + { |
| 194 | + "name": "create_elasticlogs-epoch-10pct_300s", |
| 195 | + "operation": { |
| 196 | + "operation-type": "createindex", |
| 197 | + "index_name": "elasticlogs-epoch-10pct_300s", |
| 198 | + "index_template_body": { |
| 199 | + "template": "elasticlogs-epoch-10pct_300s", |
| 200 | + "settings": { |
| 201 | + "index.refresh_interval": "5s", |
| 202 | + "index.codec": "best_compression", |
| 203 | + "index.number_of_replicas": 0, |
| 204 | + "index.number_of_shards": 1 |
| 205 | + }, |
| 206 | + "mappings": |
| 207 | + {% include "mappings.json" %} |
| 208 | + , |
| 209 | + "aliases": {} |
| 210 | + }, |
| 211 | + "index_template_name": "elasticlogs-epoch-10pct_300s" |
| 212 | + } |
| 213 | + }, |
| 214 | + { |
| 215 | + "name": "index-append-1000-elasticlogs-epoch-10pct_300s", |
| 216 | + "operation": { |
| 217 | + "operation-type": "bulk", |
| 218 | + "param-source": "elasticlogs_bulk", |
| 219 | + "index": "elasticlogs-epoch-10pct_300s", |
| 220 | + "bulk-size": 1000, |
| 221 | + "id_type": "epoch_uuid", |
| 222 | + "id_delay_probability": 0.1, |
| 223 | + "id_delay_secs": 300 |
| 224 | + }, |
| 225 | + "iterations": {{ p_iterations_per_client }}, |
| 226 | + "clients": {{ p_bulk_indexing_clients }}, |
| 227 | + "meta": { |
| 228 | + "id_mode": "epoch_uuid-10pct/300s" |
| 229 | + } |
| 230 | + } |
| 231 | + ] |
| 232 | +} |
0 commit comments