Skip to content

Auto Scaling and Power Management of Single-Session Desktops

Capacity-based power management and automatic scaling were previously supported for multi-session shared-hosted desktop pools. This feature extends the existing power management functionality in HyWorks to both floating and personal single-session desktop pools.

Administrators can now manage VM power state and pool capacity based on usage patterns and capacity planning, improving cloud resource utilization and cost efficiency. This document provides detailed information on capacity planning and management of single-session personal desktops.

Support and Compatibility

Supported Versions of HyWorks Modules

Module Minimum Supported Version
HyWorks Controller v3.6.0.22199
HyWorks Scheduler v3.6.0.216
HyWorks Action Processor v3.6.0.171
Accops VM Scale Booster v3.6.0.153
HyWorks DVM Tools v3.6.0.1357
RabbitMQ and Erlang OTP Check compatible RabbitMQ and Erlang/OTP versions

Supported Virtualization Platforms/ Connectors

Automatic power management and dynamic provisioning of single-session desktops are supported with the following virtualization platforms:

  1. Cloud Services

    1. Microsoft Azure

    2. AWS

    3. OpenStack (v4.1-HF2 or later)

  2. On-premise Virtualization

    1. Nutanix AHV

    2. VMware vCenter Server

    3. Proxmox

    4. Accops Hyper-V Manager (AHM)

    5. Microsoft SCVMM (v4.0-HF1 or later)

    6. HPE Morpheus Software - HVM Hypervisor

    7. Red Hat OpenShift

Note

Proxmox HCI is not supported.

Supporting Services: Scheduler/Action Processor Installation and Configuration

To enable dynamic on-demand provisioning of single-session desktops and automatic power management, the following supporting services must be installed on the HyWorks Controller management servers (Primary and secondary controllers):

  1. Scheduler: Mandatory. Refer to the Scheduler Installation and Configurations in the Installation Section.

  2. Action Processor: Mandatory. Refer to the Action Processor Installation and Configurations in Installation Section.

  3. VM Scale Booster: Optional but recommended. Refer to the VM Scale Booster Installation and Configurations in Installation Section.

Note

  • Currently, the Scheduler and the Action Processor must be installed on the same server as the HyWorks Controller Management Nodes. This allows the HyWorks Controller to manage these services.

HyWorks Controller Configurations

Enable the Controller to manage the Scheduler service

To enable the HyWorks Controller to manage the Scheduler service, refer to this section

Capacity Plan Management

Capacity Plan Attributes

The Capacity plan in the HyWorks Controller defines the overall capacity required at any given point in time on a specific day. While defining a Capacity plan, the following screens are displayed to the Administrator:

Configuration Section Configuration Description Possible/Default Value
Primary Details Name Name of the capacity plan Max length: 100 characters, allowed special characters: _ SPACE () {} # @ : -
Description Description for the capacity plan Max length: 500 characters
Assignment type of target pools Assignment lifespan (Personal or Floating) of target pools. Only pools of the selected life span are displayed.
Pool List of pools of the selected assignment life span type. Select a pool from the list.
Power Action on Over-Capacity Select the power action applied to desktops exceeding the scheduled capacity. Suspend and Shutdown are supported for persistent desktop pools, but only Shutdown is supported for non-persistent desktop pools. Shutdown/ Suspend
Default: Shutdown
Uptime Before Refreshing Unused VMs (Hours) info An unused powered-on VM is refreshed once it has been powered on for longer than the configured time. The refresh operation is performed based on the desktop pool type. 0 means HyWorks does not refresh VMs. Number in hours between 0 and 10000.
Default: 0 (Do not refresh).
Active Whether this capacity plan is enabled or disabled. Default: Enabled
Advance Settings - Plan Execution Interval (minutes) Select the interval in minutes for plan execution. Time in minutes (10, 15, 20, 30, 60)
Default: 15
Schedules + Add Adds a new schedule to the capacity plan.
Added Scheduled Table Displays the list of schedules added to this capacity plan. Columns: Schedule Name, Days of execution, Week of the month, Objective: Number of objectives
Add Schedule Schedule Name Name for the schedule to be added to the capacity plan. Max length: 100 characters, allowed special characters: _ SPACE () {} # @ : -
Day Occurrence Type Every Week: The schedule applies every week. Specified Week: Select specific week(s) of the month. Default: Every week. Selecting Specified Week displays options to choose weeks (1, 2, 3, 4, 5).
Days Days of the week to which this schedule applies. Default: None selected. Options: Mon, Tue, Wed, Thu, Fri, Sat, Sun.

