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


    cugcblogs

    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:

    image.png.7ca8855ff13315252ae26f393a98de03.png
    RoleHostnameIP
    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.

    image-1.png.ec8b0478693dcd7c2ef8b70de9c7765f.png

    Click on the Next button and continue.

    image-2.png.04d243ab3383a9b27ae8b4d18fa257a0.png

    Agree to the License Agreement and continue.

    image-3.png.27aa1d27f9590a238e79ed744567011b.png

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

    image-4.png.8611f62c2d709db5a09a3236b320c87f.png

    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.

    image-5.png.ca5e0f7855c41db4c427ac8d97f712e4.png

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

    image-6.png.1917b0d7e515779b7cddccb1ff22f619.png

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

    image-7.png.1877ddc05de2d0852abc8e81ff538acb.png

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

    image-8.png.110d0eb19061899eae17225f35c61c10.pngimage-9.png.0d40d4dff1e433fdd0070172e663ece6.png

    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.

    image-10.png.d1bb86c0869567c9c8ec805c121cf7bb.pngimage-11.png.00be71699992d3483969ec6e1cbd14c1.png

    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.

    image-12.png.a43f5dc547db6360b6b2f7c7e0c1e4f0.pngimage-13.png.ff538e5b7f79c2f9a8f9845a14849785.pngimage-14.png.351018a49e2fa150bdc1b8e1a7f0b326.png

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

    image-15.png.68d251f3527ed8828d522131d3cbed1b.pngimage-16.png.53520462d68adf2475fe912c4fe30664.pngimage-17.png.6f93cebd09e5e28da7aa323902d6ef28.png

    Citrix ADC LB Configuration

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

    image-18.png.0e8e80c0753d250c1706b5d97c5deb7e.pngimage-19.png.625c06c39d4a5e9fbab37228744da50b.pngimage-20.png.97eef4cc30e4ce4f9fa41ee0fbb3ab15.png

    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.

    image-21.png.68aab0e512313aefd78b9e2a7b13ab62.pngimage-22.png.e7f3c272959d6e0f4545042eee562799.png

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

    image-23.png.7bf85f6e66fe305bf772a5a88210e4c9.png

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

    image-24.png.8fdb97f5277e1ac6049b268b222282e3.png

    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.

    image-25.png.4e34e44e6ec50b7572d3cebb9be3b6c9.png

    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:

    image-26.png.e54455a7d4cadbffa57cd4b044e57ea3.pngimage-27.png.31660983c0d34f44938aea16dfede72c.png

    WEM Agent LB configuration:

    image-28.png.7a950c8c1c57ed8e926af6eab16e6dfa.pngimage-29.png.a4087fe67de43579c2fa63875863f4aa.png

    WEM Sync LB configuration:

    image-30.png.fec1655f2cd90cc1c13abf7e7f7bb095.pngimage-31.png.cfc34d2e7b92f5122fa862b08d46392b.png

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

    image-32.png.9fb4d6ffe3c06d4e56424f9d02aede14.png

    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.

    image-33.png.c4ba4e14e485c94c18ee7ba66b942731.png

    See more CUGC posts on Citrix WEM.

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

    SerdarGoksuRndSm.png.6d8d51f8c4d29facd31b15058d64e261.png


    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...