Testing Esrally
- Modify the challenges/default.json file.
- Open the file.
1vi ~/.rally/benchmarks/tracks/default/geonames/challenges/default.json
The default document query item fluctuates greatly during the test. Therefore, delete this item before the test.
- Press i to enter the insert mode and delete the following content:
{ "operation": "default", "clients": 200, "warmup-iterations": 500, "iterations": 1000, "target-throughput": 7000 }, - Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the file.
- Modify the operations/default.json file.
- Open the file.
1vi ~/.rally/benchmarks/tracks/default/geonames/operations/default.json - Press i to enter the insert mode and modify the following content.
The optimal performance of the Kunpeng processor cannot be brought into full play if the default official test case configurations are used in term, phrase, and country_agg_cached cases. Therefore, you need to adjust the query conditions in term and phrase as well as the query size in country_agg_cached.
- Modify term as follows:
{ "name": "term", "operation-type": "search", "body": { "query": { "term": { "country_code": "us" } } } },
- Modify phrase as follows:
{ "name": "phrase", "operation-type": "search", "body": { "query": { "match_phrase": { "country_code": "us" } } } },
- Modify country_agg_cached as follows:
{ "name": "country_agg_cached", "operation-type": "search", "cache": true, "body": { "size": 1000, "aggs": { "country_population": { "terms": { "field": "country_code" }, "aggs": { "sum_population": { "sum": { "field": "population" } } } } } }
- Modify term as follows:
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the file.
- Modify clients and target-throughput of each test case in the ~/.rally/benchmarks/tracks/default/geonames/challenges/default.json configuration file to achieve the optimal performance.
- Open the configuration file.
1vi ~/.rally/benchmarks/tracks/default/geonames/challenges/default.json - Using term as an example, press i to enter the insert mode and modify the configuration file as follows:
{ "operation": "term", "clients": 200, "warmup-iterations": 500, "iterations": 1000, "target-throughput": 60000 }, - Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the configuration file.
- Run the test script.
1 2
cd esrally-test-tools/bin bin/run_test.sh
Parent topic: esrally-test-tool Usage Guidance