To stay prepared for unplanned downtime, complete a planned role swap from your master server to your standby server every two months. This is best completed during non-peak times.
Note: If you're switching to your standby server due to unplanned downtime, skip to the Activating your Standby Server section below.
Shutting Down Your Master Server
Make sure all users are logged out of Skybot Scheduler.
Hold your job queues and stop the Scheduler.
To hold job queues, go to the Agents page and click Lock all Agent Job Queues.
To stop the Scheduler, select Job Scheduler from the Server menu. On the Job Scheduler page click Stop Scheduler.
Check the standby server to verify that your database is up-to-date. If there are files that still need to be duplicated, the File Replication Requests displays a number. When the number is 0, the database is up to date.
Shut down your master server.
Activating your Standby Server
Switch your standby to master by running the following script (located in your Skybot Scheduler directory):
For Windows: standbyToMaster.exe
For UNIX/Linux: standby2master.sh
Wait until all of your agents are connected and active. To check agents, log on to your new master server and go to the Agents page.
Start the Scheduler and unlock your Job Queues.
To start the Scheduler, select Job Scheduler from the Server menu. On the Job Scheduler page click Start Scheduler.
To unlock your Job Queues, go to the Agents page and click Unlock all Agent Job Queues.
All job schedule activity will now continue as normal on the new master server.
Converting the Original Master to the New Standby Server
Restart your original master server and run the following script:
For Windows: masterToStandby.exe
For UNIX/Linux: master2standby.sh
Make sure you have the admin password, network address, and listen port of the new master server. To find the network address and listen port, select Server Properties from the Server menu.
Note: Converting the original master to standby requires replicating the database. If your database is large, make sure your server has enough free disk space. Depending on the size of the database and the speed of your network and PC, this may take up to 30 minutes.
To verify that the script completed and replication is working, log on to Skybot Scheduler on the master server using a web browser.
Note: The standby server does not display on the Agents page.
Under the Current Status section of the homepage, the STANDBY SERVER status should be Active with a green background:
You can also check the standby server by typing its IP address in a web browser. A note states that the standby server is active and connecting to your master server:
Note: In a planned role swap, the database should be up-to-date. However, if a job completes and is not recognized by the master server, its record is stored under Server History.