https://github.com/junekelly/hammer_load_test
https://github.com/junekelly/hammer_load_test
Last synced: 30 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/junekelly/hammer_load_test
- Owner: JuneKelly
- Created: 2018-04-26T21:47:49.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-13T11:36:25.000Z (over 7 years ago)
- Last Synced: 2025-01-09T04:30:56.541Z (over 1 year ago)
- Language: Elixir
- Size: 83 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hammer Load Test
Sets up a cluster of phoenix servers, using Hammer and Redis for rate-limiting,
and subjects them to a load test.
## Dependencies
- docker
- docker-compose
- [artillery](https://artillery.io)
- ruby (for the `erb` tool, should be present on most machines)
- make
Tested on:
```shell
$ docker --version
Docker version 18.03.0-ce, build 0520e24
$ docker-compose --version
docker-compose version 1.20.1, build 5d8c71b
```
## Setup
```shell
$ mix deps.get
$ make run -B
```
## Perform the load test
```shell
$ make load-test
```
## Expectations
We should ideally see no 500 responses from the test. If we have any,
they're probably from the Hammer-Redis race-condition described here:
https://github.com/ExHammer/hammer-backend-redis/issues/11