Gracefully shutting down the cluster nodes

classic Classic list List threaded Threaded
2 messages Options
prasadbhalerao1983 prasadbhalerao1983
Reply | Threaded
Open this post in threaded view
|

Gracefully shutting down the cluster nodes

Hi,
I want shutdown the cluster nodes one by one (kind of rolling restart) for upgrade purpose. 
Is there anyway to shutdown the ignite node safely as follows
1) it will wait for already executing task to complete.
2) it won't accept any new task submitted, instead the new tasks will be executed on its secondary node which will become primary once the previous primary is down.
 I am not using ignite.sh to start node. I am starting ignite as java embedded mode.

Thanks,
Prasad
ilya.kasnacheev ilya.kasnacheev
Reply | Threaded
Open this post in threaded view
|

Re: Gracefully shutting down the cluster nodes

Hello!

What kind of task are you talking about? Ignite has failover, so usually task will be transparently transferred to other node.

To be extra sure you can call Ignition.stop(false) to make sure no current tasks are interrupted.

Regards,
--
Ilya Kasnacheev


вт, 8 окт. 2019 г. в 20:49, Prasad Bhalerao <[hidden email]>:
Hi,
I want shutdown the cluster nodes one by one (kind of rolling restart) for upgrade purpose. 
Is there anyway to shutdown the ignite node safely as follows
1) it will wait for already executing task to complete.
2) it won't accept any new task submitted, instead the new tasks will be executed on its secondary node which will become primary once the previous primary is down.
 I am not using ignite.sh to start node. I am starting ignite as java embedded mode.

Thanks,
Prasad