Automatic Singleton Service Migration via In-Memory Lease Tables
Find Innovative SolutionsGenerate 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
Engineering 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
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.
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.
2Reliability
If an external High Availability database is deployed for lease management, then service continuity is improved, but infrastructure cost increases
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.
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.
3Ease of operation
If manual service migration is implemented, then control over service placement is improved, but operational efficiency decreases
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.
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.
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
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.
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.
Data Source
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.