Creating a Capacity Plan for Single-session Desktop Pool

To create a capacity plan for a single-session desktop pool, follow these steps:

Prerequisite:

  1. All services and the HyWorks controller are configured.

  2. A desktop pool is created using Desktop Creation and Provision on demand, per the capacity plan. An example of the desktop pool creation is provided here.

Steps:

  1. Go to Management Console > VDI > Capacity Plans > Personal.

  2. Click + Add.

  3. Add Capacity Plan wizard: Configuration Details are given above.

    1. Primary Details:

      1. All configurations: Name, Description, Power Action on Over-Capacity, Uptime Before Refreshing Unused VMs, etc., as required.

      2. Assignment type and Pool: Select as per the pool prepared for management under the plan.

      3. Advance Settings: By default, the plan execution interval is set to 15 minutes.

    2. Schedules:

      1. Based on usage patterns and requirements, schedules can be added. An example is provided in the section Capacity Plan Use Case Example: Capacity Plan Example.
    3. Click Save to save the changes and dismiss the dialog.

    4. The capacity plan is created with the configured attributes.

Capacity Plan List View

All capacity plans for personal desktops are listed in Management Console > VDI > Capacity Plans > Personal.

The following information is displayed:

  • Plan Name

  • Pool Name

  • Capacity Plan Type: Reflecting the pool type configured.

  • Active Schedule: The schedule currently active on the desktop pool. Clicking the current objective details link displays the objective details, including the minimum provisioned desktops and the count of free desktops (powered on).

  • Provisioned VMs

  • Stopped VMs

  • Free VMs

  • Pool Capacity

  • Active: Whether the plan is active.

Edit Capacity Plan

  1. Go to Management Console > VDI > Capacity Plans > Personal.

  2. Select a capacity plan > click Edit.

  3. Modify editable configurations:

    Configuration Editable Impact
    Name Yes No impact.
    Description Yes No impact
    Assignment type of target pools No -
    Pool (Associated with this plan) Yes Very high impact.
    Disassociated pool: Becomes unmanaged and does not process any schedule-based automated power management or scaling.
    On already available VMs: User assignment and power operations continue to work.
    Newly associated pool: The plan begins managing the new pool, and automated provisioning and power management start according to the active schedule.
    Power Action on Over-Capacity Yes The modified power action is executed under the updated plan.
    Uptime Before Refreshing Unused VMs (Hours) Yes VM refresh follows the updated configuration.
    Advance Settings - Plan Execution Interval (minutes) Yes The plan execution interval changes from the next cycle.
    Schedules - Configurations/ Objectives Yes From the next execution cycle, applicable objectives are applied, and power management and capacity scaling are performed accordingly.
  4. Click Save to save the capacity plan.

  5. Result: The updated plan takes effect as described above.

Copy Plan

An existing capacity plan can be copied to create another plan with the same configurations, but without associating the desktop pool from the source capacity plan. To copy a capacity plan:

  1. Go to Management Console > VDI > Capacity Plans > Personal.

  2. Select a capacity plan > click Copy.

  3. The Add Capacity Plan wizard opens with the following pre-filled configurations:

    1. Name: In the format Copy of <Source Capacity Plan> (<YYYY-MM-DD>T<HH:MM:SS>). Editable.

    2. Description: Copied from the source capacity plan.

    3. Assignment type of target pools: Same as the source capacity plan. (Non-editable).

    4. Pool: None (not copied from the source capacity plan).

    5. Power Action on Over-Capacity: Same as the source capacity plan.

    6. Uptime Before Refreshing Unused VMs (Hours): Same as the source capacity plan.

    7. Active: Same as the source capacity plan.

    8. Advance Settings: Same as the source capacity plan.

    9. Schedules: Same as the source capacity plan.

  4. Click Save to save the new plan.

Delete Capacity Plan

  1. Go to Management Console > VDI > Capacity Plans > Personal.

  2. Select a capacity plan > click Delete.

  3. Type the capacity plan name in the Confirm Action dialog, then click Delete.

  4. The capacity plan is deleted.

    1. Impact: The desktop pool will no longer be managed by any capacity plan.

      1. It does not process any schedule-based automated power management or scaling.

      2. On already-deployed (available) VMs: User assignment and power operations continue to work.

Delete Desktop Pool Associated with Capacity Plan

