You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by Alexey Kuznetsov <ak...@gridgain.com> on 2015/08/04 05:24:00 UTC

Cache rebalance state

Hi!

It is possible to collect cache rebalancing state?
In node log I see messages about rebalancing started / in progress /
completed.
So node knows cache rebalancing state.
How I could access this state? I link to class / method will be enough for
me.

Thanks.
-- 
Alexey Kuznetsov
GridGain Systems
www.gridgain.com

Re: Cache rebalance state

Posted by Alexey Kuznetsov <ak...@gridgain.com>.
Hi!

I investigated code a little and found that GridDhtPreloader class is
printing rebalance state messages.

So, I'm thinking to add a volatile boolean variable "preloading" to that
class that will be updated on rebalance start/stop.
And this variable will be available via getter.

And in GridDhtCacheAdapter class we already have access to preloader.
This will be enough for me.

Thoughts?

If proposed modifications is OK I will create an issue and provide a patch.

-- 
Alexey Kuznetsov
GridGain Systems
www.gridgain.com