You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Nilabja Banerjee <ni...@gmail.com> on 2011/07/22 07:43:27 UTC

Stress test using Java-based stress utility

Hi All,

I am following this following link " *
http://www.datastax.com/docs/0.7/utilities/stress_java *" for a stress test.
I am getting this notification after running this command

*xxx.xxx.xxx.xx= my ip*

*contrib/stress/bin/stress -d xxx.xxx.xxx.xx*

*Created keyspaces. Sleeping 1s for propagation.
total,interval_op_rate,interval_key_rate,avg_latency,elapsed_time
Operation [44] retried 10 times - error inserting key 0000044
((UnavailableException))

Operation [49] retried 10 times - error inserting key 0000049
((UnavailableException))

Operation [7] retried 10 times - error inserting key 0000007
((UnavailableException))

Operation [6] retried 10 times - error inserting key 0000006
((UnavailableException))
*


*Any idea why I am getting these things?*


*Thank You
*


*
*

Re: Stress test using Java-based stress utility

Posted by Nilabja Banerjee <ni...@gmail.com>.
Thank you Jonathan.. :)




On 26 July 2011 20:08, Jonathan Ellis <jb...@gmail.com> wrote:

> cassandra.db.Caches
>
> On Tue, Jul 26, 2011 at 2:11 AM, Nilabja Banerjee
> <ni...@gmail.com> wrote:
> > Thank you every one it is working fine.....
> >
> > I was watching jconsole behavior...can tell me where exactly I can find "
> > RecentHitRates" :
> >
> > Tuning for Optimal Caching:
> >
> > Here they have given one example of that
> >
> http://www.datastax.com/docs/0.8/operations/cache_tuning#configuring-key-and-row-caches
> > ....RecentHitRates...  In my jconsole within MBean I am unable to find
> that
> > one.....
> > what is the value of long[36] and long[90].....  From Jconsole attributes
> > how can I find the  performance of the casssandra while stress testing?
> > Thank You
> >
> >
> > On 26 July 2011 14:33, aaron morton <aa...@thelastpickle.com> wrote:
> >>
> >> It's in the source distribution under tools/stress see the instructions
> in
> >> the README file and then look at the command line help (bin/stress
> --help).
> >> Cheers
> >> -----------------
> >> Aaron Morton
> >> Freelance Cassandra Developer
> >> @aaronmorton
> >> http://www.thelastpickle.com
> >> On 26 Jul 2011, at 19:40, CASSANDRA learner wrote:
> >>
> >> Hiiiii,,
> >> I too wanna know what this stress tool do? What is the usage of this
> >> tool... Please explain
> >>
> >> On Fri, Jul 22, 2011 at 6:39 PM, Jonathan Ellis <jb...@gmail.com>
> wrote:
> >>>
> >>> What does nodetool ring say?
> >>>
> >>> On Fri, Jul 22, 2011 at 12:43 AM, Nilabja Banerjee
> >>> <ni...@gmail.com> wrote:
> >>> > Hi All,
> >>> >
> >>> > I am following this following link "
> >>> > http://www.datastax.com/docs/0.7/utilities/stress_java " for a
> stress
> >>> > test.
> >>> > I am getting this notification after running this command
> >>> >
> >>> > xxx.xxx.xxx.xx= my ip
> >>> >
> >>> > contrib/stress/bin/stress -d xxx.xxx.xxx.xx
> >>> >
> >>> > Created keyspaces. Sleeping 1s for propagation.
> >>> > total,interval_op_rate,interval_key_rate,avg_latency,elapsed_time
> >>> > Operation [44] retried 10 times - error inserting key 0000044
> >>> > ((UnavailableException))
> >>> >
> >>> > Operation [49] retried 10 times - error inserting key 0000049
> >>> > ((UnavailableException))
> >>> >
> >>> > Operation [7] retried 10 times - error inserting key 0000007
> >>> > ((UnavailableException))
> >>> >
> >>> > Operation [6] retried 10 times - error inserting key 0000006
> >>> > ((UnavailableException))
> >>> >
> >>> > Any idea why I am getting these things?
> >>> >
> >>> > Thank You
> >>> >
> >>> >
> >>> >
> >>>
> >>>
> >>>
> >>> --
> >>> Jonathan Ellis
> >>> Project Chair, Apache Cassandra
> >>> co-founder of DataStax, the source for professional Cassandra support
> >>> http://www.datastax.com
> >>
> >>
> >
> >
>
>
>
> --
> Jonathan Ellis
> Project Chair, Apache Cassandra
> co-founder of DataStax, the source for professional Cassandra support
> http://www.datastax.com
>

