admin管理员组文章数量:1415645
Let's say I need 10000 ops/sec with a read:write ratio of 7:3
I'm trying with this:
mixed duration=6h cl=local_quorum keysize=100 'ratio(read=7,write=3)' -rate fixed="10000/s" -pop seq=1..10000 -mode user="user" password="pass" -node 1.1.1.1
Error:
Failed to parse parameter fixed.
Caused by:
Invalid value =10000/s. Boolean flag cannot have any value.
Error: Failed to parse CLI arguments.
It doesn't show errors, if I replace fixed="10000/s"
with threads=100
. But I need a way to control the exact number of operations/second. Is there a way to achieve this? even with threads?
Let's say I need 10000 ops/sec with a read:write ratio of 7:3
I'm trying with this:
mixed duration=6h cl=local_quorum keysize=100 'ratio(read=7,write=3)' -rate fixed="10000/s" -pop seq=1..10000 -mode user="user" password="pass" -node 1.1.1.1
Error:
Failed to parse parameter fixed.
Caused by:
Invalid value =10000/s. Boolean flag cannot have any value.
Error: Failed to parse CLI arguments.
It doesn't show errors, if I replace fixed="10000/s"
with threads=100
. But I need a way to control the exact number of operations/second. Is there a way to achieve this? even with threads?
1 Answer
Reset to default 0In your command, you specified the rate as:
$ cassandra-stress ... -rate fixed="10000/s" ...
Looking at the code for o.a.c.stress/settings/SettingsRate.java
, your usage is incorrect.
You'll either need to (a) set the minimum and maximum number of threads, or (b) explicitly set the number of threads in order to specify the operations/sec or throttle:
Usage: -rate threads=? [throttle=?] [fixed=?]
OR
Usage: -rate [threads>=?] [threads<=?] [auto]
If you modify your command to include the threads
count, you should be able to specify a value for fixed
. For example:
$ cassandra-stress ... -rate threads=100 fixed="10000/s" ...
For what it's worth, you didn't specify which version of Cassandra you're running so I linked to version 5.0 of the code. Cheers!
本文标签: cqlshHow to use Cassandrastress tool with an EXACT number of opssecStack Overflow
版权声明:本文标题:cqlsh - How to use Cassandra-stress tool with an EXACT number of opssec? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745162643a2645510.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
5.21.4-release
needs JDK21) with which you could specifyrate=10000
and it will trigger 10000 ops/second. I hope that you will give that a try. Discord for help, Usage Patterns supported, Dev Introduction Video, repo – Madhavan Commented Feb 22 at 19:18