Setting Esrally Parameters
Setting index.json
- Open the JSON file.
1vi benchmarks/tracks/default/geonames/index.json - Press i to enter the insert mode and edit the file as follows:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
{ "settings": { "index.number_of_replicas": 0 }, "mappings": { "docs": { "dynamic": "strict", "properties": { "geonameid": { "type": "long" }, "name": { "type": "text" }, "latitude": { "type": "double" }, "longitude": { "type": "double" }, "country_code": { "type": "text" }, "population": { "type": "long" } } } } }
- Press Esc, type :wq!, and press Enter to save the file and exit.
Setting track.json
- Query the values of the preceding parameters in the track.json file.Add the values to the corresponding positions in the JSON file.
1wc benchmarks/data/geonames/documents.json
- Open the JSON file.
1vi benchmarks/tracks/default/geonames/track.json - Press i to enter the insert mode and edit the file as follows:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
{ "version": 2, "description": "Tutorial benchmark for Rally", "indices": [ { "name": "geonames", "body": "index.json", "types": [ "docs" ] } ], "corpora": [ { "name": "geonames", "documents": [ { "source-file": "documents.json", "document-count": 11658903, "uncompressed-bytes": 1544799789 } ] } ], "schedule": [ { "operation": { "operation-type": "delete-index" } }, { "operation": { "operation-type": "create-index" } }, { "operation": { "operation-type": "cluster-health", "request-params": { "wait_for_status": "green" } } }, { "operation": { "operation-type": "bulk", "bulk-size": 5000 }, "warmup-time-period": 120, "clients": 8 }, { "operation": { "operation-type": "force-merge" } }, { "operation": { "name": "query-match-all", "operation-type": "search", "body": { "query": { "match_all": {} } } }, "clients": 8, "warmup-iterations": 1000, "iterations": 1000, "target-throughput": 100 } ] }
The values of some parameters in the track.json file are as follows:
- source-file: name of the generated data set
- document-count: number of rows in the data set
- uncompressed-bytes: size of the data file, in bytes
- Press Esc, type :wq!, and press Enter to save the file and exit.
Parent topic: Esrally Usage Guidance (for Elasticsearch)