Graceful Node Shutdown
Upon receiving a shut down request for a Runtime Node from a user, the TIBCO ActiveMatrix Platform informs all system components in that node about the impending node shut down event. The components can then perform appropriate house keeping functions before the node proceeds to shut down. However, there is a small window of time, during which some in-flight JMS message could be lost. The Graceful Node Shutdown feature handles this issue in order to minimize the likelihood of these potentially mission-critical failures during the node shutdown.
This functionality is added by enhancing the back-end processing of the existing shutdown commands; no new commands or actions have been added at this time.
With this enhancement, when the Stop command is issued for a given node, the following sequence unfolds in the Platform:
- The Service Bindings no longer accept new messages.
- A timer is used to monitor the Graceful Node Shutdown time out. This timer is set through TRA property com.tibco.amx.node.graceful.timeoutInMin.
- Request-Response Message Exchanges and Request-only Message Exchanges proceed as follows:
- For Request-Response Message Exchanges, the Service Binding ensures that Responses have been sent for all the in-flight (outstanding) messages, and then informs the platform to proceed with the shutdown.
- For Request-only Message Exchanges, the Service Binding ensures that all the in-flight (outstanding) messages have been processed and delivered to the subsequent components, and then informs the platform to proceed with the shutdown.
- The node proceeds to shut down gracefully on the following conditions:
Prerequisites
- Graceful Shutdown is supported only on the SOAP/JMS binding.
- Graceful Node Shutdown feature is available on Runtime Node if all the Applications are completely deployed on the same Runtime Node or mirrored across multiple Runtime node in a High Availability or Load Balanced configuration.
- Graceful Node Shutdown is not available for Runtime Nodes which has applications whose fragments are distributed across multiple Runtime Nodes.
- Graceful Node Shutdown is not available for Runtime Nodes which has applications containing Policies