Proxy Service Registrar for Virtual Machine Update Consistency
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In distributed systems, updating virtual machines (VMs) can lead to inconsistencies between the VM state and the service registry, causing failures and data loss due to partial reversion of the VM state without corresponding changes in the service registry.
Innovation Solution
The introduction of proxy service registrars that act between VMs and the system service registrar, allowing VMs to be reverted to a prior state even when the system service registry has changed, ensuring consistent operation by maintaining a local service registry and synchronizing it with the system service registry during updates.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Speed
If VMs are updated directly without proxy service registrars, then update speed is fast, but consistency between VM state and service registry deteriorates
Solution Approach 1:
A proxy service registrar is introduced as an intermediary component between the virtual machine and the system service registrar. The proxy service registrar maintains a local service registry that mirrors the system service registry, allowing the VM to be reverted to a prior state while the local registry can be selectively synchronized or reverted independently. This intermediary layer resolves the contradiction by enabling fast updates through local operations while maintaining consistency through controlled synchronization with the system service registry.
2Ease of repair
If VM state is reverted without corresponding service registry changes, then recovery from failed updates is enabled, but inconsistencies between VM state and service registry occur
Solution Approach 1:
The service registry functionality is segmented into two independent components: a system service registry and a local service registry maintained by the proxy service registrar. This segmentation allows the local service registry to be reverted independently from the system service registry, enabling recovery from failed updates by restoring the local registry to a previous consistent state while leaving the system registry intact.
Solution Approach 2:
The proxy service registrar creates and maintains a copy of the service registry data locally. This local copy can be reverted to match the VM state after failed updates, while the original system service registry remains unchanged. The copying mechanism enables independent recovery operations without affecting the central registry.
3Reliability
If proxy service registrars are introduced, then consistency and reliability are improved, but system complexity increases
Solution Approach 1:
The proxy service registrar is designed to autonomously manage the local service registry, including automatic synchronization with the system service registry and independent revert capabilities. This self-service approach reduces the need for complex external coordination mechanisms, as the proxy registrar handles consistency management autonomously, thereby limiting the increase in overall system complexity.
Data Source
AI summary
Methods, apparatus, systems and articles of manufacture manage services in distributed systems are disclosed. An example apparatus includes at least one storage device, and at least one processor to execute instructions to at least perform an update of a first virtual machine in response to a determination that the first virtual machine is to enter a maintenance mode, the update based on storing a first service in a local service registry of the first virtual machine, in response to an unsuccessful update of the first virtual machine, restore the first virtual machine based on a snapshot, and provide the first service from a system service registry to a second virtual machine in response to a query from the second virtual machine for the first service.


