incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Coli <rc...@digg.com>
Subject Re: why the sum of all the nodes' loads is much bigger than the size of the inserted data?
Date Fri, 30 Apr 2010 18:10:41 GMT
On 4/30/10 5:21 AM, Bingbing Liu wrote:
> hi,
> thanks for your help.
> i run the nodetool -h **** compact
> but the load keep the same , is there anyone can tell me why?

"compact" and "cleanup" are two different operations. "compact" does a
major compaction. "cleanup" is a superset of "compact" which does a
major compaction and also checks whether the node is responsible for
this data and does not write it to the new sstable if it isn't. If you
resize your cluster but never run a "cleanup", you will not reclaim
space used by keys on the node(s) being split.

./src/java/org/apache/cassandra/tools/NodeCmd.java
"
        else if (cmdName.equals("cleanup"))
        {
            probe.forceTableCleanup();
        }
        else if (cmdName.equals("compact"))
        {
            probe.forceTableCompaction();
        }
"

=Rob

Mime
View raw message