{% set index_count = 3 %}
{
"version": 2,
"description": "max throughput with {{index_count}} index",
"indices": [
{% set comma = joiner() %}
{% for item in range(index_count) %}
{{ comma() }}
{
"name": "billions-jssz.benchmark.scene1-{{item}}",
"body": "settings/mapping.json",
"types": [ "logs" ]
}
{% endfor %}
],
...
when I want to change the number of indices,I have to rewrite the index_count at line 1. But I just want to change it by --track-params, just like: --track-params=params.json:
{
"index_count": 5
}
I am not good at Jinja, so how should I write the track.json,please?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.