You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Brandon Williams (JIRA)" <ji...@apache.org> on 2011/03/03 21:45:37 UTC

[jira] Created: (CASSANDRA-2267) stress.java daemon mode

stress.java daemon mode
-----------------------

                 Key: CASSANDRA-2267
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2267
             Project: Cassandra
          Issue Type: Improvement
          Components: Contrib
    Affects Versions: 0.7.1
            Reporter: Brandon Williams
            Assignee: Pavel Yaskevich


stress.java uses a JVM, but there is no way to warm it up, which skews results.  It would be nice if there was some sort of daemon mode so the JVM could stay hot, and even better if there was a way to control the daemon programmatically, perhaps via JMX.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-2267) stress.java daemon mode

Posted by "Pavel Yaskevich (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13041679#comment-13041679 ] 

Pavel Yaskevich commented on CASSANDRA-2267:
--------------------------------------------

Oh yeah, I misunderstood you, sorry! Sure I will add a -h option to the server and support for stopping currently running task.

> stress.java daemon mode
> -----------------------
>
>                 Key: CASSANDRA-2267
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2267
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Contrib
>    Affects Versions: 0.7.1
>            Reporter: Brandon Williams
>            Assignee: Pavel Yaskevich
>             Fix For: 0.8.1
>
>         Attachments: CASSANDRA-2267.patch
>
>
> stress.java uses a JVM, but there is no way to warm it up, which skews results.  It would be nice if there was some sort of daemon mode so the JVM could stay hot, and even better if there was a way to control the daemon programmatically, perhaps via JMX.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CASSANDRA-2267) stress.java daemon mode

Posted by "Brandon Williams (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13041675#comment-13041675 ] 

Brandon Williams commented on CASSANDRA-2267:
---------------------------------------------

I mean, the only interface stressd can bind easily right now is 127.0.0.1.  Having that configurable somewhere would be nice.

> stress.java daemon mode
> -----------------------
>
>                 Key: CASSANDRA-2267
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2267
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Contrib
>    Affects Versions: 0.7.1
>            Reporter: Brandon Williams
>            Assignee: Pavel Yaskevich
>             Fix For: 0.8.1
>
>         Attachments: CASSANDRA-2267.patch
>
>
> stress.java uses a JVM, but there is no way to warm it up, which skews results.  It would be nice if there was some sort of daemon mode so the JVM could stay hot, and even better if there was a way to control the daemon programmatically, perhaps via JMX.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Commented: (CASSANDRA-2267) stress.java daemon mode

Posted by "Eric Evans (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13002202#comment-13002202 ] 

Eric Evans commented on CASSANDRA-2267:
---------------------------------------

bq. ...a way to control the daemon programmatically, perhaps via JMX.

I love JMX, but everytime you use it a Ruby dev kills a kitten.

> stress.java daemon mode
> -----------------------
>
>                 Key: CASSANDRA-2267
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2267
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Contrib
>    Affects Versions: 0.7.1
>            Reporter: Brandon Williams
>            Assignee: Pavel Yaskevich
>
> stress.java uses a JVM, but there is no way to warm it up, which skews results.  It would be nice if there was some sort of daemon mode so the JVM could stay hot, and even better if there was a way to control the daemon programmatically, perhaps via JMX.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-2267) stress.java daemon mode

Posted by "Pavel Yaskevich (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13041669#comment-13041669 ] 

Pavel Yaskevich commented on CASSANDRA-2267:
--------------------------------------------

Thanks for feedback. Can you please clarify what do you mean by control here? Is it: run an action, list running actions, stop running action and something else?

> stress.java daemon mode
> -----------------------
>
>                 Key: CASSANDRA-2267
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2267
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Contrib
>    Affects Versions: 0.7.1
>            Reporter: Brandon Williams
>            Assignee: Pavel Yaskevich
>             Fix For: 0.8.1
>
>         Attachments: CASSANDRA-2267.patch
>
>
> stress.java uses a JVM, but there is no way to warm it up, which skews results.  It would be nice if there was some sort of daemon mode so the JVM could stay hot, and even better if there was a way to control the daemon programmatically, perhaps via JMX.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Commented: (CASSANDRA-2267) stress.java daemon mode

