Skip to content

HyWorks Scheduler and Action Processor

Accops HyWorks Scheduler and Action Processor are used for on-demand provisioning and automatic power management of session host servers. In this section, detailed steps to install scheduler and action processor will be provided.

Scheduler Installation and Configuration

Scheduler component manages schedules (Create/update/delete) as per capacity plan creation, modification or deletion. It also sends the input to queue with details of capacity plan and session team, which will be picked by Action processor to process as per requirement. Scheduler component is installed on HyWorks controller server itself.

Installation

To install scheduler, follow below steps:

Prerequisites: Following prerequisites must be installed before installing scheduler on same server hosting HyWorks Controller:

  1. Erlang OTP 22.0 (Prerequisite for RabbitMQ) Installation
  2. Rabbit MQ Server 3.7.17 Installation
  3. ASP.NET Core Hosting Bundle 3.1 Installation
  4. .NET Desktop Runtime 3.1 Installation
    1. Official x64 Download Location
    2. Official x86 Download Location

Installation Steps:

  1. Once all above prerequisites are installed, copy Scheduler setup on Controller server
  2. Run setup with user having local administrator privileges on the server
  3. Click on Next button on Welcome screen

  4. In *Choose Components screen

    1. Select option Configure RabbitMQ
    2. Select component Scheduler
    3. Click on Next button to proceed

  5. On License and Agreement screen, click on I agree button to proceed

  6. Required components will be installed and RabbitMQ will be configured as per scheduler requirements.

  7. Proceed for configuring required settings

Scheduler Service Configuration

Following configurations must be done on scheduler components for functioning with HyWorks Controller:

  1. Update Scheduler Service Configuration:

    1. Go to Scheduler installation directory (Default path: C:\Program Files (x86)\Accops\HyWorks\Scheduler\SchedulerService)
    2. Locate configuration file AppSettings.json
    3. Change the database configurations to point to database of controller server on which this scheduler is installed. In below example, scheduler is pointing to locally running SQL server with EDCDB database, username (sa) and password as xyz@123. "ConnectionString": { "SchedulerDB": "Data Source=localhost,1433;Initial Catalog=EDCDB;User Id=sa;password=xyz@123;MultipleActiveResultSets=true" },
  2. Update Scheduler Worker Configuration:

    1. Go to Scheduler installation directory (Default path: C:\Program Files (x86)\Accops\HyWorks\Scheduler\SchedulerWorker)
    2. Locate configuration file AppSettings.json
    3. Change the database configurations to point to database of controller server on which this scheduler is installed. In below example, scheduler is pointing to locally running SQL server with EDCDB database, username (sa) and password as xyz@123. "ConnectionString": { "SchedulerDB": "Data Source=localhost,1433;Initial Catalog=EDCDB;User Id=sa;password=xyz@123;MultipleActiveResultSets=true" },
  3. Restart scheduler service from services for changes to take effect

Enable Controller to manage scheduler service

  1. Login into management console with user having super-admin privileges
  2. Go to Host management -> System -> Advance config
  3. Apply filter 'Capacity Plan' in tags
  4. Set Manage Scheduler Service setting as True and click on Update to apply the changes
    1. If this setting is true, then Scheduler service will run only on the primary node of the controller, on secondary HyWorks controller the service will be stopped.
    2. If this setting is set as false, HyWorks Controller will not manage it and it will start and stop with system

Installation and Configuration in Controller Cluster

If HyWorks Controllers are installed in cluster mode (2 or more controllers are configured for high availability), then

  • Scheduler should be installed on both management nodes, with configurations done same as specified above

Action Processor Installation and Configuration

Action Processor is the brain of capacity planning, it takes inputs from the controller and decides the current capacity, and then takes actions accordingly. It processes the two types of messages pushed by the scheduler

  1. Plan Implementation: Simply saving capacity recommendations in controller
  2. Team Scale: Triggering power-on, power-off, cloning jobs as per schedule or scaling requirements

Installation

To install Action Processor, follow below steps:

Prerequisites: Prerequisites are same as of scheduler, so if scheduler is already installed, the same prerequisites need not to be installed. But if Action processor is installed first, following prerequisites must be installed:

  1. Erlang OTP 22.0 (Prerequisite for RabbitMQ) Installation
  2. Rabbit MQ Server 3.7.17 Installation
  3. ASP.NET Core Hosting Bundle 3.1 Installation
  4. .NET Desktop Runtime 3.1 Installation
    1. Official x64 Download Location
    2. Official x86 Download Location

Installation Steps:

  1. Once all above prerequisites are installed, copy Action Processor setup on Controller server
  2. Run setup with user having local administrator privileges on the server
  3. Click on Next button on Welcome screen

  4. In *Choose Components screen,

    1. Select option Configure RabbitMQ
    2. Select component Action Processor
    3. Click on Next button to proceed

  5. On License and Agreement screen, click on I agree button to proceed

  6. Required components will be installed and RabbitMQ will be configured as per Action Processor requirements.

  7. Proceed for configuring required settings

Configuring Action Processor

Following configurations must be done on scheduler components for functioning with HyWorks Controller:

  1. Go to Action processor installation directory (Default path: C:\Program Files (x86)\Accops\HyWorks\ActionProcessor)
  2. Locate configuration file AppSettings.json
  3. Change the controller information to point it to local hyWorks controller "HwConfigurationEndpoint": "https://localhost:38866/ResourceManagementController.svc"
  4. Restart action processor service from services for changes to take effect

Installation and Configuration in Controller Cluster

If HyWorks Controllers are installed in cluster mode (2 or more controllers are configured for high availability), then

  • Action processor should be installed on both management nodes, with configurations done same as specified above

Prerequisites Installation

Erlang (OTP) Installation

  1. Copy setup file of downloaded Erlang (OTP) v22.0

  2. Connect to server with user credentials having local administrator privileges, double click on otp_win64_22.0.exe and proceed with the installation with all the default options.

  3. Once the installation is complete, click on Finish to close the installation wizard of Erlang.

  4. Reboot if required to complete Erlang installation process.

RabbitMQ Installation

  1. Copy setup file of downloaded Rabbit MQ server module v3.7.17

  2. Connect to server with user credentials having local administrator privileges, double click on rabbitmq-server-3.7.17.exe

  3. Confirm RabbitMQ service is installed and running, once the installation is completed.

ASP Dot NET Core Hosting Bundle Installation

  1. Connect to server with user credentials having local administrator privileges

  2. Copy setup files of ASP.NET Core Hosting Bundle 3.1.14

  3. Double click on setup file dotnet-hosting-3.1.14-win.exe

  4. Close the setup wizard, once installation is completed

Dot NET Desktop Runtime Installation

  1. Connect to server with user credentials having local administrator privileges

  2. Copy setup files of .Net Desktop Runtime 3.1 (both x64 and x86)

  3. Double click on setup file windowsdesktop-runtime-3.1.14-win-x86.exe

  4. Close the setup wizard, once installation is completed

  5. Double click on setup file windowsdesktop-runtime-3.1.14-win-x64.exe

  6. Close the setup wizard, once installation is completed