forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added epoch_md5 document ID type (elastic#28)
* Added epoch_md5 document id type * Updated README and added SHA1 id to the document id benchmark * Refactoring of document id challenge following review * Updated note about disk space requirements * Updated note about index size and disk space requirements * Updates following review
- Loading branch information
1 parent
aa3f097
commit f07365f
Showing
6 changed files
with
682 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,222 +1,182 @@ | ||
{% set p_bulk_indexing_clients = (bulk_indexing_clients | default(20)) %} | ||
{% set p_iterations = bulk_indexing_iterations | default(100000) %} | ||
{% set p_iterations = bulk_indexing_iterations | default(200000) %} | ||
{% set p_iterations_per_client = (p_iterations / p_bulk_indexing_clients) | int %} | ||
|
||
{ | ||
"name": "document_id_evaluation", | ||
"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.", | ||
"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.", | ||
"meta": { | ||
"client_count": {{ p_bulk_indexing_clients }}, | ||
"benchmark_type": "document-id-evaluation" | ||
}, | ||
"schedule": [ | ||
{% for id in [{ 'type': 'auto', 'desc': 'auto' }, | ||
{ 'type': 'uuid', 'desc': 'uuid' }, | ||
{ 'type': 'sha1', 'desc': 'sha1' }, | ||
{ 'type': 'epoch_uuid', 'desc': 'epoch_uuid' }, | ||
{ 'type': 'epoch_md5', 'desc': 'epoch_md5'} ] %} | ||
{ | ||
"name": "deleteindex_elasticlogs-auto", | ||
"name": "deleteindex_elasticlogs-{{ id['desc'] }}", | ||
"operation": { | ||
"operation-type": "delete-index", | ||
"index": "elasticlogs-auto" | ||
} | ||
}, | ||
{ | ||
"name": "deleteindex_elasticlogs-uuid", | ||
"operation": { | ||
"operation-type": "delete-index", | ||
"index": "elasticlogs-uuid" | ||
} | ||
}, | ||
{ | ||
"name": "deleteindex_elasticlogs-epoch-no_delay", | ||
"operation": { | ||
"operation-type": "delete-index", | ||
"index": "elasticlogs-epoch-no_delay" | ||
} | ||
}, | ||
{ | ||
"name": "deleteindex_elasticlogs-epoch-10pct_60s", | ||
"operation": { | ||
"operation-type": "delete-index", | ||
"index": "elasticlogs-epoch-10pct_60s" | ||
} | ||
}, | ||
{ | ||
"name": "deleteindex_elasticlogs-epoch-10pct_300s", | ||
"operation": { | ||
"operation-type": "delete-index", | ||
"index": "elasticlogs-epoch-10pct_300s" | ||
} | ||
"index": "elasticlogs-{{ id['desc'] }}" | ||
}, | ||
"include-in-reporting": false | ||
}, | ||
{ | ||
"name": "create_elasticlogs-auto", | ||
"name": "create_elasticlogs-{{ id['desc'] }}", | ||
"operation": { | ||
"operation-type": "createindex", | ||
"index_name": "elasticlogs-auto", | ||
"index_name": "elasticlogs-{{ id['desc'] }}", | ||
"index_template_body": { | ||
"template": "elasticlogs-auto", | ||
"template": "elasticlogs-{{ id['desc'] }}", | ||
"settings": { | ||
"index.refresh_interval": "5s", | ||
"index.codec": "best_compression", | ||
"index.translog.retention.size": "10mb", | ||
"index.number_of_replicas": 0, | ||
"index.number_of_shards": 1 | ||
}, | ||
"mappings": "mappings.json", | ||
"aliases": {} | ||
}, | ||
"index_template_name": "elasticlogs-auto" | ||
} | ||
"index_template_name": "elasticlogs-{{ id['desc'] }}" | ||
}, | ||
"include-in-reporting": false | ||
}, | ||
{ | ||
"name": "index-append-1000-elasticlogs-auto", | ||
"name": "index-append-1000-elasticlogs-{{ id['desc'] }}", | ||
"operation": { | ||
"operation-type": "bulk", | ||
"param-source": "elasticlogs_bulk", | ||
"index": "elasticlogs-auto", | ||
"bulk-size": 1000 | ||
"index": "elasticlogs-{{ id['desc'] }}", | ||
"bulk-size": 1000, | ||
"id_type": "{{ id['type'] }}" | ||
}, | ||
"iterations": {{ p_iterations_per_client }}, | ||
"clients": {{ p_bulk_indexing_clients }}, | ||
"meta": { | ||
"id_mode": "auto" | ||
"id_mode": "{{ id['desc'] }}" | ||
} | ||
}, | ||
{ | ||
"name": "create_elasticlogs-uuid", | ||
"name": "indicesstats-elasticlogs-{{ id['desc'] }}", | ||
"operation": { | ||
"operation-type": "createindex", | ||
"index_name": "elasticlogs-uuid", | ||
"index_template_body": { | ||
"template": "elasticlogs-uuid", | ||
"settings": { | ||
"index.refresh_interval": "5s", | ||
"index.codec": "best_compression", | ||
"index.number_of_replicas": 0, | ||
"index.number_of_shards": 1 | ||
}, | ||
"mappings": "mappings.json", | ||
"aliases": {} | ||
}, | ||
"index_template_name": "elasticlogs-uuid" | ||
} | ||
}, | ||
{ | ||
"name": "index-append-1000-elasticlogs-uuid", | ||
"operation": { | ||
"operation-type": "bulk", | ||
"param-source": "elasticlogs_bulk", | ||
"index": "elasticlogs-uuid", | ||
"bulk-size": 1000, | ||
"id_type": "uuid" | ||
"operation-type": "indicesstats", | ||
"index_pattern": "elasticlogs-{{ id['desc'] }}" | ||
}, | ||
"iterations": {{ p_iterations_per_client }}, | ||
"clients": {{ p_bulk_indexing_clients }}, | ||
"meta": { | ||
"id_mode": "uuid" | ||
"forcemerged": "no", | ||
"id_mode": "{{ id['desc'] }}" | ||
} | ||
}, | ||
|
||
{ | ||
"name": "create_elasticlogs-epoch-no_delay", | ||
"name": "force-merge-{{ id['desc'] }}", | ||
"operation": { | ||
"operation-type": "createindex", | ||
"index_name": "elasticlogs-epoch-no_delay", | ||
"index_template_body": { | ||
"template": "elasticlogs-epoch-no_delay", | ||
"settings": { | ||
"index.refresh_interval": "5s", | ||
"index.codec": "best_compression", | ||
"index.number_of_replicas": 0, | ||
"index.number_of_shards": 1 | ||
}, | ||
"mappings": "mappings.json", | ||
"aliases": {} | ||
}, | ||
"index_template_name": "elasticlogs-epoch-no_delay" | ||
} | ||
"operation-type": "force-merge", | ||
"max-num-segments": 1 | ||
}, | ||
"clients": 1 | ||
}, | ||
{ | ||
"name": "index-append-1000-elasticlogs-epoch-no_delay", | ||
{ | ||
"name": "indicesstats-elasticlogs-fm-{{ id['desc'] }}", | ||
"operation": { | ||
"operation-type": "bulk", | ||
"param-source": "elasticlogs_bulk", | ||
"index": "elasticlogs-epoch-no_delay", | ||
"bulk-size": 1000, | ||
"id_type": "epoch_uuid" | ||
"operation-type": "indicesstats", | ||
"index_pattern": "elasticlogs-{{ id['desc'] }}" | ||
}, | ||
"iterations": {{ p_iterations_per_client }}, | ||
"clients": {{ p_bulk_indexing_clients }}, | ||
"meta": { | ||
"id_mode": "epoch_uuid-no_delay" | ||
"forcemerged": "yes", | ||
"id_mode": "{{ id['desc'] }}" | ||
} | ||
}, | ||
{% endfor %} | ||
{% for id in [{ 'type': 'epoch_md5', 'desc': 'epoch_md5-10pct_60s', 'delay': 60 }, | ||
{ 'type': 'epoch_md5', 'desc': 'epoch_md5-10pct_300s', 'delay': 300 }] %} | ||
{ | ||
"name": "deleteindex_elasticlogs-{{ id['desc'] }}", | ||
"operation": { | ||
"operation-type": "delete-index", | ||
"index": "elasticlogs-{{ id['desc'] }}" | ||
}, | ||
"include-in-reporting": false | ||
}, | ||
{ | ||
"name": "create_elasticlogs-epoch-10pct_60s", | ||
"name": "create_elasticlogs-{{ id['desc'] }}", | ||
"operation": { | ||
"operation-type": "createindex", | ||
"index_name": "elasticlogs-epoch-10pct_60s", | ||
"index_name": "elasticlogs-{{ id['desc'] }}", | ||
"index_template_body": { | ||
"template": "elasticlogs-epoch-10pct_60s", | ||
"template": "elasticlogs-{{ id['desc'] }}", | ||
"settings": { | ||
"index.refresh_interval": "5s", | ||
"index.codec": "best_compression", | ||
"index.translog.retention.size": "10mb", | ||
"index.number_of_replicas": 0, | ||
"index.number_of_shards": 1 | ||
}, | ||
"mappings": "mappings.json", | ||
"aliases": {} | ||
}, | ||
"index_template_name": "elasticlogs-epoch-10pct_60s" | ||
} | ||
"index_template_name": "elasticlogs-{{ id['desc'] }}" | ||
}, | ||
"include-in-reporting": false | ||
}, | ||
{ | ||
"name": "index-append-1000-elasticlogs-epoch-10pct_60s", | ||
"name": "index-append-1000-elasticlogs-{{ id['desc'] }}", | ||
"operation": { | ||
"operation-type": "bulk", | ||
"param-source": "elasticlogs_bulk", | ||
"index": "elasticlogs-epoch-10pct_60s", | ||
"index": "elasticlogs-{{ id['desc'] }}", | ||
"bulk-size": 1000, | ||
"id_type": "epoch_uuid", | ||
"id_type": "{{ id['type'] }}", | ||
"id_delay_probability": 0.1, | ||
"id_delay_secs": 60 | ||
"id_delay_secs": {{ id['delay'] }} | ||
}, | ||
"iterations": {{ p_iterations_per_client }}, | ||
"clients": {{ p_bulk_indexing_clients }}, | ||
"meta": { | ||
"id_mode": "epoch_uuid-10pct/60s" | ||
"id_mode": "{{ id['desc'] }}" | ||
} | ||
}, | ||
{ | ||
"name": "create_elasticlogs-epoch-10pct_300s", | ||
"name": "indicesstats-elasticlogs-{{ id['desc'] }}", | ||
"operation": { | ||
"operation-type": "createindex", | ||
"index_name": "elasticlogs-epoch-10pct_300s", | ||
"index_template_body": { | ||
"template": "elasticlogs-epoch-10pct_300s", | ||
"settings": { | ||
"index.refresh_interval": "5s", | ||
"index.codec": "best_compression", | ||
"index.number_of_replicas": 0, | ||
"index.number_of_shards": 1 | ||
}, | ||
"mappings": "mappings.json", | ||
"aliases": {} | ||
}, | ||
"index_template_name": "elasticlogs-epoch-10pct_300s" | ||
"operation-type": "indicesstats", | ||
"index_pattern": "elasticlogs-{{ id['desc'] }}" | ||
}, | ||
"meta": { | ||
"forcemerged": "no", | ||
"id_mode": "{{ id['desc'] }}" | ||
} | ||
}, | ||
|
||
{ | ||
"name": "index-append-1000-elasticlogs-epoch-10pct_300s", | ||
"name": "force-merge-{{ id['desc'] }}", | ||
"operation": { | ||
"operation-type": "bulk", | ||
"param-source": "elasticlogs_bulk", | ||
"index": "elasticlogs-epoch-10pct_300s", | ||
"bulk-size": 1000, | ||
"id_type": "epoch_uuid", | ||
"id_delay_probability": 0.1, | ||
"id_delay_secs": 300 | ||
"operation-type": "force-merge", | ||
"max-num-segments": 1 | ||
}, | ||
"clients": 1 | ||
}, | ||
{ | ||
"name": "indicesstats-elasticlogs-fm-{{ id['desc'] }}", | ||
"operation": { | ||
"operation-type": "indicesstats", | ||
"index_pattern": "elasticlogs-{{ id['desc'] }}" | ||
}, | ||
"iterations": {{ p_iterations_per_client }}, | ||
"clients": {{ p_bulk_indexing_clients }}, | ||
"meta": { | ||
"id_mode": "epoch_uuid-10pct/300s" | ||
"forcemerged": "yes", | ||
"id_mode": "{{ id['desc'] }}" | ||
} | ||
}, | ||
{% endfor %} | ||
{ | ||
"name": "refresh-final", | ||
"operation": "refresh", | ||
"iterations": 1, | ||
"clients": 1, | ||
"include-in-reporting": false | ||
} | ||
] | ||
} |
Oops, something went wrong.