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
| esrally --offline --distribution-version=7.2.0 --pipeline=benchmark-only --target-hosts=hosts:9200,hosts:9200,hosts:9200
压测数据过大,下载速度慢可以在网上找对应下载好的数据包 对于本地数据,需要修改/root/.rally/benchmarks/tracks/default/geonames/track.json文件 离线数据包在/root/.rally/benchmarks/data/geonames/documents-2.json {% import "rally.helpers" as rally with context %} { "version": 2, "description": "POIs from Geonames", "indices": [ { "name": "geonames", "body": "index.json" } ], "corpora": [ { "name": "geonames", "documents": [ { "source-file": "documents-2.json", "document-count": 11396505, "uncompressed-bytes": 3547614383 } ] } ], "operations": [ {{ rally.collect(parts="operations/*.json") }} ], "challenges": [ {{ rally.collect(parts="challenges/*.json") }} ] } 压测操作过多,可以修改/root/.rally/benchmarks/tracks/default/geonames/ 下challenges和operations文件夹下json文件
|