You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by ght230 <gh...@163.com> on 2017/03/20 03:10:34 UTC

Can I let Ignite to do rebalance at a particular time?

When Ignite doing rebalance, sometimes it will affect other normal
processing.

Can I let Ignite only to do rebalance at a particular time if necessary,
such as at 0:00 every day?



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Can-I-let-Ignite-to-do-rebalance-at-a-particular-time-tp11301.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Can I let Ignite to do rebalance at a particular time?

Posted by ght230 <gh...@163.com>.
what is the difference between
"CacheConfiguration.setRebalanceMode(CacheRebalanceMode.NONE)"  and
"CacheConfiguration.setRebalanceDelay(-1)"? 

I think both of them need to start rebalance manually by calling
IgniteCache.rebalance().

BTW, At the particular time, Can I know whether it need to do rebalance or
not? Because I just want to do rebalance if necessary.



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Can-I-let-Ignite-to-do-rebalance-at-a-particular-time-tp11301p11309.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Can I let Ignite to do rebalance at a particular time?

Posted by Dmitry Karachentsev <dk...@gridgain.com>.
Hi,

Totally agree wit that. And it should be possible to start re-balancing 
from client node too.

 > But I think it is more convenient to start rebalancing manually from 
management console, is it right?

I don't see the difference on how to start re-balancing: from Ignite API 
or console, result will be the same.

-Dmitry.

24.03.2017 02:55, Valentin Kulichenko \u043f\u0438\u0448\u0435\u0442:
> Cross-posting to dev.
>
> Guys,
>
> Is there any reason for such implementation? Does it ever makes sense 
> to trigger rebalancing on only one node?
>
> I think rebalance() method should broadcast automatically and do the 
> job on all nodes. Just in case, we can also add localRebalance() 
> method. This will be more intuitive and also more consistent with 
> other APIs, like loadCache/localLoadCache.
>
> -Val
>
> On Wed, Mar 22, 2017 at 11:52 PM, ght230 <ght230@163.com 
> <ma...@163.com>> wrote:
>
>     Thank you for your guidance.
>
>     I will try calling IgniteCache.rebalance()  via compute broadcast
>     task.
>
>     But I think it is more convenient to start rebalancing manually from
>     management console, is it right?
>
>
>
>     --
>     View this message in context:
>     http://apache-ignite-users.70518.x6.nabble.com/Can-I-let-Ignite-to-do-rebalance-at-a-particular-time-tp11301p11381.html
>     <http://apache-ignite-users.70518.x6.nabble.com/Can-I-let-Ignite-to-do-rebalance-at-a-particular-time-tp11301p11381.html>
>     Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>
>


Re: Can I let Ignite to do rebalance at a particular time?

Posted by Dmitry Karachentsev <dk...@gridgain.com>.
Hi,

Totally agree wit that. And it should be possible to start re-balancing 
from client node too.

 > But I think it is more convenient to start rebalancing manually from 
management console, is it right?

I don't see the difference on how to start re-balancing: from Ignite API 
or console, result will be the same.

-Dmitry.

24.03.2017 02:55, Valentin Kulichenko \u043f\u0438\u0448\u0435\u0442:
> Cross-posting to dev.
>
> Guys,
>
> Is there any reason for such implementation? Does it ever makes sense 
> to trigger rebalancing on only one node?
>
> I think rebalance() method should broadcast automatically and do the 
> job on all nodes. Just in case, we can also add localRebalance() 
> method. This will be more intuitive and also more consistent with 
> other APIs, like loadCache/localLoadCache.
>
> -Val
>
> On Wed, Mar 22, 2017 at 11:52 PM, ght230 <ght230@163.com 
> <ma...@163.com>> wrote:
>
>     Thank you for your guidance.
>
>     I will try calling IgniteCache.rebalance()  via compute broadcast
>     task.
>
>     But I think it is more convenient to start rebalancing manually from
>     management console, is it right?
>
>
>
>     --
>     View this message in context:
>     http://apache-ignite-users.70518.x6.nabble.com/Can-I-let-Ignite-to-do-rebalance-at-a-particular-time-tp11301p11381.html
>     <http://apache-ignite-users.70518.x6.nabble.com/Can-I-let-Ignite-to-do-rebalance-at-a-particular-time-tp11301p11381.html>
>     Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>
>


