Posts

Showing posts from August, 2018

Load testing with Taurus/jmeter and logging the results to ElasticSearch

Image
Purpose: To provide an easy mechanism for running Jmeter tests using Taurus from a docker container against a particular endpoint and logging the results Required to be installed: Docker Git The setup: Pull the repo: git clone https://gitlab.com/sgriffiths/jmeter-taurus-docker.git && cd jmeter-taurus-docker To Run: docker-compose run dev This will run the simple load test against ' blazemeterdemo.com/reserve.php ' endpoint: Running from the terminal should look like this: Logging - ES and Kibana: For the purposes of the run-through we will use the ELK stack running locally in a docker container From your terminal/cmd: docker pull sebp/elk git clone  https://github.com/spujadas/elk-docker.git && cd elk-docker docker build -t sebp/elk . docker network create --subnet=172.18.0.0/16 elastic-esrally-network docker run --rm --net elastic-esrally-network --ip 172.18.0.5 -p 5601:5601 -p 9200:9200 -p 5044:5044 -it --

Load testing ElasticSearch using ESRally and viewing the results in Kibana

Image
Run EsRally against an existing ElasticSeach index and save the results in Kibana Problem : Need to be able to write json queries and run these against an existing ES cluster Want to be able to view the EsRally results in a local ES instance The test run results to be available in Kibana Required to be installed: Docker Git 1. Get and build the ELK stack to store the test results against. Also defines the network so the docker containers can talk to each other. From your terminal/cmd: docker pull sebp/elk git clone  https://github.com/spujadas/elk-docker.git && cd elk-docker docker build -t sebp/elk . docker network create --subnet=172.18.0.0/16 elastic-esrally-network docker run --rm --net elastic-esrally-network --ip 172.18.0.5 -p 5601:5601 -p 9200:9200 -p 5044:5044 -it --name elk sebp/elk Local Kibana Local ElasticSearch ( Chrome plugin is recommended for viewing ES info) 2. Now we have ES and Kibana running its time to get ES rally sorte