For performance benchmarking on the cluster we need to execute search queries on the elasticsearch nodes to measure the latency, response time metrics etc.
This custom track executes search queries specific to APM data covering two use cases-
1) Execute search queries on live apm data
2) Execute search queries on sample data ingested in the previous section
The custom track has two challenges specific to these use cases but the search queries can be modified as per requirement in the operations/querying json files.
Create a file params-file.json to provide the runtime of the test in seconds-
Ex below with runtime of 30 mins.
{
"query_time_period": 1800
}
esrally --track-path=/root/.rally/benchmarks/tracks/rally-apm-search/eventdata --target-hosts=<ES Node IP>:9200,<ES Node IP>:9200,<ES Node IP>:9200 --pipeline=benchmark-only --client-options="use_ssl:true,verify_certs:false,basic_auth_user:'<username>',timeout:120,basic_auth_password:'<password>'" --challenge=apm-search-queries-livedata --track-params=./params-file.json --user-tag="name-env:<Name>-<Env>"
esrally --track-path=/root/.rally/benchmarks/tracks/rally-apm-search/eventdata --target-hosts=<ES Node IP>:9200,<ES Node IP>:9200,<ES Node IP>:9200 --pipeline=benchmark-only --client-options="use_ssl:true,verify_certs:false,basic_auth_user:'<username>',timeout:120,basic_auth_password:'<password>'" --challenge=apm-search-queries-sampledata --track-params=./params-file.json --user-tag="name-env:<Name>-<Env>"