Re: Can I let Ignite to do rebalance at a particular time?

Posted by Valentin Kulichenko <va...@gmail.com>.
Cross-posting to dev.

Guys,

Is there any reason for such implementation? Does it ever makes sense to
trigger rebalancing on only one node?

I think rebalance() method should broadcast automatically and do the job on
all nodes. Just in case, we can also add localRebalance() method. This will
be more intuitive and also more consistent with other APIs, like
loadCache/localLoadCache.

-Val

On Wed, Mar 22, 2017 at 11:52 PM, ght230 <gh...@163.com> wrote:

> Thank you for your guidance.
>
> I will try calling IgniteCache.rebalance()  via compute broadcast task.
>
> But I think it is more convenient to start rebalancing manually from
> management console, is it right?
>
>
>
> --
> View this message in context: http://apache-ignite-users.
> 70518.x6.nabble.com/Can-I-let-Ignite-to-do-rebalance-at-a-
> particular-time-tp11301p11381.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>

Re: Can I let Ignite to do rebalance at a particular time?

Posted by Valentin Kulichenko <va...@gmail.com>.
Cross-posting to dev.

Guys,

Is there any reason for such implementation? Does it ever makes sense to
trigger rebalancing on only one node?

I think rebalance() method should broadcast automatically and do the job on
all nodes. Just in case, we can also add localRebalance() method. This will
be more intuitive and also more consistent with other APIs, like
loadCache/localLoadCache.

-Val

On Wed, Mar 22, 2017 at 11:52 PM, ght230 <gh...@163.com> wrote:

> Thank you for your guidance.
>
> I will try calling IgniteCache.rebalance()  via compute broadcast task.
>
> But I think it is more convenient to start rebalancing manually from
> management console, is it right?
>
>
>
> --
> View this message in context: http://apache-ignite-users.
> 70518.x6.nabble.com/Can-I-let-Ignite-to-do-rebalance-at-a-
> particular-time-tp11301p11381.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>

Re: Can I let Ignite to do rebalance at a particular time?

Posted by ght230 <gh...@163.com>.
Thank you for your guidance.

I will try calling IgniteCache.rebalance()  via compute broadcast task.

But I think it is more convenient to start rebalancing manually from
management console, is it right?



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Can-I-let-Ignite-to-do-rebalance-at-a-particular-time-tp11301p11381.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Can I let Ignite to do rebalance at a particular time?

Posted by dkarachentsev <dk...@gridgain.com>.
Hi,

Sorry, I confused you. For proper rebalance work you need to set rebalance
mode to SYNC or ASYNC, rebalance delay to -1 and call
IgniteCache.rebalance() on each node that participate in cache. The better
way to do this is via compute broadcast task.

Rebalance mode NONE disables rebalancing at all, that's why it doesn't work
for you.

Thanks!

-Dmitry.



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Can-I-let-Ignite-to-do-rebalance-at-a-particular-time-tp11301p11369.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Can I let Ignite to do rebalance at a particular time?

Posted by ght230 <gh...@163.com>.
I have tried CacheConfiguration.setRebalanceMode(CacheRebalanceMode.NONE),
and called IgniteCache.rebalance() later, but the data did not rebalance
between the nodes.

Is there any problem with my usage?



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Can-I-let-Ignite-to-do-rebalance-at-a-particular-time-tp11301p11363.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Can I let Ignite to do rebalance at a particular time?

Posted by dkarachentsev <dk...@gridgain.com>.
Hi,

Yes, you can set for caches that you want
CacheConfiguration.setRebalanceMode(CacheRebalanceMode.NONE), and call
IgniteCache.rebalance() when you need. To schedule rebalancing you may refer
IgniteScheduler [1].

-Dmitry.

[1] https://apacheignite.readme.io/v1.9/docs/cron-based-scheduling



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Can-I-let-Ignite-to-do-rebalance-at-a-particular-time-tp11301p11304.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.