Posted by "Brandon Williams (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13002206#comment-13002206 ] 

Brandon Williams commented on CASSANDRA-2267:
---------------------------------------------

It doesn't *have* to be JMX, but that seems like the easiest path initially.

> stress.java daemon mode
> -----------------------
>
>                 Key: CASSANDRA-2267
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2267
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Contrib
>    Affects Versions: 0.7.1
>            Reporter: Brandon Williams
>            Assignee: Pavel Yaskevich
>
> stress.java uses a JVM, but there is no way to warm it up, which skews results.  It would be nice if there was some sort of daemon mode so the JVM could stay hot, and even better if there was a way to control the daemon programmatically, perhaps via JMX.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CASSANDRA-2267) stress.java daemon mode

Posted by "Pavel Yaskevich (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-2267?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pavel Yaskevich updated CASSANDRA-2267:
---------------------------------------

    Attachment: CASSANDRA-2267.patch

to run a server use ./bin/stressd

new option for ./bin/stress is --send-to or -T <host_or_ip>

So if you want to run action on the stress server you just add that option to you command line.

Example: ./bin/stress -n 100000 -S 512 -T 127.0.0.1

> stress.java daemon mode
> -----------------------
>
>                 Key: CASSANDRA-2267
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2267
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Contrib
>    Affects Versions: 0.7.1
>            Reporter: Brandon Williams
>            Assignee: Pavel Yaskevich
>             Fix For: 0.8.1
>
>         Attachments: CASSANDRA-2267.patch
>
>
> stress.java uses a JVM, but there is no way to warm it up, which skews results.  It would be nice if there was some sort of daemon mode so the JVM could stay hot, and even better if there was a way to control the daemon programmatically, perhaps via JMX.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Commented: (CASSANDRA-2267) stress.java daemon mode

Posted by "Brandon Williams (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13002204#comment-13002204 ] 

Brandon Williams commented on CASSANDRA-2267:
---------------------------------------------

To clarify, this isn't so much about warming the JVM, but that is a side effect gained from having a daemon mode and the operations exposed via an API: the operator can warm it sufficiently themselves.

> stress.java daemon mode
> -----------------------
>
>                 Key: CASSANDRA-2267
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2267
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Contrib
>    Affects Versions: 0.7.1
>            Reporter: Brandon Williams
>            Assignee: Pavel Yaskevich
>
> stress.java uses a JVM, but there is no way to warm it up, which skews results.  It would be nice if there was some sort of daemon mode so the JVM could stay hot, and even better if there was a way to control the daemon programmatically, perhaps via JMX.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CASSANDRA-2267) stress.java daemon mode

Posted by "Pavel Yaskevich (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-2267?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pavel Yaskevich updated CASSANDRA-2267:
---------------------------------------

    Attachment: CASSANDRA-2267-v2.patch

-h option to the ./bin/stressd
when you kill client with Ctrl-C it will send a signal to the server to cancel running operation associated with that client.

> stress.java daemon mode
> -----------------------
>
>                 Key: CASSANDRA-2267
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2267
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Contrib
>    Affects Versions: 0.7.1
>            Reporter: Brandon Williams
>            Assignee: Pavel Yaskevich
>             Fix For: 0.8.1
>
>         Attachments: CASSANDRA-2267-v2.patch, CASSANDRA-2267.patch
>
>
> stress.java uses a JVM, but there is no way to warm it up, which skews results.  It would be nice if there was some sort of daemon mode so the JVM could stay hot, and even better if there was a way to control the daemon programmatically, perhaps via JMX.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CASSANDRA-2267) stress.java daemon mode

Posted by "Brandon Williams (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13042287#comment-13042287 ] 

Brandon Williams commented on CASSANDRA-2267:
---------------------------------------------

Excellent!  Committed.

