Source code of my blog on how to perform Chaos Engineering using
Comprises of business flow which allows consumer of this application to view card based on Id or fetch all the cards
Method | Path | Description |
---|---|---|
GET | /card/{cardId} | Gets Card based on card identifier |
GET | /cards | Fetches all cards stored in database |
- Go to home of Consul e.g. "C:\consul.io"
- Run below command in powershell
.\consul.exe agent -dev -node machine
- Check whether Consul is up and running by accessing URL (http://localhost:8500/ui/dc1/services
) in browser
- Go to home of Prometheus e.g. "C:\prometheus-2.2.1.windows-amd64"
- Run below command in powershell
.\prometheus.exe --config.file=prometheus.yml
- Check whether Prometheus is up and running by accessing URL (http://localhost:9090/service-discovery) in browser
- Go to home of Consul e.g. C:\grafana-5.1.3\bin
- Run below command in powershell
.\grafana-server.exe agent -dev -node machine
- Check whether Grafana is up and running by accessing URL (http://localhost:7070) in browser
Running load tests using Apache Bench
- Go to Apache Bench's bin directory e.g. C:\Apache24\bin
- Run below command in powershell to invoke Fetch Cards API 250 times with 4 concurrent threads
.\ab.exe -n 250 -c 4 http://localhost:8090/cards