What is the best way to force a Scheduler failover?

book

Article ID: 77038

calendar_today

Updated On:

Products

CA Workload Automation AE - Business Agents (AutoSys) CA Workload Automation AE - Scheduler (AutoSys) CA Workload Automation Agent

Issue/Introduction



What is the best way to force a failover from the primary Scheduler to the shadow? The typical method of stopping the Scheduler service via the 'unisrvcntr' command on UNIX or the Windows Service Manager does not cause a failover.

Environment

Release:
Component: ATSYS

Resolution

Use the sendevent command to post a 'STOP_DEMON' event with the following syntax...

sendevent -E STOP_DEMON -v FAILOVER

Sending the STOP_DEMON event in this manner will stop the primary Scheduler and tell the shadow Scheduler to take over processing.

 

Additional Information

If the PrimaryFailbackMode in the instance configuration is set to '1', this same command can be used to failback the shadow to the primary once the primary is restarted. In this scenario, the shadow restarts itself and goes back to shadow mode rather than shutting down completely.