Skip to content

Commit 53a666f

Browse files
document worker and benchmark failure simulation usage
1 parent 279d5a8 commit 53a666f

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,14 @@ start redis on `127.0.0.1:6379`, then:
1717

1818
`go run ./cmd/bench -jobs 5000 -workers 16`
1919

20+
## failure simulation
21+
use worker failure simulation:
22+
23+
`go run ./cmd/worker -concurrency 8 -fail-rate 0.05`
24+
25+
use benchmark worker-kill simulation:
26+
27+
`go run ./cmd/bench -jobs 5000 -workers 16 -simulate-failure=true -failure-delay-ms 250`
28+
2029
## tests
2130
unit + integration tests live under `pkg/*`.

0 commit comments

Comments
 (0)