pkolaczk / latte

Latency Tester for Apache Cassandra
Apache License 2.0
176 stars 19 forks source link

Ability to prime BoundedCycleCounter with a different starting position #55

Closed fruch closed 2 months ago

fruch commented 11 months ago

when we want to split some load across multiple loader machine (i.e. machine that generate traffic in our tests) we have lots of cases we need to split the ranges each machine is working on for example if we want to write big amount of data (few terabytes), doing so with multiple machine that would run through the same exact case with the same counter, would cause excessive rewrite, and slow the whole thing down.

I would be nice if we can have a way to pass to latte something like:

latter run -d 10000000 --start-counter 0 -- workload.ns 127.0.0.1
latter run -d 10000000 --start-counter 10000000 -- workload.ns 127.0.0.1
latter run -d 10000000 --start-counter 20000000 -- workload.ns 127.0.0.1
latter run -d 10000000 --start-counter 30000000 -- workload.ns 127.0.0.1
latter run -d 10000000 --counter-range 0-10000000 -- workload.ns 127.0.0.1
latter run -d 10000000 --counter-range 10000000-20000000 -- workload.ns 127.0.0.1
latter run -d 10000000 --counter-range 20000001-30000000 -- workload.ns 127.0.0.1
latter run -d 10000000 --counter-range 30000001-40000000 -- workload.ns 127.0.0.1