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:
- Auto Switchover Timeout—Specify the wait timeout (in seconds) before the designated Master promotes itself to the Active again after recovery. The default is set to 60 seconds.
- Failover Timeout—Specify the Timeout (in seconds) before the Standby node promotes itself to the Master state. The default is set to 300 seconds.
- Standby Start Timeout—The standby start timer is required in a scenario when both the Versa Director nodes come up (activate) at the same time. The node that is not designated as the active node waits for this timeout, thereby giving a chance to the designated master to set itself as the active node. The default is set to 100 seconds.
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.