newsapps / beeswithmachineguns

A utility for arming (creating) many bees (micro EC2 instances) to attack (load test) targets (web applications).
http://apps.chicagotribune.com/
MIT License
6.43k stars 631 forks source link

Cannot seem to use --keepalive option #220

Open misalcedo opened 6 years ago

misalcedo commented 6 years ago

https://github.com/newsapps/beeswithmachineguns/blob/4b8783dc36d327ad95b711db39054d64bd718344/beeswithmachineguns/main.py#L105

The nargs option is 0, so my assumption is the argument will never have a value and so will never pass "-k" option to Apache Bench.

I tried: "bees attack -K True" "bees attack --keepalive=True" "bees attack -K KEEP_ALIVE" "bees attack --keepalive=KEEP_ALIVE" "bees attack -K" "bees attack --keepalive"

None of them added -k to Apache Bench