airbnb / smartstack-cookbook

The chef recipes for running and testing Airbnb's SmartStack
MIT License
245 stars 45 forks source link

better nerve testing #2

Open igor47 opened 10 years ago

igor47 commented 10 years ago

it would be awesome to test how nerve reacts to slow responses and dropped packets; we can probably add this to the helloworld service by having it conditionally reply slightly after the timeout interval. another approach, which would generalize to testing all kinds of services, would be to add network latency at the kernel level.

i was looking into netem for this, using tc. there's more information on stack overflow