Citrix DaaS moves the management plane to Citrix Cloud. Your desktops still run in your own resource locations, on premises or in Azure South Africa, but every new session is brokered by a service you do not host. Any IT manager who has watched an international link degrade will ask: what happens to logons when the Cloud Connectors cannot reach Citrix Cloud?
The answer is Local Host Cache (LHC). It is enabled by default, it has no time limit, and it is often never tested. This checklist covers what it does, what it does not do, and the settings we review on every DaaS deployment.
1. Understand what Local Host Cache keeps running
About every five minutes, the Config Synchronizer Service on each Cloud Connector checks for configuration changes and, when it finds one, copies the whole site configuration into a Microsoft SQL Server Express LocalDB database on that Connector. That local copy is the cache.
Citrix's support guidance says LHC engages once a Connector has lost contact with Citrix Cloud for 60 seconds. The Connectors in a zone elect one of themselves as the LHC broker, by sorting their fully qualified domain names alphabetically. VDAs re-register with it, which can take up to five minutes, and new sessions are brokered from the cache. Existing sessions are not interrupted. When the link returns, the zone waits through a ten-minute recovery buffer, then hands brokering back to the cloud.
Two conditions apply. LHC only engages if the Connectors receive launch requests from an on-premises StoreFront, or if Service Continuity is enabled (point 5). And Connectors in a zone must reach each other over HTTP on port 80 at the election endpoint; if a firewall blocks that, more than one broker can be elected and launches fail.
2. Know what stops during an outage
LHC is a brokering fallback, not a full control plane. Citrix's documentation lists what is unavailable while it is active:
- Power management. The Connector cannot retrieve hypervisor credentials, so nothing is powered on or off. Only machines already running can take sessions. On Azure this matters most: a schedule that deallocates desktops at night leaves nothing to log on to if the outage spans the morning ramp-up.
- Pooled single-session desktops. A power-managed random desktop takes one session by default, because it cannot be reset between users.
Set-BrokerSite -ReuseMachinesWithoutShutdownInOutageAllowed $true, with the matching delivery group setting, allows reuse at the cost of data left over from the previous session. - Studio and Monitor. Studio may be unreachable and VDAs in the zone show as Unregistered. Most Monitor data is unavailable.
- Assignments and zone preference. No new machine assignments are made, zone preference is ignored, and a tag restriction can fail a launch if the tagged machines are not in every zone the delivery group spans.
For a DaaS-on-Azure estate, decide in advance whether a minimum number of multi-session hosts stays on around the clock, and reconcile that with our Autoscale cost checklist.
3. Size the Cloud Connectors for the outage, not the normal day
A Connector does little on a normal day, which is why it is often built small. In LHC mode it becomes the broker and the database server at once. Citrix's sizing guidance is specific:
- A minimum of four CPU cores per Connector, laid out as four cores per socket, because LocalDB's compute limits depend on the socket count. CPU affects LHC performance more than memory does.
- Up to 1,000 VDAs: two Connectors with 4 vCPU and 6 GB each. 1,001 to 5,000 VDAs: 4 vCPU and 8 GB. 5,001 to 10,000 VDAs: three Connectors with 8 vCPU and 10 GB. The tested maximum per resource location is 10,000 VDAs and 25,000 sessions.
- SSD storage with adequate IOPS. In Citrix's 10,000-desktop test the cache database was 400 to 500 MB, but its files reached about 1,600 MB during a synchronisation, and a full disk fails the import.
Check each Connector's event log for event 504 (import succeeded) rather than 505 (import failed). A Connector that has been failing its imports for weeks will broker from a stale configuration.
4. Prepare StoreFront and NetScaler for a single-zone broker
During an outage, launches do not cross zones. If one StoreFront site lists Connectors from several resource locations, either enable StoreFront's advanced health check, so a failed zone is routed around, or give each resource location its own site. On the NetScaler, list every Connector as an STA server and monitor them with the built-in CITRIX-XD-DDC monitor: a TCP or ping monitor cannot tell that a non-elected Connector is refusing STA requests.
5. Add Service Continuity for Workspace users
LHC protects launches that arrive through on-premises StoreFront. Users who sign in to Citrix Workspace need Service Continuity as well, because an outage of Workspace or the identity provider stops them before they reach a Connector. It caches signed connection leases on each user's device, one per published resource, valid for seven days by default and configurable from 1 to 30. In an outage the user sees unavailable resources dimmed and launches the rest from the lease, through Citrix Gateway Service externally or directly to the Connector on TCP 2598 internally.
Read its limits before you promise it: Connectors of at least 4 vCPU and 6 GB, no on-premises StoreFront or on-premises Gateway as the ICA proxy, no EDT during the outage, no new machine assignments, and no protection against a failure of the hosting platform itself.
6. Test it before the network does
Citrix provides a forced outage mode for exactly this. On each Cloud Connector, create the OutageModeForced DWORD under HKLM\Software\Citrix\DesktopServer\LHC and set it to 1; event 3502 confirms LHC brokering has started, and 0 returns the zone to normal. Test with a pilot group, time the VDA re-registration, launch a published app and a pooled desktop, and record the result. It belongs in the same calendar as our disaster recovery testing guide, alongside the transport checks in our note on virtual desktops over poor links.
Sources
- Citrix DaaS documentation: Local Host Cache
- Citrix DaaS documentation: Size and scale considerations for Cloud Connectors
- Citrix Workspace documentation: Service continuity
- Citrix Support: CTX312157, Citrix DaaS in an Outage State and Local Host Cache
Have Local Host Cache sized and tested as part of a Citrix DaaS assessment from OAS.
