[jira] [Commented] (CASSANDRA-3498) Add same-row contention mode to stress tool

2011-11-24 Thread Pavel Yaskevich (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-3498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13156859#comment-13156859
 ] 

Pavel Yaskevich commented on CASSANDRA-3498:


I overlooked -F option and it seems that -F 1 is the behavior we want in this 
case.

> 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




[jira] [Commented] (CASSANDRA-3498) Add same-row contention mode to stress tool

2011-11-24 Thread Sylvain Lebresne (Commented) (JIRA)

[ 
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




[jira] [Commented] (CASSANDRA-3498) Add same-row contention mode to stress tool

2011-11-24 Thread Jonathan Ellis (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-3498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13156811#comment-13156811
 ] 

Jonathan Ellis commented on CASSANDRA-3498:
---

how does it distribute updates across rows if n > F?

> 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




[jira] [Commented] (CASSANDRA-3498) Add same-row contention mode to stress tool

2011-11-24 Thread Sylvain Lebresne (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-3498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13156801#comment-13156801
 ] 

Sylvain Lebresne commented on CASSANDRA-3498:
-

I understand I'm coming a little late, but I actually remembered that for 
counters we've introduced the -F option, that allows to specify how many 
different keys to use. In other word, stress -n 1 -F 1 will do 1 
insertion on the same row. Maybe that could actually be enough for generating 
artificial contention ?

> 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




[jira] [Commented] (CASSANDRA-3498) Add same-row contention mode to stress tool

2011-11-24 Thread Eric Evans (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-3498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13156783#comment-13156783
 ] 

Eric Evans commented on CASSANDRA-3498:
---

I used -L in https://issues.apache.org/jira/browse/CASSANDRA-2268 (patches will 
be along shortly) for --enable-cql.  Are there any other short options we could 
use for this?

> 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