Sign inSign up

buoyantio/failer

By buoyantio

Updated over 6 years ago

Image
0

366

buoyantio/failer repository overview

Failer

Simulate failure, in specific ways.

Run locally

go run main.go
$ go run main.go -h
  -addr string
    	address to serve on (default ":8080")
  -distribution string
    	failure distribution, must be one of: random, contiguous, evenly (default "random")
  -success-rate int
    	server succcess rate percentage [0,100] (default 100)
Failure Distribution

Three options for failure distribution:

go run main.go --distribution=random

# given success rate 80%, succeed 80 times, then fail 20 times
go run main.go --distribution=contiguous

# given success rate 80%, succeed 4 times, then fail 1 time
go run main.go --distribution=evenly

Docker build

docker build . -t buoyantio/failer:latest

Deploy to Kubernetes

cat k8s.yml | kubectl apply -f -
Observe failure in Kubernetes
kubectl -n failer get po --watch

Tag summary

Content type

Image

Digest

Size

33.2 MB

Last updated

over 6 years ago

docker pull buoyantio/failer