Configuration of Virtual IP in Two-node Active-Passive Cluster
Deployments using HyWorks Controller active-passive two node deployments, administrator can configure a virtual IP on controller cluster and use the virtual IP to connect from endpoints. This feature requires the virtual IP to be managed by HyWorks Controller and to be attached only on those server, which is running with Primary HyWorks Controller role. An important use-case is where the end-points are working in write-protected mode
Prerequisites
To enable virtual IP feature, following prerequisites are needed:
-
Deployment type: Two-node Active-Passive Deployment
-
Network adapter on HyWorks Controller servers
-
Must not have any spaces or special characters.
-
Both HyWorks Controller servers must have network adapter with same name.
-
-
Static IP address should be configured on both HyWorks Controller Servers.
-
Recommended Release: v3.4-SP1-HF2 (Some important bug-fixes are included in this hotfix)
How to configure Virtual IP
-
Open browser and navigate to HyWorks Management Console of primary HyWorks Controller.
-
Go to HyWorks Management Console > Settings > General > Advance Settings.
-
Apply group filter Clustering to and search with string virtual to view relevant configurations.
-
Locate following configurations and update as specified below:
-
Virtual IP address: Virtual IP address to be used by controller cluster. This should not be used anywhere in the network and should be from the same subnet in which HyWorks Controller servers are running. Providing an invalid IP address may cause session failures.
-
Set NIC card name as used on HyWorks Controllers e.g., Ethernet0
-
Set Virtual subnet correctly and as being used on HyWorks controller servers.
-
Set Enable virtual IP configuration as True.
-
-
Save the configurations and click on Update button to push the saved configurations.
-
Once updated, primary HyWorks Controller will configure virtual IP on its network adapter first.
-
Provide this virtual IP to end-users to connect to the controller.
-
Any subsequent switching of HyWorks controllers in the cluster, will also move the virtual IP to new primary controller.
Troubleshooting and Known Limitations
-
On controller service restart, controller servers may update its IP address with the virtual one and this could cause some problems. This can be avoided by following this article.
- Here the actual controller IP should be configured in registry, so that controller always uses it for binding and updating.
-
Following scripts must be present on HyWorks Controllers:
-
Primary HyWorks Controller: C:\Program Files (x86)\Accops\HyWorks\Service\Script\OnPrimary.bat
-
Secondary HyWorks Controller: C:\Program Files (x86)\Accops\HyWorks\Service\Script\OnNonPrimary.bat
-
-
Following logs are generated during virtual IP configuration, switching and can be used for troubleshooting. In the absence of these logs, the configuration can be assumed to be faulty and should be troubleshooted.
-
Info - Updated advance setting 'Enable virtual IP configuration', old value: 'false' new value: 'true' > Suggesting administrator has changed the virtual IP configurations in Advance settings.
-
Script creation Logs:
-
Warning - Virtual IP script C:\Program Files (x86)\Accops\HyWorks\Service\Script\OnPrimary.bat not found. Creating the file. > Suggesting the needed script file is not available and will be created.
- Info - VIP script file created C:\Program Files (x86)\Accops\HyWorks\Service\Script\OnPrimary.bat > Logs will be generated once script file is created.
-
-
Info - Virtual IP verified successfully. > Suggesting virtual IP configuration is saved successfully. Details of this logs will suggest the virtual IP address and network adapter details.
-
Warning - Virtual IP script C:\Program Files (x86)\Accops\HyWorks\Service\Script\OnNonPrimary.bat not found. Creating the file. > This will be created on secondary on the first switching if does not exist.
- Info - VIP script file created C:\Program Files (x86)\Accops\HyWorks\Service\Script\OnNonPrimary.bat. > Logs will be generated once script file is created
-
Info - Attached virtual IP removed successfully. > Suggesting virtual IP is removed from server which is now become secondary.
-
-
In HyWorks Controller service process is killed manually or automatically then the virtual IP switching will not work though HyWorks controllers have switched.
-
On disabling virtual IP configuration, controller does not remove the virtual IP and hence, this has to be done manually. (#29789)
-
The virtual IP configuration is not intended for HyLabs environment and may cause functional failures. As RMS service tries to connect to HyWorks Controller virtual IP and fails. (#9892)