YCSB icon indicating copy to clipboard operation
YCSB copied to clipboard

how to control insert frequency

Open matthewxuda opened this issue 2 years ago • 5 comments

I want to insert 5 data every 10 seconds,how can I set the config

matthewxuda avatar Jun 15 '22 06:06 matthewxuda

Unfortunately, it is currently not possible to schedule the requests in that fine grained way.

The threads will always send requests with the highest possible rate but you can limit the maximum throughput via the -target parameter

seybi87 avatar Jun 15 '22 07:06 seybi87

thanks, how to limit the maximum throughput via the -target parameter, can you show me a example?

matthewxuda avatar Jun 15 '22 07:06 matthewxuda

Just put -target 1000 in the LOAD or RUN command, e.g. ./bin/ycsb load mongodb -s -P workloads/workloada -target 1000 and the request rate will throttled to at max 1000 ops/s (depending if the database can provide this throughput )

seybi87 avatar Jun 15 '22 11:06 seybi87

thanks a lot :)

matthewxuda avatar Jun 15 '22 11:06 matthewxuda

how to delete data with the tool

matthewxuda avatar Jun 16 '22 00:06 matthewxuda