我要评分
获取效率
正确性
完整性
易理解

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 Donau Scheduler > Cluster Management > High Availability > Master HA 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.

  1. Use PuTTY to log in to the active Master node as the DonauKit O&M user, for example, donau_guest.
  2. Run the following command to switch to the root user:

    su - root

  3. 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.

  1. Use PuTTY to log in to the target Master node as the DonauKit O&M user, for example, donau_guest.
  2. Run the following command to switch to the root user:

    su - root

  3. Run the following command to open the configuration file:

    vi /opt/batch/master/conf/master.properties

  4. Press i to enter the edit mode and change the value of master.primary to true.
    master.primary=true
  5. Press Esc, type :wq!, and press Enter to save the settings and exit.
  6. 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