Idle Virtual Machine Shutdown via Active Connection Monitoring

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing virtual machine (VM) management systems struggle to efficiently manage and shut down idle VMs, leading to unnecessary resource consumption and increased costs, as they cannot accurately differentiate between active and idle VMs due to background activities.

Innovation Solution

A system and method for automatically shutting down idle VMs by monitoring the number of active connections and implementing configurable disconnect rules, which allow for customizable thresholds and time windows to determine when a VM is considered idle and can be shut down.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Loss of energy

If VM shutdown is based on CPU usage, then cost savings are achieved, but background activities cause false positives and VMs continue to execute unnecessarily

Engineering Contradiction:
Improvecomputing resource consumptionVSAvoididle VM detection accuracy
Core Design Contradiction:
Loss of energyVSMeasurement precision

Solution Approach 1:

The patent segments the monitoring approach into multiple independent metrics: connection status monitoring, CPU usage monitoring, and inactivity timing. By dividing the detection task into separate observable components, the system achieves more precise identification of truly idle VMs versus those performing background tasks.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system implements continuous feedback loops where connection monitor programs report status to cloud services, which then adjust shutdown decisions based on aggregated data from multiple sources. This feedback mechanism enables dynamic adjustment of shutdown timing and prevents premature termination of VMs with hidden active connections.

Inventive Principle:
Principle #23Feedback

2Productivity

If VMs are shut down based on inactivity, then resource consumption is reduced, but VMs performing critical background tasks may be inadvertently shut down

Engineering Contradiction:
Improveresource utilization efficiencyVSAvoidcritical task completion
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The system performs preliminary monitoring and classification of VM activity patterns before making shutdown decisions. By establishing baseline behavior and identifying critical task patterns in advance, the system can distinguish between safe-to-shutdown idle VMs and those performing essential background operations.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent employs configurable thresholds and time windows that can be adjusted based on VM type and expected behavior patterns. By changing monitoring parameters dynamically, the system adapts to different workload characteristics and avoids shutting down VMs during critical operations while maintaining aggressive shutdown of truly idle instances.

Inventive Principle:
Principle #35Parameter changes

3Loss of energy

If monitoring and shutdown automation is implemented, then cost savings increase, but system complexity and infrastructure requirements increase

Engineering Contradiction:
Improvecomputing resource consumptionVSAvoidmonitoring system infrastructure
Core Design Contradiction:
Loss of energyVSDevice complexity

Solution Approach 1:

The system implements self-service monitoring where VMs themselves report their connection status and activity state to cloud services. This eliminates the need for complex external monitoring infrastructure, as the VMs perform their own status reporting and the cloud service makes centralized shutdown decisions based on aggregated data.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The connection monitor programs serve multiple functions: they track active connections, detect idle states, report status to cloud services, and participate in shutdown decision-making. This multi-functionality reduces the need for separate specialized components and simplifies the overall system architecture.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentUS12236257B2Automatic shutdown of idle virtual machines
Publication Date: 2025.02.25 MICROSOFT TECHNOLOGY LICENSING LLC
  • US12236257B2 patent drawing
  • US12236257B2 patent drawing
  • US12236257B2 patent drawing

AI summary

Methods, systems, and computer programs are presented for automatically shutting down idle virtual machines (VMs). One method includes an operation for determining a number of active connections of a VM. The method further includes checking disconnect rules to determine automatic shutting down of the VM. The disconnect rules are based on the number of active connections of the VM, and the disconnect rules define criteria for determining when to shut down the VM automatically. The method further includes, based on determining to automatically shut down the VM, sending a message indicating the VM is inactive to a VM manager program executing at a cloud-service provider. The VM manager program is configured to shut down the VM in response to receiving the message indicating the VM is inactive.