tomcucinotta / distwalk

Distributed processing emulation tool
GNU General Public License v3.0
2 stars 4 forks source link

Add option to stagger client threads submissions #62

Closed tomcucinotta closed 4 hours ago

tomcucinotta commented 5 hours ago

When the client uses multiple threads, they are all started at once, and start submitting traffic at the same time, what causes burtsy storms of connect() and following requests to the server. It would be useful to stagger the submission periods, so to spread the requests from clients over the specified (first) period.

tomcucinotta commented 4 hours ago

the just added --stag-send applies a staggered wait across a period, before starting the full client receiver/sender loop; this is done for the 1st session only, in case of multiple sessions there's no attempt to check staggering of the subsequent sessions.