RE: How to measure disk space used by a keyspace?

2015-07-01 Thread SEAN_R_DURITY
That’s ok for a single node, but to answer the question, “how big is my table 
across the cluster?” it would be much better if the cluster could provide an 
answer.

Sean Durity

From: Jonathan Haddad [mailto:j...@jonhaddad.com]
Sent: Monday, June 29, 2015 8:15 AM
To: user
Subject: Re: How to measure disk space used by a keyspace?

If you're looking to measure actual disk space, I'd use the du command, 
assuming you're on a linux: http://linuxconfig.org/du-1-manual-page

On Mon, Jun 29, 2015 at 2:26 AM shahab 
shahab.mok...@gmail.commailto:shahab.mok...@gmail.com wrote:
Hi,

Probably this question has been already asked in the mailing list, but I 
couldn't find it.

The question is how to measure disk-space used by a keyspace, column family 
wise, excluding snapshots?

best,
/Shahab



The information in this Internet Email is confidential and may be legally 
privileged. It is intended solely for the addressee. Access to this Email by 
anyone else is unauthorized. If you are not the intended recipient, any 
disclosure, copying, distribution or any action taken or omitted to be taken in 
reliance on it, is prohibited and may be unlawful. When addressed to our 
clients any opinions or advice contained in this Email are subject to the terms 
and conditions expressed in any applicable governing The Home Depot terms of 
business or client engagement letter. The Home Depot disclaims all 
responsibility and liability for the accuracy and content of this attachment 
and for any damages or losses arising from any inaccuracies, errors, viruses, 
e.g., worms, trojan horses, etc., or other items of a destructive nature, which 
may be contained in this attachment and shall not be liable for direct, 
indirect, consequential or special damages in connection with this e-mail 
message or its attachment.


Re: How to measure disk space used by a keyspace?

2015-07-01 Thread graham sanderson
If you are pushing metric data to graphite, there is

org.apache.cassandra.metrics.keyspace.keyspace_name.LiveDiskSpaceUsed.value

… for each node; Easy enough to graph the sum across machines.

Metrics/JMX are tied together in C*, so there is an equivalent value exposed 
via JMX… I don’t know what it is called off the top of my head, but would be 
something similar to the above.

 On Jul 1, 2015, at 9:28 AM, sean_r_dur...@homedepot.com wrote:
 
 That’s ok for a single node, but to answer the question, “how big is my table 
 across the cluster?” it would be much better if the cluster could provide an 
 answer.
  
 Sean Durity
  
 From: Jonathan Haddad [mailto:j...@jonhaddad.com mailto:j...@jonhaddad.com] 
 Sent: Monday, June 29, 2015 8:15 AM
 To: user
 Subject: Re: How to measure disk space used by a keyspace?
  
 If you're looking to measure actual disk space, I'd use the du command, 
 assuming you're on a linux: http://linuxconfig.org/du-1-manual-page 
 http://linuxconfig.org/du-1-manual-page
  
 On Mon, Jun 29, 2015 at 2:26 AM shahab shahab.mok...@gmail.com 
 mailto:shahab.mok...@gmail.com wrote:
 Hi,
  
 Probably this question has been already asked in the mailing list, but I 
 couldn't find it.
  
 The question is how to measure disk-space used by a keyspace, column family 
 wise, excluding snapshots?
  
 best,
 /Shahab
 
 
 The information in this Internet Email is confidential and may be legally 
 privileged. It is intended solely for the addressee. Access to this Email by 
 anyone else is unauthorized. If you are not the intended recipient, any 
 disclosure, copying, distribution or any action taken or omitted to be taken 
 in reliance on it, is prohibited and may be unlawful. When addressed to our 
 clients any opinions or advice contained in this Email are subject to the 
 terms and conditions expressed in any applicable governing The Home Depot 
 terms of business or client engagement letter. The Home Depot disclaims all 
 responsibility and liability for the accuracy and content of this attachment 
 and for any damages or losses arising from any inaccuracies, errors, viruses, 
 e.g., worms, trojan horses, etc., or other items of a destructive nature, 
 which may be contained in this attachment and shall not be liable for direct, 
 indirect, consequential or special damages in connection with this e-mail 
 message or its attachment.



smime.p7s
Description: S/MIME cryptographic signature


Re: How to measure disk space used by a keyspace?

2015-07-01 Thread Jan
nodetool cfstats
would be your best bet.   Sum all the column families info.,  within a keyspace 
to get to the number you are looking for. 
Jan/ 


 On Wednesday, July 1, 2015 9:05 AM, graham sanderson gra...@vast.com 
wrote:
   

 If you are pushing metric data to graphite, there is
org.apache.cassandra.metrics.keyspace.keyspace_name.LiveDiskSpaceUsed.value
… for each node; Easy enough to graph the sum across machines.
Metrics/JMX are tied together in C*, so there is an equivalent value exposed 
via JMX… I don’t know what it is called off the top of my head, but would be 
something similar to the above.

On Jul 1, 2015, at 9:28 AM, sean_r_dur...@homedepot.com wrote:
That’s ok for a single node, but to answer the question, “how big is my table 
across the cluster?” it would be much better if the cluster could provide an 
answer. Sean Durity From: Jonathan Haddad [mailto:j...@jonhaddad.com] 
Sent: Monday, June 29, 2015 8:15 AM
To: user
Subject: Re: How to measure disk space used by a keyspace?  If you're looking 
to measure actual disk space, I'd use the du command, assuming you're on a 
linux: http://linuxconfig.org/du-1-manual-page  On Mon, Jun 29, 2015 at 2:26 AM 
shahab shahab.mok...@gmail.com wrote:
Hi,  Probably this question has been already asked in the mailing list, but I 
couldn't find it.  The question is how to measure disk-space used by a 
keyspace, column family wise, excluding snapshots?  best,/Shahab


The information in this Internet Email is confidential and may be legally 
privileged. It is intended solely for the addressee. Access to this Email by 
anyone else is unauthorized. If you are not the intended recipient, any 
disclosure, copying, distribution or any action taken or omitted to be taken in 
reliance on it, is prohibited and may be unlawful. When addressed to our 
clients any opinions or advice contained in this Email are subject to the terms 
and conditions expressed in any applicable governing The Home Depot terms of 
business or client engagement letter. The Home Depot disclaims all 
responsibility and liability for the accuracy and content of this attachment 
and for any damages or losses arising from any inaccuracies, errors, viruses, 
e.g., worms, trojan horses, etc., or other items of a destructive nature, which 
may be contained in this attachment and shall not be liable for direct, 
indirect, consequential or special damages in connection with this e-mail 
message or its attachment.



  

Re: How to measure disk space used by a keyspace?

2015-06-29 Thread Jonathan Haddad
If you're looking to measure actual disk space, I'd use the du command,
assuming you're on a linux: http://linuxconfig.org/du-1-manual-page

On Mon, Jun 29, 2015 at 2:26 AM shahab shahab.mok...@gmail.com wrote:

 Hi,

 Probably this question has been already asked in the mailing list, but I
 couldn't find it.

 The question is how to measure disk-space used by a keyspace, column
 family wise, excluding snapshots?

 best,
 /Shahab