Skip to content

Latest commit

 

History

History
71 lines (62 loc) · 1.6 KB

README.md

File metadata and controls

71 lines (62 loc) · 1.6 KB

NodeWrecker

Stress test your cluster under sporadic high cpu, memory, or disk load.

Build image

make image

For Raspberry pi: make image-pi

Build binary

make build

For Raspberry pi: make build-pi

Run via docker

docker start jaeg/nodewrecker:latest --threads=4 --escalate=true --abuse-memory=true --chaos

Raspberry pi: docker start jaeg/nodewrecker:latest-pi --threads=4 --escalate=true --abuse-memory=true --chaos

Install via helm

helm upgrade --install node-wrecker ./helm-chart/

Raspberry pi:

  • Update appVersion in helm-chart/chart.yaml from latest to latest-pi
  • helm upgrade --install pi-wrecker ./helm-chart/

Flags

  • chaos
    • default:false
    • Enables chaos mode
  • threads
    • default:4
    • Number of threads to run
  • sleep
    • default:1
    • milliseconds to sleep
  • escalate
    • default:false
    • Keep creating threads
  • escalate-rate
    • default:1000
    • milliseconds between creating new threads
  • string-length
    • default:1000
    • length of randomly generated string
  • abuse-memory
    • default:false
    • if true nodewrecker will store all generated values in memory
  • min-duration
    • default: 10
    • minimum seconds a test lasts
  • max-duration
    • default: 60
    • max seconds a test lasts
  • max-deay
    • default: 10
    • max seconds between tests
  • min-delay
    • defaults: 10
    • min seconds between tests
  • verbose
    • defaults: false
    • output everything from threads
  • output
    • defaults: false
    • write output from threads to txt files
  • output-dir
    • defaults: ./
    • directory to put output from threads