Life Cycle of a Production
Life Cycle of a Production
Production Startup
When a production starts, the sequence of actions is as follows:
-
The production class is instantiated; its optional OnStart() method executes.
-
The production instantiates each business operation and executes its optional OnProductionStart() method.
-
The production instantiates each business process and executes its optional OnProductionStart() method.
-
The production clears the business metric cache of any metric values left over from a previous run.
-
The production instantiates each business service and executes its optional OnProductionStart() method.
-
The production processes any items already placed in queues. This includes asynchronous messages that were queued when the production stopped.
-
The production now accepts input from outside InterSystems IRIS® data platform.
Production Shutdown
When a production stops, the sequence of actions is as follows:
-
The production takes each business service offline and executes its optional OnProductionStop() method. This action stops all requests from outside InterSystems IRIS.
-
All business hosts receive a signal to become Quiescent.
-
All queues go into a Quiescent state. This means that from this point forward, business hosts can only process queued messages with High priority (synchronous messages). Asynchronous messages remain on their respective queues.
-
The production finishes processing all synchronous messages to the best of its ability.
-
The production takes each business process offline and executes its optional OnProductionStop() method.
-
The production takes each business operation offline and executes its optional OnProductionStop() method.
-
The production goes offline. InterSystems IRIS executes the optional OnStop() method in the production class.