Here are the options to shut down a Hazelcast member gracefully (which means waiting the migration & backups to be completed):
1- You can call HazelcastInstance#shutdown() API programmatically.
2- You can use JMX API's shutdown method. --> Using something like Jolokia which provides REST-like access to JMX should come in handy for you.
3- You can set hazelcast.shutdownhook.policy=GRACEFUL on member configs and then do shutdowns by using kill -15 <PID> command or using stop.sh script. After that, HazelcastInstance will gracefully shutdown.
4. From Management Center. I know you are not using it , but recommend it for Production.
Thanks,
Sharath
> To unsubscribe from this group and stop receiving emails from it, send an email to haze...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/8655d2e5-7fdc-4232-bef3-4335d7e4781c%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "Hazelcast" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/hazelcast/P5eJF1t2_yg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to hazelcast+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/CAN5h8r645j3jxgvmMT0U6iDu8jHmHEWdPBpJujF2cdM4GRLM%2BA%40mail.gmail.com.