Skip to main content

4. Create destination pool and configure load balancing

Create a destination pool and configure load balancing according to the selected scaling mode and scaling type.

Create destination pool

  1. Create a new destination pool.
  2. Select the destinations depending on the scaling mode:
    • Elastic mode: Initially, do not select a destination.
    • Static mode: Select all destinations previously prepared for static mode that oneclick™ should start and stop automatically.
  3. Enable load balancing for this pool.
    Destination pool with the icon for enabling load balancing highlighted
  4. Note the preparation depending on the scaling mode:
    • Elastic mode: Since the VM was created via oneclick™ and prepared for process execution, no additional measures are required to prepare load balancing. The required network settings were already set as part of the process preparation and the selected network security group.
      Dialog for enabling load balancing for the destination pool with the "Activate" button highlighted

    • Static mode: Make sure that the existing destinations have the required network settings and can be reached by oneclick™.

  5. After enabling load balancing, the function of the button changes. You can then make the load distribution settings for how load balancing should take place.

Check metric collection on existing destinations

After enabling load balancing, oneclick™ creates a process that activates the Windows Exporter on the existing destinations. The Windows Exporter provides the metrics for CPU, RAM, and number of users.

  1. Click Automation in the menu, then click Processes.
  2. Check whether the exporterWindows process ran successfully.

If no metrics are visible after a short time, check the WinRM connection and the preparation of the destinations for process execution.

For more information, see Load balancing troubleshooting.

Configure load balancing

Click the Distribution icon to define the weighting and distribution logic. The configuration differs depending on the selected scaling type.

Single user

For "Single user" scenarios, exactly one user is allowed per destination.

  • Set the weighting factors for CPU and Memory to 0.
    These parameters are not relevant for exclusive system usage.
  • Set the weighting factor for "Logged in users" to 10.
  • Enable "User limit per destination".
  • Set "Maximum number of users" to 1.
  • The Sticky user sessions option has no practical effect for "Single user" scenarios, since only one user is allowed per system. Load balancing settings for single user with a weighting factor of 10 for logged in users and user limit enabled at 1

Multi user

For "Multi user" scenarios, multiple users are allowed per destination. Load balancing assigns new users to a suitable destination based on defined criteria. For multi user, define how strongly individual criteria (CPU, RAM, number of users) are weighted when assigning new users. For CPU utilization and memory usage, define:

  • the "Time in seconds to calculate the data mean"
    This period determines over which period the measured values are averaged. Shorter periods respond faster to load peaks, longer periods result in more stable decisions that are less prone to fluctuation.
  • the Weight factor
    The weight factor defines the priority with which the respective criterion is taken into account when distributing new users.

In addition, you can define a weight factor for the number of logged in users. This controls how strongly the current number of users flows into the calculation compared to CPU and RAM utilization.
The weight factor can be defined on a scale from 0 to 10:

  • 0 means that the criterion is not taken into account.
  • 10 means maximum priority in decision-making.

If multiple criteria receive the same weighting value, they are given equal priority.

Optional settings:

  • "Limit users per destination"
    Enable this option and enter the maximum number of users. This sets a fixed upper limit for the number of users logged in at the same time per virtual machine.
  • "Sticky user sessions"
    Enable this option if users should land on the same destination after logging in again. Note the information on using sticky sessions.
    Load balancing settings for multi user with weighting factors for CPU utilization, memory usage, and logged in users

Configure user and app assignment

After setting up the pool:

  1. Create user accounts on the domain controller for all intended users (if an AD integration is used).
  2. Create an app configuration for the destination pool.
  3. Create app instances based on this configuration.
    • As destination, select: "Best destination of the load balancing pool" and enter the corresponding user login credentials.
  4. Click Save. Settings of an app instance with the "Best destination of the load balancing pool" destination selected