Citrix Blogs

Citrix TIPs: Local Host Cache for Citrix Virtual Apps and Desktops

Local Host Cache (LHC) allows Citrix Virtual Apps and Desktops users to launch new sessions when the connection between connectors and the control plane is not functioning as expected. LHC works by maintaining a subset of the site database on the Cloud Connectors in each resource location.

For customers leveraging their own access tier with Citrix StoreFront, the LHC feature enables them to provide users with access to their applications and desktops in case of loss of connectivity to the control plane.

What Is Local Host Cache for Citrix Virtual Apps and Desktops?

The easiest way to explain LHC in the context of Citrix Virtual Apps and Desktops is to think of it as an insurance policy that comes into play when, for whatever reason (service interruption, connection issues, etc.), the Cloud Connectors can’t communicate with the Citrix Broker service for 60 seconds. Without LHC, communication breakdown between a resource location and the Broker service could prevent end users from launching new apps and desktops sessions. LHC allows users to launch sessions using a secondary brokering service in these cases.

LHC is a combination of several services and components that come together during an interruption period to take over the brokering responsibilities until the connection to the cloud broker is reestablished. Our product documentation has details on how LHC works and on scaling considerations.

Tips for Using LHC

There are a few common areas where we see customers hit snags. One involves resource locations in LHC mode. Citrix Virtual Apps and Desktops deployments have one or more resource locations where the workloads are hosted. Each resource location, by default, maps to a zone within the service. LHC requires Citrix StoreFront to be able to contact each resource location users need access to. But that alone isn’t enough.

There are a few key configurations to be mindful of when setting up LHC, particularly for sites with multiple resource locations:

Last but not least, testing LHC is essential to validate that your environment is correctly configured. There is a method to force an outage on a Connector via the Windows Registry. (Get the details here.) Some customers have also used a HOSTS file entry to simulate loss of connectivity to the Citrix Cloud control plane. Be sure your testing also includes external access via Citrix Gateway, where applicable, to confirm STA up/down state is being correctly detected.

I hope this overview will help you to avoid some of the more common configuration challenges we see with LHC in the field. Share your questions comments below.

Exit mobile version