Manual Active/Standby Master Switchover
Symptom
When maintaining the active Master node during cluster running, you need to manually perform an active/standby switchover.
Key Process and Cause Analysis
None
Conclusion and Solution
During the active/standby Master switchover, Donau Scheduler becomes unavailable for a period of time. If you run CLI commands during this period of time, an error message is displayed. For details, see section in the HPC 22.0.RC1 User Guide.
After ensuring that the specified Master server is available, use either of the following methods:
Method 1: Restart services on the active Master node so that the services can be switched to the standby Master node during the interruption and continue to provide Donau Scheduler job management and resource scheduling capabilities.
- Use PuTTY to log in to the active Master node as the DonauKit O&M user, for example, donau_guest.
- Run the following command to switch to the root user:
su - root
- Run the following command to restart the Master service:
systemctl restart batch-master.service
Method 2: Configure the Primary Master. After the active Master recovers, services are automatically switched back to the active Master, which continues to provide Donau Scheduler job management and resource scheduling capabilities.
- Use PuTTY to log in to the target Master node as the DonauKit O&M user, for example, donau_guest.
- Run the following command to switch to the root user:
su - root
- Run the following command to open the configuration file:
vi /opt/batch/master/conf/master.properties
- Press i to enter the edit mode and change the value of master.primary to true.
master.primary=true
- Press Esc, type :wq!, and press Enter to save the settings and exit.
- Run the following command to restart the Master service: The Master obtains a higher priority and becomes the active Master.
systemctl restart batch-master.service