You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Wolfgang Meyerle <wo...@googlemail.com> on 2020/11/13 12:58:09 UTC
Proper shutdown from C++ environment
Another question according a proper shutdown of ignite.
Do I have to catch the sigint signal to properly shutdown apache ignite
in my environment and set the node to inactive or is the code in ignite
catering for this itself? Is it safe to install signal handlers with the
usage of the ignite fat client?
Regards,
Wolfgang
Re: Proper shutdown from C++ environment
Posted by Ilya Kasnacheev <il...@gmail.com>.
Hello!
I assume that JVM will install handlers of its own, which will trigger Java
shutdown procedures and Ignite node will be stopped.
Regards,
--
Ilya Kasnacheev
пт, 13 нояб. 2020 г. в 16:42, Lieuwe <li...@novatiq.com>:
> You would only get SIGINT if you run your application in a shell and ctrl-c
> it right? Can you not 'wait' on a key press and stop ignite properly
> instead?
>
> I looked at the same issue recently and I wouldn't expect ignite to do
> anything that isn't documented - even if it does it now, it may not do it
> in
> the next release. I run mine using systemctl and a signal handler that
> does
>
> ignite::Ignition::StopAll(false);
>
> works well.
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>
Re: Proper shutdown from C++ environment
Posted by Lieuwe <li...@novatiq.com>.
You would only get SIGINT if you run your application in a shell and ctrl-c
it right? Can you not 'wait' on a key press and stop ignite properly
instead?
I looked at the same issue recently and I wouldn't expect ignite to do
anything that isn't documented - even if it does it now, it may not do it in
the next release. I run mine using systemctl and a signal handler that does
ignite::Ignition::StopAll(false);
works well.
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/