Automatic Singleton Service Migration via In-Memory Lease Tables

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing enterprise software applications relying on application servers struggle with high availability requirements for singleton services, particularly in scenarios where a High Availability (HA) database is not feasible or desirable, necessitating a database-less leasing system for efficient service migration and management.

Innovation Solution

A database-less leasing system is implemented within a cluster of application servers, where a cluster leader is elected and maintains a lease table, allowing for automatic migration of singleton services and job scheduling without relying on an external HA database, using heartbeat mechanisms and node managers to ensure service continuity and failover.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If a High Availability database is used to manage singleton services in a cluster, then service reliability is improved, but infrastructure complexity and cost increase

Engineering Contradiction:
Improveservice reliabilityVSAvoidinfrastructure complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent extracts the lease management functionality from the external High Availability database and implements it within the application servers themselves through an in-memory lease table. This removes the dependency on external database infrastructure while maintaining the reliability of singleton service management through internal memory-based lease tracking and automatic refresh mechanisms.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent creates a copy of the lease table in memory within each application server, allowing servers to track lease status locally without querying an external database. This in-memory copy enables fast lease validation and automatic migration detection, achieving high reliability without the infrastructure overhead of a dedicated HA database system.

Inventive Principle:
Principle #26Copying

2Reliability

If an external High Availability database is deployed for lease management, then service continuity is improved, but infrastructure cost increases

Engineering Contradiction:
Improveservice continuityVSAvoidinfrastructure cost
Core Design Contradiction:
ReliabilityVSQuantity of substance

Solution Approach 1:

The patent removes the need for external HA database infrastructure by extracting lease management capabilities into the application servers themselves. The in-memory lease table and automatic refresh logic provide service continuity through internal mechanisms, eliminating the need to deploy, maintain, and cost external database systems while ensuring singleton services continue operating during server failures.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent uses in-memory data structures with automatic expiration and refresh, replacing expensive persistent database infrastructure with temporary in-memory objects. These in-memory lease entries are automatically refreshed or expired based on server health, providing cost-effective service continuity without the overhead of permanent external storage systems.

Inventive Principle:
Principle #27Cheap short-living objects (Disposable)

3Ease of operation

If manual service migration is implemented, then control over service placement is improved, but operational efficiency decreases

Engineering Contradiction:
Improvecontrol over service placementVSAvoidoperational efficiency
Core Design Contradiction:
Ease of operationVSProductivity

Solution Approach 1:

The patent implements automatic feedback loops where application servers continuously monitor lease table status and automatically migrate singleton services when lease expiration is detected. This automated feedback mechanism eliminates manual intervention while maintaining control over service placement, as the system self-adjusts based on real-time lease status information from the in-memory table.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The patent enables the cluster to self-manage service migration through automatic lease monitoring and health checking. When a server fails to refresh its lease, the system automatically detects this through the in-memory lease table and migrates the singleton service to another server without human intervention, dramatically improving operational efficiency while maintaining placement control through automated decision-making.

Inventive Principle:
Principle #25Self-service

4Duration of action of stationary object

If database-based leasing is used for singleton service management, then lease durability is improved, but system complexity increases

Engineering Contradiction:
Improvelease durabilityVSAvoidsystem complexity
Core Design Contradiction:
Duration of action of stationary objectVSDevice complexity

Solution Approach 1:

The patent implements preliminary lease refresh actions where servers continuously update their lease status in the in-memory table before expiration. This proactive lease maintenance ensures durability by preventing lease expiration through continuous refresh attempts, while the in-memory implementation keeps system complexity low compared to database-based approaches.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent maintains a local in-memory copy of the lease table that mirrors the essential lease information needed for durability. This copy enables fast lease validation and automatic migration detection without the complexity of database connections, transactions, and persistence mechanisms, achieving lease durability through memory-based redundancy and automatic refresh logic.

Inventive Principle:
Principle #26Copying

Data Source

PatentUS7536581B2Automatic migratable services
Publication Date: 2009.05.19 ORACLE INT CORP
  • US7536581B2 patent drawing
  • US7536581B2 patent drawing
  • US7536581B2 patent drawing

AI summary

Singleton services can be automatically migrated from one application server to another in a cluster using a lease table and a migration master in case of a failure of the first application server.