Re: Stress test using Java-based stress utility

Posted by Jonathan Ellis <jb...@gmail.com>.
cassandra.db.Caches

On Tue, Jul 26, 2011 at 2:11 AM, Nilabja Banerjee
<ni...@gmail.com> wrote:
> Thank you every one it is working fine.....
>
> I was watching jconsole behavior...can tell me where exactly I can find "
> RecentHitRates" :
>
> Tuning for Optimal Caching:
>
> Here they have given one example of that
> http://www.datastax.com/docs/0.8/operations/cache_tuning#configuring-key-and-row-caches
> ....RecentHitRates...  In my jconsole within MBean I am unable to find that
> one.....
> what is the value of long[36] and long[90].....  From Jconsole attributes
> how can I find the  performance of the casssandra while stress testing?
> Thank You
>
>
> On 26 July 2011 14:33, aaron morton <aa...@thelastpickle.com> wrote:
>>
>> It's in the source distribution under tools/stress see the instructions in
>> the README file and then look at the command line help (bin/stress --help).
>> Cheers
>> -----------------
>> Aaron Morton
>> Freelance Cassandra Developer
>> @aaronmorton
>> http://www.thelastpickle.com
>> On 26 Jul 2011, at 19:40, CASSANDRA learner wrote:
>>
>> Hiiiii,,
>> I too wanna know what this stress tool do? What is the usage of this
>> tool... Please explain
>>
>> On Fri, Jul 22, 2011 at 6:39 PM, Jonathan Ellis <jb...@gmail.com> wrote:
>>>
>>> What does nodetool ring say?
>>>
>>> On Fri, Jul 22, 2011 at 12:43 AM, Nilabja Banerjee
>>> <ni...@gmail.com> wrote:
>>> > Hi All,
>>> >
>>> > I am following this following link "
>>> > http://www.datastax.com/docs/0.7/utilities/stress_java " for a stress
>>> > test.
>>> > I am getting this notification after running this command
>>> >
>>> > xxx.xxx.xxx.xx= my ip
>>> >
>>> > contrib/stress/bin/stress -d xxx.xxx.xxx.xx
>>> >
>>> > Created keyspaces. Sleeping 1s for propagation.
>>> > total,interval_op_rate,interval_key_rate,avg_latency,elapsed_time
>>> > Operation [44] retried 10 times - error inserting key 0000044
>>> > ((UnavailableException))
>>> >
>>> > Operation [49] retried 10 times - error inserting key 0000049
>>> > ((UnavailableException))
>>> >
>>> > Operation [7] retried 10 times - error inserting key 0000007
>>> > ((UnavailableException))
>>> >
>>> > Operation [6] retried 10 times - error inserting key 0000006
>>> > ((UnavailableException))
>>> >
>>> > Any idea why I am getting these things?
>>> >
>>> > Thank You
>>> >
>>> >
>>> >
>>>
>>>
>>>
>>> --
>>> Jonathan Ellis
>>> Project Chair, Apache Cassandra
>>> co-founder of DataStax, the source for professional Cassandra support
>>> http://www.datastax.com
>>
>>
>
>



-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of DataStax, the source for professional Cassandra support
http://www.datastax.com

Re: Stress test using Java-based stress utility

Posted by Nilabja Banerjee <ni...@gmail.com>.
Thank you every one it is working fine.....

I was watching jconsole behavior...can tell me where exactly I can
find "  *RecentHitRates"
:
*Tuning for Optimal Caching:
Here they have given one example of that  *
http://www.datastax.com/docs/0.8/operations/cache_tuning#configuring-key-and-row-caches
* ....*RecentHitRates...  *In my jconsole within MBean I am unable to find
that one.....
what is the value of long[36] and long[90].....  From Jconsole attributes
how can I find the  *performance of the casssandra while stress testing?
Thank You
***

On 26 July 2011 14:33, aaron morton <aa...@thelastpickle.com> wrote:

