提问:布和纸怕什么?

rally 如何制定 index settings 进行压测???

Elasticsearch | 作者 k3v8ns | 发布于2020年04月01日 | 阅读数:1440

正如标题所述:
1, 在rally-tracks/geonames/challenges/default.json 支持 index_settings 参数传递.
```json
{
"operation": {
"operation-type": "create-index",
"settings": {{index_settings | default({}) | tojson}}
}
}
```
2. 正如 readme 所说:
`index_settings`: A list of index settings. Index settings defined elsewhere (e.g. `number_of_replicas`) need to be overridden explicitly.

运行状态:

base) [root@rally ~]# esrally --track=geonames --track-params=index_settings:'{"index.requests.cache.enable": true}'

____ ____
/ __ \____ _/ / /_ __
/ /_/ / __ `/ / / / / /
/ _, _/ /_/ / / / /_/ /
/_/ |_|\__,_/_/_/\__, /
/____/

Traceback (most recent call last):
File "/root/miniconda3/bin/esrally", line 8, in <module>
sys.exit(main())
File "/root/miniconda3/lib/python3.7/site-packages/esrally/rally.py", line 632, in main
cfg.add(config.Scope.applicationOverride, "track", "params", opts.to_dict(args.track_params))
File "/root/miniconda3/lib/python3.7/site-packages/esrally/utils/opts.py", line 84, in to_dict
return default_parser(csv_to_list(arg))
File "/root/miniconda3/lib/python3.7/site-packages/esrally/utils/opts.py", line 71, in kv_to_map
k, v = kv.split(":")
ValueError: too many values to unpack (expected 2)
 
 
 
rally 版本: 1.4.1 
已邀请:

要回复问题请先登录注册