Re: Introduce Random latency

2011-04-06 Thread A J
Thanks! This is a much better way. On Wed, Apr 6, 2011 at 1:27 PM, Scott Brooks wrote: > I'm not sure of your exact requirements for why you would do that > there, but have you thought about putting the delay in the network > instead? > http://stackoverflow.com/questions/614795/simulate-delayed-a

Re: Introduce Random latency

2011-04-06 Thread Scott Brooks
I'm not sure of your exact requirements for why you would do that there, but have you thought about putting the delay in the network instead? http://stackoverflow.com/questions/614795/simulate-delayed-and-dropped-packets-on-linux That SO page has a pretty good description of how you can do it on t

Introduce Random latency

2011-04-06 Thread A J
I want to run some tests where I incorporate random latency in some of the nodes (that varies over time). I think the best place is to place a 'sleep (random(10 to 50 seconds)) function' somewhere in the source code of cassandra. Or maybe the sleep is not random but the seconds to sleep are read fr