> It's in the source distribution under tools/stress see the instructions in
> the README file and then look at the command line help (bin/stress --help).
>
> Cheers
>
> -----------------
> Aaron Morton
> Freelance Cassandra Developer
> @aaronmorton
> http://www.thelastpickle.com
>
> On 26 Jul 2011, at 19:40, CASSANDRA learner wrote:
>
> Hiiiii,,
> I too wanna know what this stress tool do? What is the usage of this
> tool... Please explain
>
> On Fri, Jul 22, 2011 at 6:39 PM, Jonathan Ellis <jb...@gmail.com> wrote:
>
>> What does nodetool ring say?
>>
>> On Fri, Jul 22, 2011 at 12:43 AM, Nilabja Banerjee
>> <ni...@gmail.com> wrote:
>> > Hi All,
>> >
>> > I am following this following link "
>> > http://www.datastax.com/docs/0.7/utilities/stress_java " for a stress
>> test.
>> > I am getting this notification after running this command
>> >
>> > xxx.xxx.xxx.xx= my ip
>> >
>> > contrib/stress/bin/stress -d xxx.xxx.xxx.xx
>> >
>> > Created keyspaces. Sleeping 1s for propagation.
>> > total,interval_op_rate,interval_key_rate,avg_latency,elapsed_time
>> > Operation [44] retried 10 times - error inserting key 0000044
>> > ((UnavailableException))
>> >
>> > Operation [49] retried 10 times - error inserting key 0000049
>> > ((UnavailableException))
>> >
>> > Operation [7] retried 10 times - error inserting key 0000007
>> > ((UnavailableException))
>> >
>> > Operation [6] retried 10 times - error inserting key 0000006
>> > ((UnavailableException))
>> >
>> > Any idea why I am getting these things?
>> >
>> > Thank You
>> >
>> >
>> >
>>
>>
>>
>> --
>> Jonathan Ellis
>> Project Chair, Apache Cassandra
>> co-founder of DataStax, the source for professional Cassandra support
>> http://www.datastax.com
>>
>
>
>

Re: Stress test using Java-based stress utility

Posted by aaron morton <aa...@thelastpickle.com>.
It's in the source distribution under tools/stress see the instructions in the README file and then look at the command line help (bin/stress --help). 

Cheers

-----------------
Aaron Morton
Freelance Cassandra Developer
@aaronmorton
http://www.thelastpickle.com

On 26 Jul 2011, at 19:40, CASSANDRA learner wrote:

> Hiiiii,,
> I too wanna know what this stress tool do? What is the usage of this tool... Please explain
> 
> On Fri, Jul 22, 2011 at 6:39 PM, Jonathan Ellis <jb...@gmail.com> wrote:
> What does nodetool ring say?
> 
> On Fri, Jul 22, 2011 at 12:43 AM, Nilabja Banerjee
> <ni...@gmail.com> wrote:
> > Hi All,
> >
> > I am following this following link "
> > http://www.datastax.com/docs/0.7/utilities/stress_java " for a stress test.
> > I am getting this notification after running this command
> >
> > xxx.xxx.xxx.xx= my ip
> >
> > contrib/stress/bin/stress -d xxx.xxx.xxx.xx
> >
> > Created keyspaces. Sleeping 1s for propagation.
> > total,interval_op_rate,interval_key_rate,avg_latency,elapsed_time
> > Operation [44] retried 10 times - error inserting key 0000044
> > ((UnavailableException))
> >
> > Operation [49] retried 10 times - error inserting key 0000049
> > ((UnavailableException))
> >
> > Operation [7] retried 10 times - error inserting key 0000007
> > ((UnavailableException))
> >
> > Operation [6] retried 10 times - error inserting key 0000006
> > ((UnavailableException))
> >
> > Any idea why I am getting these things?
> >
> > Thank You
> >
> >
> >
> 
> 
> 
> --
> Jonathan Ellis
> Project Chair, Apache Cassandra
> co-founder of DataStax, the source for professional Cassandra support
> http://www.datastax.com
> 


Re: Stress test using Java-based stress utility

Posted by CASSANDRA learner <ca...@gmail.com>.
Hiiiii,,
I too wanna know what this stress tool do? What is the usage of this tool...
Please explain

