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:
-
Cloud Services
-
Microsoft Azure
-
AWS
-
OpenStack (v4.1-HF2 or later)
-
-
On-premise Virtualization
-
Nutanix AHV
-
VMware vCenter Server
-
Proxmox
-
Accops Hyper-V Manager (AHM)
-
Microsoft SCVMM (v4.0-HF1 or later)
-
HPE Morpheus Software - HVM Hypervisor
-
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):
-
Scheduler: Mandatory. Refer to the Scheduler Installation and Configurations in the Installation Section.
-
Action Processor: Mandatory. Refer to the Action Processor Installation and Configurations in Installation Section.
-
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:
-
All services and the HyWorks controller are configured.
-
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:
-
Go to Management Console > VDI > Capacity Plans > Personal.
-
Click + Add.
-
Add Capacity Plan wizard: Configuration Details are given above.
-
Primary Details:
-
All configurations: Name, Description, Power Action on Over-Capacity, Uptime Before Refreshing Unused VMs, etc., as required.
-
Assignment type and Pool: Select as per the pool prepared for management under the plan.
-
Advance Settings: By default, the plan execution interval is set to 15 minutes.
-
-
Schedules:
- 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.
-
Click Save to save the changes and dismiss the dialog.
-
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
-
Go to Management Console > VDI > Capacity Plans > Personal.
-
Select a capacity plan > click Edit.
-
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. -
Click Save to save the capacity plan.
-
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:
-
Go to Management Console > VDI > Capacity Plans > Personal.
-
Select a capacity plan > click Copy.
-
The Add Capacity Plan wizard opens with the following pre-filled configurations:
-
Name: In the format
Copy of <Source Capacity Plan> (<YYYY-MM-DD>T<HH:MM:SS>). Editable. -
Description: Copied from the source capacity plan.
-
Assignment type of target pools: Same as the source capacity plan. (Non-editable).
-
Pool: None (not copied from the source capacity plan).
-
Power Action on Over-Capacity: Same as the source capacity plan.
-
Uptime Before Refreshing Unused VMs (Hours): Same as the source capacity plan.
-
Active: Same as the source capacity plan.
-
Advance Settings: Same as the source capacity plan.
-
Schedules: Same as the source capacity plan.
-
-
Click Save to save the new plan.
Delete Capacity Plan
-
Go to Management Console > VDI > Capacity Plans > Personal.
-
Select a capacity plan > click Delete.
-
Type the capacity plan name in the Confirm Action dialog, then click Delete.
-
The capacity plan is deleted.
-
Impact: The desktop pool will no longer be managed by any capacity plan.
-
It does not process any schedule-based automated power management or scaling.
-
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.
-
Go to Management Console > VDI > Pools.
-
Click Add New Pool. In the Desktop Pool wizard:
-
General Settings: Configure the following settings as required:
-
Name, Display Name, Description, as per the desktop pool usage.
-
Entitlement Type: User-based
-
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.)
-
Select Session Provider: Configured connector supporting capacity plan.
-
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.)
-
Connection Profiles, Remote Desktop Connection Port: As required.
-
Active: Keep checked. Maintenance: Keep disabled.
-
-
Deployment Settings:
-
Source VM, Source VM OS, Clone from Snapshot/Image, Desktop Name Prefix, Clone-type: As required.
-
Desktop Creation: Important for a capacity plan-enabled desktop pool. Set as Provision on demand as per capacity plan.
-
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.
-
Power on Desktops post provisioning: Keep it checked.
-
Enable DVM Reset, Preserve Network on Recompose, and other deployment settings as required.
-
-
Customization: Hyprep/Sysprep as required.
-
Users: Desktop pool users as required.
-
Classification Rules, Advanced/ Client Settings: As required.
-
Review the summary, then click Finish to save the pool.
-
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:
-
Create a capacity plan using the steps mentioned in this section, with the following schedules and objectives:
-
Schedules:
-
Name: Weekday
-
Days: Mon, Tue, Wed, Thu, Fri
-
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.
-
-
Name: Weekend
-
Days: Sat, Sun
-
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.
-
-
Recommended Configurations
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.