Jump to content
Welcome to our new Citrix community!
  • How to Create Load Balancing via ADC for Citrix WEM


    SerdarGoksu23Rnd.png by Serdar Göksu, Sr. Solutions Architect

    If you have a Citrix environment or are planning to create a Citrix environment, Citrix WEM has become one of our essentials besides the main roles of Citrix. Now we make user settings, profiles, optimizations and some other options via WEM. But can we use WEM software with load balancing method, as in DDC and SF?

    This article explains how to configure requests from WEM management console and WEM agents with Citrix ADC load balancing feature.

    LAB setup for LB:

    SQL Server 2019Citrixsql01.assista.local192.168.2.15
    WEM Broker + ConsoleCitrixwem01.assista.local192.168.2.50
    WEM BrokerCitrixwem02.assista.local192.168.2.51
    WEM LB VIPCitrixwem.assista.local192.168.2.52
    1. We’ll configure the SPN for the Citrix WEM servers to use the service account.
    2. We’ll install the Citrix Workspace Enviroment Management role on the servers.
    3. We’ll connect the servers to the central SQL server environment. (We need to use Windows Domain user as a service account in this environment)
    4. We’ll make WEM configurations on Citrix ADC.
    5. We’ll perform our tests, which is our favorite part.

    Create A SPN

    Do not create multiple service principal names (SPNs) for separate domains that reside in the same forest. All the infrastructure services in an environment must be run using the same service account. If you use Windows authentication or load balancing (requiring Windows authentication), use the following command:

    setspn -U -S Norskale/BrokerService [accountname]

    Citrix WEM Infrastructure Services Installation and Configuration

    First set up the “Infrastructure Services” role on the servers and then set up the “Console” role. We will do these on both servers. Let's start installing "Infrastructure Services"  file with Run-As-Admin.


    Click on the Next button and continue.


    Agree to the License Agreement and continue.


    Click on the "Install" button and start the installation.


    Do the same installation process within the second WEM server.

    We will configure the database only on the first WEM server. So, let's create a database with "Start the Database Management Utily" on the first WEM server.


    On the "Database Creation Wizard" screen, enter the information on which database server the WEM database will be located.


    Select "Use integrated connection" option and click Next button.


    Enter the administrator group that will manage the WEM structure, and the service account information. In the last step, we can create the database.


    Now click the “WEM Infrastructure Service Configuration” tool on the WEM servers. Let's enter the WEM database information we created on both WEM servers, Citrix license server information, and the service account information we will use. Click on the "Save Configuration" button and save the settings.


    Citrix WEM Console Installation and Testing

    Install the WEM console software on both WEM servers (or just one if you want) and run the connection tests.


    After the installation(s) is/are complete, connect to both servers on the WEM console and check if the system is working properly.


    Citrix ADC LB Configuration

    Go to the "Traffic Management - > Load Balancing - > Servers" section on Citrix ADC and add both WEM servers.


    Go to the "Traffic Management - > Load Balancing - > Service Groups" section. For both WEM servers that we add, we will create service groups for the ports that we will use in WEM.

    We will use the following ports on Citrix ADC for WEM.

    • Administration port (TCP(8284))
    • Agent service port (TCP(8286))
    • Cached data synchronization port (TCP(8288))

    Create the group for the Administration and configure servers as to use port 8284.


    Create the  group for the Agent Service and configure servers as to use port 8286.


    Create the group for the Cache Sync and configure servers as to use port 8288.


    Let's move on to the step for creating a load balancing server. Go to the “Traffic Management - > Load Balancing - > Virtual Servers” section and create LB servers by using the same IP for each port.


    When creating LB servers, according to Citrix's suggestion, we only need to configure persistence settings on the Admin LB server.

    WEM Admin LB configuration:


    WEM Agent LB configuration:


    WEM Sync LB configuration:


    In the last step, enter A record for the load balancing IP on DNS.


    When we come to the testing phase; we will see that our system works successfully, when we enter the newly created A record on "Console". Now we can configure our agents by giving them the new LB name and use our WEM environment in a load-balanced way.


    See more CUGC posts on Citrix WEM.

    Have you joined CUGC? Click here to set up your profile and join today!


    User Feedback

    Recommended Comments

    There are no comments to display.

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

  • Create New...