On Fri, Jul 22, 2011 at 6:39 PM, Jonathan Ellis <jb...@gmail.com> wrote:

> What does nodetool ring say?
>
> On Fri, Jul 22, 2011 at 12:43 AM, Nilabja Banerjee
> <ni...@gmail.com> wrote:
> > Hi All,
> >
> > I am following this following link "
> > http://www.datastax.com/docs/0.7/utilities/stress_java " for a stress
> test.
> > I am getting this notification after running this command
> >
> > xxx.xxx.xxx.xx= my ip
> >
> > contrib/stress/bin/stress -d xxx.xxx.xxx.xx
> >
> > Created keyspaces. Sleeping 1s for propagation.
> > total,interval_op_rate,interval_key_rate,avg_latency,elapsed_time
> > Operation [44] retried 10 times - error inserting key 0000044
> > ((UnavailableException))
> >
> > Operation [49] retried 10 times - error inserting key 0000049
> > ((UnavailableException))
> >
> > Operation [7] retried 10 times - error inserting key 0000007
> > ((UnavailableException))
> >
> > Operation [6] retried 10 times - error inserting key 0000006
> > ((UnavailableException))
> >
> > Any idea why I am getting these things?
> >
> > Thank You
> >
> >
> >
>
>
>
> --
> Jonathan Ellis
> Project Chair, Apache Cassandra
> co-founder of DataStax, the source for professional Cassandra support
> http://www.datastax.com
>

Re: Stress test using Java-based stress utility

Posted by Jonathan Ellis <jb...@gmail.com>.
What does nodetool ring say?

On Fri, Jul 22, 2011 at 12:43 AM, Nilabja Banerjee
<ni...@gmail.com> wrote:
> Hi All,
>
> I am following this following link "
> http://www.datastax.com/docs/0.7/utilities/stress_java " for a stress test.
> I am getting this notification after running this command
>
> xxx.xxx.xxx.xx= my ip
>
> contrib/stress/bin/stress -d xxx.xxx.xxx.xx
>
> Created keyspaces. Sleeping 1s for propagation.
> total,interval_op_rate,interval_key_rate,avg_latency,elapsed_time
> Operation [44] retried 10 times - error inserting key 0000044
> ((UnavailableException))
>
> Operation [49] retried 10 times - error inserting key 0000049
> ((UnavailableException))
>
> Operation [7] retried 10 times - error inserting key 0000007
> ((UnavailableException))
>
> Operation [6] retried 10 times - error inserting key 0000006
> ((UnavailableException))
>
> Any idea why I am getting these things?
>
> Thank You
>
>
>



-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of DataStax, the source for professional Cassandra support
http://www.datastax.com

Re: Stress test using Java-based stress utility

Posted by Nilabja Banerjee <ni...@gmail.com>.
Running only one node..... I dnt think it is coming for the replication
factor...  I will try to sort this out.... Any other suggestions from your
side is always be helpful..

:) Thank you



On 22 July 2011 14:36, aaron morton <aa...@thelastpickle.com> wrote:

> UnavailableException is raised server side when there is less than CL nodes
> UP when the request starts.
>
> It seems odd to get it in this case because the default replication factor
> used by stress test is 1. How many nodes do you have and have you made any
> changes to the RF ?
>
> Also check the server side logs as Kirk says.
>
> Cheers
>
> -----------------
> Aaron Morton
> Freelance Cassandra Developer
> @aaronmorton
> http://www.thelastpickle.com
>
> On 22 Jul 2011, at 18:37, Kirk True wrote:
>
>  Have you checked the logs on the nodes to see if there are any errors?
>
> On 7/21/11 10:43 PM, Nilabja Banerjee wrote:
>
> Hi All,
>
> I am following this following link " *
> http://www.datastax.com/docs/0.7/utilities/stress_java *" for a stress
> test. I am getting this notification after running this command
>
> *xxx.xxx.xxx.xx= my ip*
>
> *contrib/stress/bin/stress -d xxx.xxx.xxx.xx*
>
> *Created keyspaces. Sleeping 1s for propagation.
> total,interval_op_rate,interval_key_rate,avg_latency,elapsed_time
> Operation [44] retried 10 times - error inserting key 0000044
> ((UnavailableException))
>
> Operation [49] retried 10 times - error inserting key 0000049
> ((UnavailableException))
>
> Operation [7] retried 10 times - error inserting key 0000007
> ((UnavailableException))
>
> Operation [6] retried 10 times - error inserting key 0000006
> ((UnavailableException))
> *
>
>
> *Any idea why I am getting these things?*
>
>
> *Thank You
> *
>
>
> *
> *
>
>
> --
> Kirk True
> Founder, Principal Engineer
>
> <mustardgrain.gif> <http://www.mustardgrain.com/>
>
> *Expert Engineering Firepower*
>
> About us: <twitter.gif> <http://www.twitter.com/mustardgraininc>
> <linkedin.gif> <http://www.linkedin.com/company/mustard-grain-inc.>
>
>
>