> stress.java daemon mode
> -----------------------
>
>                 Key: CASSANDRA-2267
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2267
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Contrib
>    Affects Versions: 0.7.1
>            Reporter: Brandon Williams
>            Assignee: Pavel Yaskevich
>             Fix For: 0.8.1
>
>         Attachments: CASSANDRA-2267-v2.patch, CASSANDRA-2267.patch
>
>
> stress.java uses a JVM, but there is no way to warm it up, which skews results.  It would be nice if there was some sort of daemon mode so the JVM could stay hot, and even better if there was a way to control the daemon programmatically, perhaps via JMX.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CASSANDRA-2267) stress.java daemon mode

Posted by "Brandon Williams (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13041662#comment-13041662 ] 

Brandon Williams commented on CASSANDRA-2267:
---------------------------------------------

It would be nice if we could control the interface the stressd is bound to, and also had a way to cancel a running action.  Overall I like this approach though, very easy to use if you're already familiar with stress.

> stress.java daemon mode
> -----------------------
>
>                 Key: CASSANDRA-2267
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2267
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Contrib
>    Affects Versions: 0.7.1
>            Reporter: Brandon Williams
>            Assignee: Pavel Yaskevich
>             Fix For: 0.8.1
>
>         Attachments: CASSANDRA-2267.patch
>
>
> stress.java uses a JVM, but there is no way to warm it up, which skews results.  It would be nice if there was some sort of daemon mode so the JVM could stay hot, and even better if there was a way to control the daemon programmatically, perhaps via JMX.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CASSANDRA-2267) stress.java daemon mode

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13042346#comment-13042346 ] 

Hudson commented on CASSANDRA-2267:
-----------------------------------

Integrated in Cassandra-0.8 #149 (See [https://builds.apache.org/hudson/job/Cassandra-0.8/149/])
    stress.java daemon mode.
Patch by Pavel Yaskevich, reviewed by brandonwilliams for CASSANDRA-2267

brandonwilliams : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1130223
Files : 
* /cassandra/branches/cassandra-0.8/tools/stress/src/org/apache/cassandra/stress/server
* /cassandra/branches/cassandra-0.8/tools/stress/src/org/apache/cassandra/stress/operations/MultiGetter.java
* /cassandra/branches/cassandra-0.8/tools/stress/src/org/apache/cassandra/stress/server/StressThread.java
* /cassandra/branches/cassandra-0.8/tools/stress/bin/stressd
* /cassandra/branches/cassandra-0.8/tools/stress/src/org/apache/cassandra/stress/operations/Inserter.java
* /cassandra/branches/cassandra-0.8/tools/stress/src/org/apache/cassandra/stress/Session.java
* /cassandra/branches/cassandra-0.8/tools/stress/src/org/apache/cassandra/stress/operations/Reader.java
* /cassandra/branches/cassandra-0.8/tools/stress/src/org/apache/cassandra/stress/operations/CounterAdder.java
* /cassandra/branches/cassandra-0.8/tools/stress/src/org/apache/cassandra/stress/util/Operation.java
* /cassandra/branches/cassandra-0.8/tools/stress/src/org/apache/cassandra/stress/StressAction.java
* /cassandra/branches/cassandra-0.8/tools/stress/src/org/apache/cassandra/stress/operations/RangeSlicer.java
* /cassandra/branches/cassandra-0.8/tools/stress/src/org/apache/cassandra/stress/StressServer.java
* /cassandra/branches/cassandra-0.8/tools/stress/src/org/apache/cassandra/stress/operations/IndexedRangeSlicer.java
* /cassandra/branches/cassandra-0.8/tools/stress/src/org/apache/cassandra/stress/operations/CounterGetter.java
* /cassandra/branches/cassandra-0.8/tools/stress/src/org/apache/cassandra/stress/Stress.java


> stress.java daemon mode
> -----------------------
>
>                 Key: CASSANDRA-2267
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2267
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Contrib
>    Affects Versions: 0.7.1
>            Reporter: Brandon Williams
>            Assignee: Pavel Yaskevich
>             Fix For: 0.8.1
>
>         Attachments: CASSANDRA-2267-v2.patch, CASSANDRA-2267.patch
>
>
> stress.java uses a JVM, but there is no way to warm it up, which skews results.  It would be nice if there was some sort of daemon mode so the JVM could stay hot, and even better if there was a way to control the daemon programmatically, perhaps via JMX.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira