Stopping and starting the applications in a deployed integration runtime
From your App Connect Dashboard instance, you can stop or start individual applications that are running in an integration runtime. The stop or start action is applied to all replica pods that are provisioned for the integration runtime to ensure that a consistent state is maintained across the pods. This function might be useful for scaling or resource management, to force a restart, or to switch off problematic applications.
The term application includes applications, REST APIs, and services.
About this task
A configuration object of type WorkdirOverride
is
generated, which the integration runtime can use to determine the state of its applications. The
WorkdirOverride
configuration type uses a TXT file to specify override values that
can be applied to one or more BAR files in the integration work directory before an integration is
started. These overrides are used to run ibmint apply overrides commands against
the integration work directory to replace configurable values in the BAR deployment descriptor
(broker.xml) with the new values in the TXT file. For more information about
this configuration type, see WorkdirOverride type.
By default, the configuration object is named
integrationRuntimeName-start-mode
and it applies overrides for
the startMode configurable property, which is typically specified as follows in
a broker.xml file:
<ConfigurableProperty uri="startMode"/>
The following override is automatically applied to configure an application's run state when you stop an application:
applicationName/startMode=Manual
When you select the Stop option for an application in the Dashboard UI,
the integrationRuntimeName-start-mode
configuration object is
generated with the override details. This configuration object is then automatically referenced in
the spec.configurations setting in the integration runtime CR. The CR update
results in an update of the integration runtime deployment, which in turn causes all the integration
runtime replica pods to restart with the new
integrationRuntimeName-start-mode
configuration applied. When
the new pods are running, the application is then stopped as requested. If you later select the
Start option for this application in the Dashboard UI, the configuration
object and its CR reference are deleted, and the change is rolled out across all the replica pods.
Although multiple configuration objects of type WorkdirOverride
are allowed per
integration runtime, avoid using an additional WorkdirOverride
configuration object
to change the state of the same application that you are starting or stopping from the Dashboard UI,
because the final state will depend on which override is applied last.
Procedure
To stop or start an integration runtime's applications, complete the following steps: