Striim

Welcome to the Striim Help Center and Community Site

3.10.3 Automatically restarting an application after a crash

Follow

If known transient conditions such as network outages cause an application to crash, you may configure it to restart automatically after a set period of time. The syntax is:

CREATE APPLICATION <name> AUTORESUME [ MAXRETRIES <integer> ] [ RETRYINTERVAL <interval in seconds> ];

The default values are two retries with a 60-second interval before each. Thus CREATE APPLICATION MyApp AUTORESUME; means that if MyApp crashes, Striim will wait one minute and restart it. If MyApp crashes a second time, Striim will again wait one minute and restart it, If MyApp crashes a third time, Striim will leave it in the CRASH state.

Caution

Be sure to set the RETRYINTERVAL high enough that the transient condition should have resolved itself and, if recovery is enabled, to also allow Striim enough time to recover the application (see Recovering applications).

To disable auto-resume, stop (or quiesce) and undeploy the application, then enter ALTER APPLICATION <name> DISABLE AUTORESUME;. To enable auto-resume again, undeploy the app and enter ALTER APPLICATION <name> ENABLE AUTORESUME, optionally including MAXRETRIES or RETRYINTERVAL.

You may also configure auto-resume settings in Flow Designer's App Settings.

Tip

If you enable auto-resume for an application, consider configuring a crash alert for it as well (see Sending alerts about servers and applications).

3.10.3
Was this article helpful?
0 out of 0 found this helpful

Comments