Fw: How to log the details of the updated data locally

2013-10-01 Thread sathiya prabhu


Hi all,



In cassandra cluster, once a write/update is successful to the particular 
instance locally, i want to log the data that is updated and its timestamps 
separately in a file.. In which class it will be more appropriate to do this.. 

To the extent i explored the codebase, it's possible to do that in Keyspace 
class (apply method) in db package.. But i don't know how to retrieve the 
timestamp details from the mutation object.. Is Keyspace class is appropriate 
for my purpose.. If yes, please kindly provide me some ideas to retrieve 
timestamp details from mutation object(RowMutation)..

Any help is appreciable.. Looking forward for your kind replies.. Thanks in 
advance..

Thank you.

Re: PendingTasks: What does it mean inside Cassandra?

2013-10-01 Thread Robert Coli
On Wed, Aug 28, 2013 at 5:47 AM, Girish Kumar wrote:

> When high number of Pending tasks are showing up what it means to
> cassandra? What are the reasons for high number pending tasks?  Does that
> mean Cassandra is overloaded ?
>

It means that tasks have been queued to run inside of a Thread Pool, but
are not currently running. A given task moves from Pending to Active state,
and then Completed. "Blocked" is "I attempted to move something from
Pending to Active, but was unable to."

http://www.datastax.com/docs/1.0/operations/monitoring
"
Cassandra maintains distinct thread pools for different stages of
execution. Each of these thread pools provide statistics on the number of
tasks that are active, pending and completed. Watching trends on these
pools for increases in the pending tasks column is an excellent indicator
of the need to add additional capacity.
"

=Rob