I am writing a test application for stress-testing a server. I have a list of messages which I need to send in a given time interval, but I am interested in not just sending them with a uniform gap, but “clumping” messages together to simulate bursts. This will be controlled by a slider in the UI – at one end is uniform, at the other is “clumpy”. Is there a neat mathematical way to do this?
Share
So lets say that you have slider, max, a time interval T that you can cut up in to N divisions, and a total number of message M you want to send. Then at time division N, I would send
When slider=0, this will give total uniformity, with M/N messages arriving each interval. When slider=max, the uniformity will be completely damped, and you can adjust the parameter k to make the clumping even more extreme.