[
https://issues.apache.org/jira/browse/CASSANDRA-3498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13156835#comment-13156835
]
Sylvain Lebresne commented on CASSANDRA-3498:
---------------------------------------------
It uses a modulo on the 'operation number', so with say -F 3, the producer will
generate inserts for keys 0, 1, 2, 0, 1, 2, etc... So it's a bit dumb, but by
varying the number of threads, I believe you can control a bit the level of
contention (typically, -F 1 means every writes are contending, but say -F 5
with 10 threads means less contention, and then -F 8 with 10 threads even less).
> Add same-row contention mode to stress tool
> -------------------------------------------
>
> Key: CASSANDRA-3498
> URL: https://issues.apache.org/jira/browse/CASSANDRA-3498
> Project: Cassandra
> Issue Type: New Feature
> Components: Tools
> Reporter: Jonathan Ellis
> Assignee: Pavel Yaskevich
> Priority: Minor
> Fix For: 1.1
>
> Attachments: CASSANDRA-3498.patch
>
>
> For CASSANDRA-2893 and other scenarios we'd like to generate non-unique rows
> to insert. (Maybe we can re-use the same pseudorandom distribution code we
> already have for reads.)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira