You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Weijun Li <we...@gmail.com> on 2010/03/12 18:40:25 UTC
How to force GC in Cassandra?
Suppose I insert a lot of new items but also delete a lot of new items
daily, it will be ideal if I can force GC to happen during mid night (when
traffic is low). Is there any way to manually force GC to be executed? In
this way I can add a cronjob to trigger gc in mid night. I tried nodetool
and the JMX interface but they don't seem to have that.
-Weijun
Re: How to force GC in Cassandra?
Posted by Weijun Li <we...@gmail.com>.
Thanks Jonathan! I looked into your code and guessed that compaction is the
one that cleans all deleted columns from sstable.
-Weijun
On Fri, Mar 12, 2010 at 12:05 PM, Jonathan Ellis <jb...@gmail.com> wrote:
> I think you mean compaction?
>
> You can use nodeprobe / nodetool for that.
>
> http://wiki.apache.org/cassandra/NodeProbe
>
> On Fri, Mar 12, 2010 at 12:40 PM, Weijun Li <we...@gmail.com> wrote:
> > Suppose I insert a lot of new items but also delete a lot of new items
> > daily, it will be ideal if I can force GC to happen during mid night
> (when
> > traffic is low). Is there any way to manually force GC to be executed? In
> > this way I can add a cronjob to trigger gc in mid night. I tried nodetool
> > and the JMX interface but they don't seem to have that.
> >
> > -Weijun
> >
>
Re: How to force GC in Cassandra?
Posted by Jonathan Ellis <jb...@gmail.com>.
I think you mean compaction?
You can use nodeprobe / nodetool for that.
http://wiki.apache.org/cassandra/NodeProbe
On Fri, Mar 12, 2010 at 12:40 PM, Weijun Li <we...@gmail.com> wrote:
> Suppose I insert a lot of new items but also delete a lot of new items
> daily, it will be ideal if I can force GC to happen during mid night (when
> traffic is low). Is there any way to manually force GC to be executed? In
> this way I can add a cronjob to trigger gc in mid night. I tried nodetool
> and the JMX interface but they don't seem to have that.
>
> -Weijun
>