Failover in a passive mode data center

When one DC goes down in active/active mode, failover will happen automatically in the other DC's active copy of that same application. However, in an active/passive mode, the application in the passive data center only monitors the health of the active DC. When that active DC fails, the passive side should detect the failure and start the application. This task can be automated via a shell script.

The CrossDataCenterFailoverPassiveSample application from Learning through samples demonstrates this flow by calling the launch_app(rstring) native function to launch a shell script which starts the required application in the DC that is failing over. Please refer to that sample to learn more.

Additionally, see the etc/crossdc-failover.sh script in the toolkit for an example of a shell script that starts an application.