Skip to content

Automation

Virtual Machine Scheduler

Overview

The Virtual Machine Scheduler feature in CloudPi offers powerful automation for managing the start and stop operations of virtual machines. By configuring schedules, organizations can optimize resource utilization, reduce cloud costs, and ensure efficient cloud infrastructure management. This feature provides a streamlined approach to managing resource availability based on predefined schedules or real-time needs.

Key Features

Comprehensive Schedule Management

Automated Operations - Enable automatic start and stop of virtual machines during specified time periods, optimizing resource availability and cost-efficiency

Vacation and Custom Schedules - Create schedules tailored for holidays, weekends, or specific organizational needs

Multi-Region Support - Manage schedules for resources across different cloud regions seamlessly

Centralized Schedule Overview

Detailed Schedule View - Access all active schedules, including their type (Snooze, Start, or Stop), associated resources, and timing details

Actionable Controls - Modify, delete, or manually override schedules directly from the Schedules screen

Execution Logs - Monitor schedule activities and execution statuses for accountability and troubleshooting

Data-Driven Recommendations

Optimized Scheduling Suggestions - Receive schedule recommendations based on usage patterns to reduce resource idling

Streamlined Implementation - Apply recommendations with minimal configuration through the Recommendations screen


Setup and Configuration

Accessing the Scheduler Feature

  1. Navigate to Automation - Log into CloudPi and access the Scheduler feature under the Automation section in the main menu
  2. Explore the Three Main Screens:
  3. Schedules - Manage and review all active schedules
  4. Recommendations - View and apply usage-based schedule suggestions
  5. Resources - Identify eligible resources and create custom schedules

Schedules Screen

View All Schedules - Review the list of schedules with details such as schedule name, type, description, and associated resources

Edit and Delete - Modify schedules or remove outdated configurations directly from the Actions menu

Manual Override - Enable or disable specific resources for temporary overrides without altering the main schedule


Actions

View

The View action allows users to examine the details of a specific schedule without making changes. By selecting this option from the Actions Menu, the system displays a detailed breakdown of the schedule, including key information such as:

Name - Schedule identifier (e.g., ACCOUNT_SNOOZE_REG)

Description - Purpose or usage (e.g., "account testing for scheduler")

Schedule Type - Type of schedule (e.g., Snooze (Stop and Start))

Date Range - Period when the schedule is active

Weekday Timings - Days and times for weekday operations

Weekend Timings - Days and times for weekend operations

The View feature is particularly useful for verifying schedule configurations or sharing information with team members. Users can close the detailed view by selecting the Close View option.

Resource Details

Resource Details Tab:

Shows the list of resources associated with this schedule:

NAME - Resource name

INSTANCE ID - Unique resource identifier

REGION - Cloud region

STATUS - Active/Paused status with toggle

ACTIONS - Additional options menu

Manual Override

The Manual Override feature provides users with the ability to temporarily pause or activate the application of the VM Snooze schedule for individual instances. This allows for greater flexibility in managing resources without permanently modifying the primary schedule.

How It Works:

  1. Accessing Manual Override:
  2. Click the Manual Override icon in the Actions menu for a specific schedule
  3. This will open a detailed list of instances associated with the schedule

  4. Pausing or Activating an Instance:

  5. Paused - Use the toggle switch to pause an instance, preventing it from being affected by the VM Snooze schedule. This ensures the resource remains operational, regardless of the scheduled start and stop times
  6. Active - Use the toggle switch to activate an instance, ensuring it adheres to the VM Snooze schedule

  7. Instance Details:

  8. The manual override panel displays key details for each instance:

    • Resource Name - Name of the instance
    • Instance ID - Unique identifier for the instance
    • Region - The cloud region where the resource is deployed
    • Status - Reflects whether the instance is currently subject to the schedule (Active) or excluded (Paused)
  9. Closing Manual Override:

  10. Once the desired overrides are set, click Close Manual Override to return to the main Schedules view
  11. Overrides take effect immediately but do not alter the underlying schedule configuration

Update Schedule

Edit Action

The Edit feature allows users to modify the configuration of an existing schedule. This ensures flexibility for adapting schedules to changing requirements without the need to create a new schedule from scratch.

How It Works:

  1. Accessing Edit Mode:
  2. Click the Edit icon from the Actions menu of the selected schedule
  3. This opens the schedule in an editable form

  4. Editable Fields:

Users can update the following details:

Schedule Name - Update the schedule identifier

Description - Modify the description to better reflect the schedule's purpose

Start Date - Update the start date

Start Time - Change when the schedule activates

Stop Time - Change when the schedule deactivates

Time Zone - Select the appropriate time zone (e.g., Asia/Kolkata (GMT+05:30))

  1. Saving Changes:
  2. Once the updates are complete, click the Update button to save the changes
  3. The schedule is updated in real time, and the changes are reflected in the Schedules screen

  4. Closing Edit Mode:

  5. If no changes are needed, click Close Edit to exit the edit mode without modifying the schedule

Schedule Logs

Schedule Logs

The Schedule Logs feature provides users with detailed insights into the execution history of a schedule. It helps track the status of scheduled actions, ensuring transparency and simplifying troubleshooting when needed.

How It Works:

  1. Accessing Schedule Logs:
  2. Click the Schedule Logs icon in the Actions menu of a specific schedule
  3. This opens a log view displaying the execution history

  4. Log Details:

Each log entry includes:

Started At - The timestamp when the schedule action began

