Versa Director HA Failover Timeout Options


Question:

What are the parameters that control Versa Director HA config?

Solution:

These parameters control the switch-over of the Standby to Active and back to Master after recovery:

Example: HA configuration of Versa Director

Administrator@Versa-Director-1% show vnmsha
ha-config {
    failover-timeout        300;
    standby-start-timeout     100;
    auto-switchover-timeout 60;
    enable-auto-switchover  false;
}
[ok][2017-05-09 18:52:44]
 
[edit]
Administrator@Versa-Director-1%

Example: Selecting a designated master

You have to make changes to the configuration parameter to select a Master and enable auto switchover. Refer to this example that shows how while configuring HA, one of the Versa Directors is configured as the designated Master, which then becomes Master after committing these configuration changes:


VD1 (Active)
Administrator@Versa-Director-1> request vnmsha actions get-vnmsha-details fetch-peer-vnmsha-details true 
status SUCCESS
vnmsha-details {
    mgmt-ip-address 10.119.231.33
    enabled true
    designated-master true
    mode master
    peer-vnmsha-details {
        peer-vnmsha-detail {
            mgmt-ip-address 10.118.20.145
            enabled true
            designated-master false
            mode slave
        }
    }
}
[ok][2017-05-08 22:05:12]
 
VD2: [Standby]
Administrator@Versa-Director-2> request vnmsha actions get-vnmsha-details fetch-peer-vnmsha-details true
status SUCCESS
vnmsha-details {
    mgmt-ip-address 10.118.20.145
    enabled true
    designated-master false
    mode slave
    peer-vnmsha-details {
        peer-vnmsha-detail {
            mgmt-ip-address 10.119.231.33
            enabled truer 
            designated-master true
            mode master
        }
    }
}


NOTE: If the designated Master comes up later (due to connectivity loss or some other issue), it is promoted to Master only if the auto-switch over knob is enabled.