Re: Stress test using Java-based stress utility

Posted by aaron morton <aa...@thelastpickle.com>.
UnavailableException is raised server side when there is less than CL nodes UP when the request starts. 

It seems odd to get it in this case because the default replication factor used by stress test is 1. How many nodes do you have and have you made any changes to the RF ?

Also check the server side logs as Kirk says. 

Cheers

-----------------
Aaron Morton
Freelance Cassandra Developer
@aaronmorton
http://www.thelastpickle.com

On 22 Jul 2011, at 18:37, Kirk True wrote:

> Have you checked the logs on the nodes to see if there are any errors?
> 
> On 7/21/11 10:43 PM, Nilabja Banerjee wrote:
>> 
>> Hi All,
>> 
>> I am following this following link " http://www.datastax.com/docs/0.7/utilities/stress_java " for a stress test. I am getting this notification after running this command 
>> 
>> xxx.xxx.xxx.xx= my ip
>> contrib/stress/bin/stress -d xxx.xxx.xxx.xx
>> 
>> Created keyspaces. Sleeping 1s for propagation.
>> total,interval_op_rate,interval_key_rate,avg_latency,elapsed_time
>> Operation [44] retried 10 times - error inserting key 0000044 ((UnavailableException))
>> 
>> Operation [49] retried 10 times - error inserting key 0000049 ((UnavailableException))
>> 
>> Operation [7] retried 10 times - error inserting key 0000007 ((UnavailableException))
>> 
>> Operation [6] retried 10 times - error inserting key 0000006 ((UnavailableException))
>> 
>> 
>> Any idea why I am getting these things?
>> 
>> 
>> Thank You
>> 
>> 
>> 
>> 
> 
> -- 
> Kirk True 
> Founder, Principal Engineer 
> 
> <mustardgrain.gif> 
> 
> Expert Engineering Firepower 
> 
> About us: <twitter.gif> <linkedin.gif>


Re: Stress test using Java-based stress utility

Posted by Kirk True <ki...@mustardgrain.com>.
Have you checked the logs on the nodes to see if there are any errors?

On 7/21/11 10:43 PM, Nilabja Banerjee wrote:
> Hi All,
>
> I am following this following link " 
> *http://www.datastax.com/docs/0.7/utilities/stress_java *" for a 
> stress test. I am getting this notification after running this command
>
> *xxx.xxx.xxx.xx= my ip*
>
> *contrib/stress/bin/stress -d xxx.xxx.xxx.xx*
>
> *Created keyspaces. Sleeping 1s for propagation.
> total,interval_op_rate,interval_key_rate,avg_latency,elapsed_time
> Operation [44] retried 10 times - error inserting key 0000044 
> ((UnavailableException))
>
> Operation [49] retried 10 times - error inserting key 0000049 
> ((UnavailableException))
>
> Operation [7] retried 10 times - error inserting key 0000007 
> ((UnavailableException))
>
> Operation [6] retried 10 times - error inserting key 0000006 
> ((UnavailableException))
> *
>
>
> *Any idea why I am getting these things?*
>
>
> *Thank You
> *
>
>
> *
> *
>

-- 
Kirk True
Founder, Principal Engineer

Mustard Grain <http://www.mustardgrain.com>

/Expert Engineering Firepower/

About us: Mustard Grain on Twitter 
<http://www.twitter.com/mustardgraininc> Mustard Grain on LinkedIn 
<http://www.linkedin.com/company/mustard-grain-inc.>