Scale and size considerations for Cloud Connectors
When evaluating the Citrix Virtual Apps and Desktops service for sizing and scalability, consider all the components. Research and test the configuration of the Cloud Connectors and the customer-managed StoreFront for your specific requirements. Undersizing the machines can impact system performance negatively. This article provides details of the tested maximum capacities, and best practice recommendations for Cloud Connector machine configuration.
All results in this summary are based on the findings from a test environment as configured in the detailed sections of this document. Different system configurations may yield different results.
Key results from testing:
- The Citrix Virtual Apps and Desktops service sizing and scalability
- A set of three 4-vCPU Cloud Connectors is recommended for sites that host no more than 5,000 Workstation VDAs.
- This is an N+1 High Availability configuration.
- Starting 20,000 sessions to 100 Server VDAs is 57% faster using customer-managed StoreFront compared to using Citrix-managed StoreFront.
- Provisioning 1,000 VMs takes an average of 140 minutes.
- A set of three 4-vCPU Cloud Connectors is recommended for sites that host no more than 5,000 Workstation VDAs.
- Citrix Virtual Desktops Essentials
- Two Cloud Connectors hosted on Azure Standard_A2_v2 VMs are recommended for 1,000 Windows 10 VMs.
- Starting 1,000 sessions to Windows 10 VMs hosted in Azure takes less than 20 minutes.
- Testing found that it takes approximately 44 seconds from when a user logs on to StoreFront until the user receives a functional VDI desktop with default settings.
- Provisioning 1,000 Windows 10 VMs in Azure takes an average of 8 hrs.
- Citrix Cloud manages Cloud Connector services, and the customer manages the machines.
- Session launch testing for Citrix Virtual Desktops Essentials used a NetScaler appliance. All other session launch testing used connections direct to StoreFront.
Tests were conducted to add load and to measure the performance of the environment components. The components were monitored by collecting performance data and procedure timing (such as logon time, machine creation time). In some cases, proprietary Citrix simulation tools were used to simulate VDAs and sessions. These tools are designed to exercise Citrix components the same way that traditional VDAs and sessions do, without the same resource requirements to host real sessions and VDAs. We executed the following tests:
- Session logon storm: a test that simulates high-volume logon periods
- VDA registration storm: a test that simulates high-volume VDA registration periods. For example, following an upgrade cycle or outage recovery.
- Machine Creation Service provisioning: a test that measure the time to perform tasks such as copying master images, creating Active Directory accounts, and creating machines.
We used the data gathered from these tests to make recommendations for Cloud Connector sizing. The test execution details follow.
Session logon storm tests
Sessions are started at customer-managed and Citrix-managed StoreFront servers independently. 1,000 session, 5,000 session, and 20,000 session tests were run against each environment. We collected StoreFront logon, resource enumeration, ICA file retrieval, and active desktop times. The active desktop time is the time from when the ICA file starts until the resource is fully loaded and ready to use.
For some test scenarios, we used simulation tools to facilitate testing of larger user counts. Simulation tools allow testing using less hardware than is required to run 5,000 or 20,000 real sessions. These simulated sessions go through the normal StoreFront logon, resource enumeration, and ICA file retrieval, but do not start active desktops. Instead, the simulation tool reports to the ICA stack that the session has started. All communication from the broker agent to the Broker Service is consistent with the communication of an actual session. Performance metrics are gathered from the Cloud Connectors.
To determine how the environment responded to session launches, a sustained concurrency of 25 session launches was maintained throughout the duration of the test. The measurements therefore show the results of a system under load throughout the test.
VDA registration storm tests
In a VDA registration storm, hundreds or thousands of VDAs are registered all at once to simulate a site recovery. High-volume VDA registration typically happens after the upgrade cycle every two weeks, during a “Monday morning” scenario, or when the system recovers from an outage between customer managed machines and Citrix-managed services. Tests were conducted using 5,000 VDAs and the Cloud Connectors were monitored by gathering performance data during each test. Data included Perfmon counters (CPU, memory, disk utilization) and VDA registration times.
Machine Creation Service provisioning tests
Provisioning tests were performed by creating catalogs of varying counts. The times for various tasks (master image copy, AD account creation, and machine creation) were measured to gauge performance. We tested catalog size increases in Azure. Both Azure and customer-managed hypervisors underwent 1,000 machine provisioning testing. The testing in Azure was limited to Windows 10 VMs because Windows 10 is the only supported OS for Citrix Virtual Desktops Essentials. The customer-managed hypervisor was tested on Windows 10 and on Windows 2012 R2.
The test environment configuration included Citrix Cloud Connector, Citrix Virtual Apps and Desktops service and Citrix Virtual Apps and Desktops components. The machine and operating system specifications we used are provided here so you can compare our configuration and test results to your own configuration and requirements.
An internal testing tool collected performance data and metrics from the machines under test, and drove the session launches. This proprietary tool orchestrates user session launches to the Citrix Virtual Apps and Desktops environment, and provides a central location for collecting response time data and performance metrics. In essence, the test tool administers the tests and collects the results.
Test configuration – Citrix Virtual Apps and Desktops
The following is a list of the machine and OS specifications used during Citrix Virtual Apps and Desktops testing.
- Scenario One: Two Windows 2012 R2, 2 vCPU, 4 GB memory
- Scenario Two: Two Windows 2012 R2, 4 vCPU, 4 GB memory
- StoreFront (customer-managed): One Windows 2012 R2, 8 vCPU, 8 GB memory
- Hypervisors: Eight VMware vSphere ESXi 6.0 Update 1, HP ProLiant BL 460c Gen9, Two Intel E5-2620 CPU, 256 GB Memory
- Hypervisor Storage: 2-TB NFS share on NetApp 3250
- VDA: Windows 2012 R2 and Windows 10 32-bit Build 1607
Test configuration – Citrix Virtual Desktops Essentials
Sessions were started from 100 Windows 2012 R2 client launcher machines. Sessions were authenticated against a Windows Active Directory hosted in Azure. Roaming profiles were stored on a Windows file server in Azure.
- VDA: 1,000 Windows 10 64-bit Build 1607, 2 vCPU, 7 GB memory (Standard_D2_v2 instance)
- Client: 100 Windows 2012 R2 Servers, 8 vCPU, 8 GB memory
- Domain Controller: Two Windows 2012 R2, 4 vCPU, 14 GB memory (Standard_D3_v2 instance)
- File Server: One Windows 2012 R2, DS11 instance
- NetScaler VPX: One NetScaler 11.0, Standard_D3_v2 instance that has 1,000 Platinum license
- Scenario One: Two Windows 2012 R2, 2 vCPU, 4 GB memory (Standard_A2_v2 instance)
- Scenario Two: Two Windows 2012 R2, 4 vCPU, 7 GB memory (Standard_A3 instance)
- StoreFront (customer-managed): One Windows 2012 R2, DSv2 instance
Customer-managed machine considerations
Customer-managed machines can be in the customer office, data center, or cloud account (such as Azure or AWS). By our definition, customer-managed machine is under the complete customer control. Customer-managed machines include: Cloud Connector, StoreFront servers, RDS servers, VDI machines, and Remote PC Access machines (not covered during testing). For the sake of brevity, we refer to RDS servers, VDI machines, and Remote PC Access machines as VDAs throughout this report.
We used an 8-vCPU, 8-GB memory machine as the customer-managed StoreFront server when we tested the Citrix Virtual Apps and Desktops service. For Citrix Virtual Desktops Essentials testing, we used an Azure Standard_DS2_v2 (2 vCPU, 7 GB memory) for the customer-managed StoreFront server. See Plan your StoreFront deployment to size your StoreFront server properly for your environment.
We tested customer-managed Cloud Connectors hosted on VMs that had 2-vCPU and 4-GB memory in one scenario, and 4-vCPU and 4-GB memory in another. In Azure, Cloud Connectors were tested on Standard_A2_v2 (2 vCPU, 4 GB memory) and Standard_A3 (4 vCPU, 7 GB memory) instances.
In our testing, Cloud Connectors were deployed in HA sets (they are not load-balanced). Although this document focuses on testing environments that have two Cloud Connectors, an N+1 set of three Cloud Connectors is recommended. The rest of this report focuses on the Cloud Connectors and how to size them for best performance.
VDA registration storm
The VDA Registration Storm test provides data that shows the relationship between Cloud Connector sizing and environment stability. Environment stability is tested during cases of a network outage between the customer-managed location and the Citrix-managed services. VDA registration storms can be triggered when the Delivery Controller and the Site database are upgraded, typically every two weeks.
Cloud Connector CPU sizing comparison 2 vCPU vs. 4 vCPU
- The average usage is similar, but the 2-vCPU machine CPU is under strain during the test and occasional VDA de-registrations are observed.
- The use of 4-vCPU Cloud Connectors for sites that have approximately 5,000 VDAs is recommended for stability.
- The use of 2-vCPU Cloud Connectors is recommended for sites that host 2,500 VDAs.
- Cloud Connectors are a high-availability set and do not load balance.
- One reason we do not recommend the 2-vCPU Cloud Connector for sites that host 5,000 VDAs is the randomness of machine assignment. Because the Cloud Connectors are not load-balanced, you cannot predict the size of the load being funneled to either Cloud Connector. Sometimes, we found more than 60% of the load funneled to one machine.
|Number of VDAs||Cloud Connectors required|
|<2,500||2 VMs + 1, each having 2 vCPUs|
|<5,000||2 VMs + 1, each having 4 vCPUs|
Cloud Connector HA pair VDA registration storm timing comparison
|Cloud Connector size||VDA count||Registration time|
- The Cloud Connectors equipped with 4 vCPUs proved to be more stable during testing.
- VDAs registered faster when Cloud Connectors were equipped with 4 vCPUs.
- VDA re-registrations were observed during testing with the 2-vCPU Cloud Connectors.
- Re-registrations may occur when registration attempts timeout, or VDA communication heartbeats are delayed.
Memory usage by component on a Cloud Connector during a 5,000 VDA registration storm
- This graph is a detailed view of the memory usage by Citrix components and Microsoft LSASS (Local Security Authority Subsystem Service), during the registration storm test.
- The LSASS process on the Cloud Connectors plays an important part in both registrations and session launches. All Active Directory authentications, made by the Citrix Cloud services, are proxied to the customer-managed Active Directory via the Cloud Connectors.
- Memory usage peaks during the VDA registration period, decreasing after all the VDAs register successfully.
- High memory utilization is observed on Cloud Connectors that have 4 GB of memory.
Session launch (Citrix Virtual Desktops Essentials)
1,000 session launch tests were conducted using the Citrix Virtual Desktops Essentials platform. Testing compared different-sized Cloud Connector instances. We tested the Standard_A2_v2 (2 vCPU, 4 GB memory) and Standard_A3 (4 vCPU, 7 GB memory) instances.
Connector CPU usage with Citrix manage StoreFront during session launch test
- There is low CPU contention during the test. The Standard_A2_v2 instance size was more than able to handle a 1,000 machine VDI deployment during a high load session launch test.
- The Standard_A3 instance was deemed excessive for this site size, so we continue with a breakdown of the Standard_A2_v2.
- Larger VDI sites might see a requirement for using the Standard_A3.
CPU usage by top components on A2v2 Cloud Connector during 1,000 session launch
More processes running on the Cloud Connector are not shown because they did not register meaningful metrics.
- The Citrix Remote Broker Provider (XaXdCloudProxy) handles communication between the customer-managed VDA machines and the Citrix-managed Services (Delivery Controller).
- LSASS on the Cloud Connectors processes all Active Directory authentications. The authentications made by the Citrix Cloud Services are proxied to the customer-managed Active Directory via the Cloud Connectors.
- The graph shows the usage from a single Cloud Connector that received a higher amount of load during the test. The additional Cloud Connector in the test exhibited lower CPU usage and was not included in the graph.
Cloud Connector memory usage instance comparison
- Lower available memory on the Standard_A2_v2 (4 GB memory) shows high memory utilization on the Standard_A2_v2 VM.
- The high memory utilization is caused by the Citrix Remote HCL Server (RemoteHCLServer) process that maintains the power state of the 1,000 machines in Azure.
- Due to Azure API rate limitations, the states cannot be queried at regular intervals.
- Changes to the Citrix Remote HCL Server (RemoteHCLServer) implemented after our testing allow the Delivery Controller to communicate machine states directly to Azure.
- The change reduces memory usage significantly and allows the Standard_A2_v2 instances to manage the 1,000 VDA site without issue.
Session launch times
Comparison of the Standard_A2_v2 and Standard_A3 with customer-managed and Citrix-managed StoreFront servers
|Customer-managed StoreFront*||Customer-managed StoreFront*||Citrix-managed StoreFront||Citrix-managed StoreFront|
|Authenticate||561 ms||575 ms||1,996 ms||2,051 ms|
|Enumerate||1,132 ms||1,054 ms||1,410 ms||1,577 ms|
|Total login||1,693 ms||1,629 ms||3,406 ms||3,621 ms|
|Retrieve ICA file||3,464 ms||3,659 ms||4,730 ms||6,222 ms|
|OS logon complete||38.83 seconds||41.91 seconds||37.67 seconds||40.08 seconds|
|Total launch||42.3 seconds||45.6 seconds||42.4 seconds||42.4 seconds|
Times are the average over all test runs. Customer-managed StoreFront server in Azure: Standard_DS2_v2 (2 vCPU, 7 GB Memory)
- Citrix-managed StoreFront sessions experience slower times under load because StoreFront must authenticate with the customer-managed Active Directory over the WAN.
- There were approximately 30 ms of latency between the client machines and NetScaler during testing.
- There is an average 3–4 second decrease in session launches when using a Standard_A3 instances for Cloud Connectors when the environment is under stress.
- The Standard_A3 VM has twice as many CPU cores as the Standard_A2_v2
- There is high memory utilization on the Standard_A2_v2 instance during the test.
- High memory utilization was resolved when we removed the RemoteHCLServer communication from the Cloud Connectors in Azure ARM deployments.
Session log on times for 1,000 Windows 10 sessions
- All machines were powered on before the test.
- The test procedure started 1,000 sessions during approximately an 8-minute period.
- The average time to active desktop with a Standard_D2_v2 instance Windows 10 64-bit VDA was approximately 37.67 seconds.
- The graph shows individual logon times over the course of the test, from the time the ICA file is retrieved until an active usable desktop is presented.
- The green and yellow areas denote one and two standard deviations, respectively.
- Although the session start times are consistent, there are some outliers. Momentary changes in network conditions can cause the outliers, impacting:
- Secure Ticket Authority (STA) ticket exchange on the NetScaler being proxied via Cloud Connectors.
- Establishment of an HDX connection over the WAN.
- Azure Storage. Tests used standard storage.
Simulated session launch
The simulated session launch test puts stress on the Cloud Connectors, Delivery Controller, and Site database. Simulated session launch tests the capability of the components to handle a high number of concurrent logons and to sustain those sessions under a sustained load. Session counts of 5,000 and 20,000 were tested. This document focuses on the 20,000-session tests. The launch rate and component behavior are nearly identical between the two tests. The 20,000-session test runs longer and gives a broader look at the service usage over time. 25 sessions were concurrently launched as fast as possible. The setting for launching sessions as fast as possible allowed the system under test to dictate the rate at which the environment responds to connections.
Cloud Connector HA set CPU usage during session launch test
- The graph shows a comparison of Cloud Connector CPU usage during a 20,000-session launch.
- Two Cloud Connectors are deployed for stress and load testing. An N+1 deployment of three Cloud Connectors is recommended for High Availability utilization.
- No CPU contention was observed during the test.
Cloud Connector CPU usage by component during 20,000 session launch test
- LSASS (Local Security Authority Subsystem Service) uses CPU during session logons using both Citrix-managed and customer-managed StoreFront.
- All authentications from Citrix-managed services must traverse the Cloud Connectors to communicate with the customer-managed Active Directory.
Memory usage by component during 20,000 session launch
- Memory pressure is low during session launch.
- Memory usage by most components doesn’t change throughout the test as observed by the Max and Average values being nearly equal.
Session launch comparison of the customer-managed and Citrix-managed StoreFront servers
|Customer-managed StoreFront*||Citrix-managed StoreFront|
|Authenticate||261 ms||1,629 ms|
|Enumerate||1,075 ms||1,275 mss|
|Total login||1,336 ms||2,904 ms|
|Retrieve ICA file||2,132 ms||2,715 ms|
Customer-managed StoreFront server used for testing was an 8 vCPU, 8 GB memory, 2012 R2 VM. Citrix managed StoreFront is on the Delivery Controller and shares resources with other Citrix Services.
- Usage of a customer-managed StoreFront server is faster due to the time required for AD authentication over the WAN.
- There were approximately 30 ms of latency between the Cloud Connectors and Delivery Controller during testing.
- There is a 2-second difference in the logon process using the Citrix-managed StoreFront versus a customer-managed StoreFront Server when the StoreFront server is under load.
- A 1.2-second difference in the average time to retrieve an ICA file is observed. This is an 83% increase.
- The use of a customer-managed StoreFront server is recommended for customers who require a high volume of concurrent session launches.
Machine Creation Service Provisioning
Citrix Virtual Desktops Essentials MCS testing Azure Resource Manager
The Machine Creation Service allows you to create and delete virtual desktops (VDA) in Azure. The first step is to create a Windows 10 VHD and then upload the VHD to Azure. The master image is created from the VHD. Citrix Virtual Desktops Essentials allows you to create virtual machines from the master image.
|Machine count||Master image copy||Active directory account creation||Machine creation|
|10||30 mins||1 min||7 mins|
|100||30 mins||7 mins||50 mins|
|250||40 mins||8 mins||2 hours|
|500||55 mins||15 mins||4 hours|
|1000||65 mins||30 mins||8 hours|
Times are approximate based on several test runs and may vary.
- We tested the machine creation process using various machine counts, to measure the time required to:
- Copy the master image
- Create machine accounts
- Provision the machines
- The times do not increase linearly because copies of the master image must be replicated to each storage account. Replication occurs in parallel, and becomes slower with more tasks
- There is a limit of 40 machines per storage account. The limit requires 25 storage accounts for a 1,000 VM environment.
- There is a limit of 760 machines per resource location.
- Active Directory account creation must be proxied via the Cloud Connectors, which increases the time required to complete the task. Active Directory accounts are created at a rate of approximately 33 per minute.
- Testing used Standard_A2_v2 Cloud Connectors. No resource bottlenecks were observed.
Citrix Virtual Apps and Desktops service MCS testing
MCS provisioning tests were performed on a VMware ESXi 6.0 hypervisor. There are eight vSphere hosts in the cluster and share storage is NFS on a NetApp share.
|OS||Machine count||Master image copy||Active directory account creation||Machine creation|
|WIN 2012 R2||100||4 minutes||3 mins||4 minutes|
|WIN 2012 R2||1,000||5 minutes||30 mins||100 minutes|
|WIN 10 32-BIT||100||4 minutes||3 mins||4 minutes|
Times are approximate based on multiple test runs and may vary. Test data from these runs are averaged in the table.
- The time required for the machine creation process is similar to the time required in XenApp and XenDesktop 7.x versions. The primary difference in these tests is Active Directory account creation. In the cloud environment, account creation must be proxied via the Cloud Connectors. Active Directory accounts in the cloud environment are created at a rate of approximately 33 per minute.
- We conducted the tests using two 4-vCPU, 4-GB memory VMs for the Cloud Connectors. There was no resource contention observed during the test.