A single-session desktop pool associated with a capacity plan cannot be deleted. Any attempt to delete such a pool fails with the message:

  • This pool cannot be deleted because it is associated with a capacity plan.

To delete a single-session desktop pool associated with a capacity plan:

  • First, delete the associated capacity plan, and then delete the desktop pool.

Capacity Plan Use Case Example

This section provides step-by-step configuration, based on a high-level use case.

Use Case:

  • Assignment Life-span: Floating

  • Maximum Concurrent Connections: 100

    Day-type Time Window Expected Users
    Weekdays 8:00 AM to 9:00 AM 20% (20 VMs)
    9:00 AM to 6:00 PM 60%
    6:00 PM to 7:00 PM 20%
    7:00 PM to 8:00 AM 5%
    Weekends Throughout the day. 5%

The following sections describe how to create a desktop pool and plan capacity for the use case above.

Preparing Capacity Plan Managed Desktop Pool

Important

The configurations here are for example purposes only and should be done as per the deployment use case.

  1. Go to Management Console > VDI > Pools.

  2. Click Add New Pool. In the Desktop Pool wizard:

  3. General Settings: Configure the following settings as required:

    1. Name, Display Name, Description, as per the desktop pool usage.

    2. Entitlement Type: User-based

    3. Desktop Pool Type: Persistent Virtual Desktop, Management Mode: Self Managed, Provisioning: Dynamic. (Persistent is selected only as an example; the pool can be non-persistent, as per production usage.)

    4. Select Session Provider: Configured connector supporting capacity plan.

    5. Assignment Life Span: Floating, Assign Desktop: On Login (This can be non-persistent or as per production usage. It is kept as floating, on login, for this example.)

    6. Connection Profiles, Remote Desktop Connection Port: As required.

    7. Active: Keep checked. Maintenance: Keep disabled.

  4. Deployment Settings:

    1. Source VM, Source VM OS, Clone from Snapshot/Image, Desktop Name Prefix, Clone-type: As required.

    2. Desktop Creation: Important for a capacity plan-enabled desktop pool. Set as Provision on demand as per capacity plan.

    3. Capacity: The maximum capacity of this desktop pool, as per the deployment use case. The capacity plan provisions or manages VMs up to this count. In this example, the capacity is set to 100.

    4. Power on Desktops post provisioning: Keep it checked.

    5. Enable DVM Reset, Preserve Network on Recompose, and other deployment settings as required.

  5. Customization: Hyprep/Sysprep as required.

  6. Users: Desktop pool users as required.

  7. Classification Rules, Advanced/ Client Settings: As required.

  8. Review the summary, then click Finish to save the pool.

  9. Result: The pool is created, but it is not provisioned until a capacity plan is created for it.

Capacity Plan Example

To achieve the use case above with a desktop pool (capacity 100), a capacity plan with the following details can be added:

  1. Create a capacity plan using the steps mentioned in this section, with the following schedules and objectives:

  2. Schedules:

    1. Name: Weekday

      1. Days: Mon, Tue, Wed, Thu, Fri

      2. Objectives:

        Time Min Free Desktops Powered on Min Provisioned Desktops Explanation
        7:15 AM
        (30 mins for plan execution and provisioning)
        20 25 (keeping 5 in buffer) At 7:15 AM on Monday, plan execution and deployment of 25 VMs start, and 20 VMs are kept powered on.
        8:15 AM 60 65 At 8:15 AM, plan execution deploys 65 VMs and keeps 60 powered on.
        6:00 PM 20 20 Reduce the capacity and powered-on VMs to 20 if not in use.
        7:00 PM 5 5 Reduce the capacity and powered-on VMs to 5 if not in use.
    2. Name: Weekend

      1. Days: Sat, Sun

      2. Objectives:

        Time Min Free Desktops Powered on Min Provisioned Desktops Explanation
        00:00 AM 5 5 Keep the capacity and powered-on VMs at 5 if not in use, until the objective triggers at 8:15 AM on Monday morning.

VM Scale Booster

These configurations enable faster updates to VM power, SHD Agent, DVM Agent, and Monitoring Statuses. They are highly recommended for large-scale deployments, as polling too many servers can delay updating the status of the Session Host Servers.

Network Ports for VM Scale Booster

  • Between Virtual Machines & RabbitMQ Servers: As per RabbitMQ Configurations. SSL: 5671, Non-SSL: 5672 (default).

Refer to this document for detailed steps to configure the VM Scale Booster.