For high availability, Horizon recording can be installed on multiple servers and configured with a load balancer.
Here are the high-level steps to follow to use Horizon Recording with a load balancer. Details for each are provided in this topic.
- Create a shared folder on a file server with appropriate permissions which is accessible from all the recording servers to be installed.
- Install the Horizon Recording on multiple servers (preferably in the same datacenter). See "Install the Horizon Recording Server" in the Using VMware Horizon Recording topic for details.
- Edit the deployment on all the recording servers to point to the same database and same shared folder. The database will store the recording metadata and the shared folder will store the actual recording files.
- Configure L4 load balancing for Horizon recording servers on port 9443.
- Install the Horizon Recording agent on the parent desktop by pointing to the load balancer's IP/FQDN while registering with the Horizon Recording server.
Edit the Deployment on the Recording Servers
For each recording server:
- Navigate to Administrator -> Service Settings -> Server Settings -> Edit Deployment.
- Read the message that displays and click Next.
- If this is the first server you are editing, select Configure Manually and click Next. If this is not the first server to edit, skip to Step 4.
- Select the required Database and copy the appropriate Connection String from the examples section and paste it into the Connection String box.
- Modify the user id, password, server, database and Trusted_Connection with appropriate information and click Next.
- In the storage location page, provide the shared folder which is accessible from all the recording servers. Click Test Path to verify if it is accessible, then click Next.
- Click Save Configuration. If everything is fine the web service restarts and you are logged out.
- Log in and verify that the configuration was saved properly.
- For subsequent servers, select Import configuration from an existing server.
- Enter the URL, username and password of the existing server and click Import. A message “Service settings imported successfully, please validate them on the following pages” displays if the credentials are valid.
- Click Next and validate the configuration details in the “Database Type” page. They should match the configuration details in the existing server.
- Click Next and validate the configuration details in the “Storage Location” page. They should match the configuration details in the existing server. You can test the path here as well.
- Review the changes and click Save Configuration. If everything is fine, the web service restarts, and you are logged out.
- Log in and verify that the configuration is saved properly.
Configure the L4 Load Balancer
The following are high level steps to configure a load balancer for recording servers. Note that the steps will change depending on which load balancer is used.
- Create a virtual service with service port 9443 with SSL enabled. Then assign a virtual IP to the virtual service.
- Create a pool of recording servers with port 9443.
- Once the load balancer configuration is saved, access the web console using
https://<FQDN_or_IP_address_of_the_load_balancer>:9443
. If the load balancer configuration is correct, the UI will be accessible.
Install Horizon Recording Agent on the Parent Desktop
- Download the HorizonRecordingAgent.exe file and copy it to a local folder.
- Run the installer and follow the steps.
- When prompted for the connection, provide the correct URL of the load balancer in the format https://<FQDN or IP address of the load balancer>:9443 along with the User Name and Password.
- Select the This machine is a template check box if the machine is a parent VM and a pool will be created from it.
- Click Register.
- If the certificate of the server is untrusted, accept the thumbprint of the server when prompted.
- When recording agent installation is finished, log on to the recording server’s web console using the load balancer IP and navigate to Administrator -> Manage Agents. The agent should be listed there with Type listed as Template.
Note: This can also be verified by logging into each recording server to make sure that the data is synced across all of the recording servers.