Completed At - The timestamp when the action finished

Status - Indicates the success or failure of the action (green "Success" label)

Message - Details about the action performed (e.g., instance IDs started/stopped)

  1. Troubleshooting Support:
  2. If a schedule action fails, the log entry provides error messages or status details
  3. These can be used to identify and resolve issues

  4. Closing Logs:

  5. After reviewing the logs, click Close Logs to return to the main Schedules view

Delete Schedule

Delete Schedule

The Delete Schedule feature allows users to permanently remove an existing schedule from the system. This is useful for eliminating outdated or unused schedules, ensuring that only relevant configurations are maintained.

How It Works:

  1. Accessing Delete Option:
  2. Click the Delete icon in the Actions menu of the selected schedule
  3. This action initiates the schedule deletion process

  4. Confirmation Prompt:

  5. A confirmation dialog appears to prevent accidental deletions
  6. Users must confirm their intent to delete the schedule
  7. Deletion Outcome:

    • If confirmed, the schedule is permanently removed from the list, and all associated configurations are erased
    • If canceled, no changes are made, and the schedule remains in place
  8. Impact on Resources:

  9. Deleting a schedule does not impact the current state of associated resources
  10. It only removes the automation tied to the schedule

Recommendations

Export Instance Details

The Export Instance Details feature allows users to download a detailed spreadsheet (.csv) of all active schedules, instances, and their associated configurations. This enables efficient tracking, reporting, and analysis of virtual machine schedules and their statuses.

How It Works:

  1. Accessing the Export Feature:
  2. Click the Export Instance Details button located in the top-right corner of the Schedules screen

  3. Downloading the Spreadsheet:

  4. When clicked, the system generates a spreadsheet and prompts you to download it
  5. The file contains detailed information for each schedule and associated instance, including:

    • Instance ID
    • Region
    • Instance Status
    • Schedule Name
    • Schedule Status
    • Schedule Type
    • Weekdays
    • Weekends
    • Action Type
    • Description
    • Start Date and End Date
    • Time zone
    • Weekday Start Time and End Time
    • Weekend Start Time and End Time
    • Is Recommended (Yes/No)
    • Tag
  6. Spreadsheet Output:

The spreadsheet provides a comprehensive, instance-level view of schedules, enabling users to: - Monitor schedule execution for each instance - Identify instances and schedules based on region, type, or tags - Audit or analyze resource utilization and scheduling effectiveness


Recommendations

Reviewing Recommendations

The Recommendations Screen displays a list of recommended snooze schedules tailored to optimize resource utilization and cost efficiency. These recommendations are generated based on usage analytics, helping users identify optimal start and stop times for cloud resources.

Recommendations Screen

How It Works:

  1. Recommendations Column:
  2. The Recommendation column lists the recommended snooze schedules for each resource
  3. Each entry includes:

    • Instance ID - Identifies the resource
    • Snooze Schedule - Indicates the suggested start and stop times (e.g., Snooze_10 PM_5 AM)
  4. Reviewing Suggested Schedules:

  5. Users can browse the recommendations to understand the proposed snooze schedules
  6. The recommendations provide actionable insights for aligning resource schedules with real-world usage patterns

  7. Taking Action:

  8. Check the boxes next to one or more recommendations to activate the Create Schedule button
  9. Use the Create Schedule feature to customize and apply these recommendations

  10. Additional Actions:

  11. Download - Click the Download icon to export the recommendations list
  12. Share - Click the Share icon to share recommendations via social media, email, or by copying a link
  13. Add Columns - Click the Add Columns (+) icon to customize visible columns

Actions

View Recommendation Details and Usage Analysis:

Access recommendation details and analysis by navigating to Actions → View. This feature helps users evaluate a recommendation by providing detailed insights and usage analysis, enabling informed decisions about adopting a snooze schedule.

Recommendation Details:

Displays key information about the recommendation: - Resource ID, Name, and Region - Recommendation Type (e.g., Snooze) - Date Range and Start/Stop Times - Average CPU Utilization and Network In/Out metrics

Usage Analysis:

  • Provides a visual graph of historical metrics (e.g., CPU Utilization) over a configurable lookback period
  • Users can select metrics like CPU or network usage to assess resource activity trends

This feature allows users to validate recommendations before creating schedules, ensuring they align with usage patterns.

Usage Analysis

Resources


Resource Scheduling

The Resources section allows you to view and manage resources eligible for scheduling actions.

Features:

  1. Select Resources:
  2. Check the box in the row for one or more resources to enable the Create Schedule button

  3. Create Schedule:

  4. After selecting resources, click the Create Schedule button to define scheduling parameters

Select Resources

Schedule Configuration:

Select Schedule Type - Choose between Vacation or Custom

Schedule Name - Enter a name (5-10 letters)

Description - Provide schedule purpose

End Date Option - Choose "No End Date" or set an end date

Start Date - Select when the schedule begins

Start Time - Set the activation time

Stop Time - Set the deactivation time

Time Zone - Select appropriate time zone (e.g., Asia/Kolkata)

Create Schedule

  1. View Resource Details:
  2. Use the View action in the Actions column to see specific details about a resource

Resource Details

Resource Details View:

Shows comprehensive information including: - Resource ID - Region - Environment - Tags (Name, project, department, etc.)

Additional Features:

  • Download - Export resource details as a spreadsheet
  • Share - Share resource data via various platforms
  • Add Columns - Customize the displayed columns for a tailored view of resource data

Additional Features