Hot Deployment in Distributed Cluster Systems
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing distributed cluster systems, such as Platform-as-a-Service (PaaS) systems, face inefficiencies in deploying modifications to source code without interrupting the execution of application image instances, as they require rebuilding and restarting containers, leading to resource overhead and complexity.
Innovation Solution
Implementing a source-to-image (STI) methodology within the PaaS system that allows for hot deployment by using a build container with modification logic to update source code in runtime containers without restarting, enabling modifications during execution.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If traditional deployment methods are used to modify source code in containers, then the source code can be updated, but the container must be restarted which causes service interruption and resource overhead
Solution Approach 1:
The system dynamically applies source code modifications to running containers without requiring a restart. The modification logic framework enables live updates by dynamically replacing source code files in the container's filesystem, allowing the container to continue executing with updated code without service interruption.
Solution Approach 2:
The hot deployment mechanism maintains continuous execution of the application by applying code changes at runtime. The modification logic framework ensures that source code updates are applied while the container is running, eliminating the need to stop and restart the service, thus maintaining continuous useful action.
2Productivity
If containers are rebuilt and restarted to apply source code modifications, then the source code is updated, but resource overhead and system complexity increase
Solution Approach 1:
The system extracts the modification logic framework as a separate component that operates independently from the container runtime. This framework handles source code modifications separately from the container execution, allowing updates without affecting the container's operational complexity or requiring rebuild operations.
Solution Approach 2:
The modification logic framework acts as an intermediary between the source code repository and the running container. It receives source code changes, processes them, and applies them to the container's filesystem without requiring the container itself to be rebuilt or restarted, thus reducing overall system complexity.
3Adaptability or versatility
If frequent image rebuilds are performed to deploy modifications, then source code changes are applied, but resource consumption increases
Solution Approach 1:
The system performs preliminary actions by caching modified source code files and using a modification logic framework that prepares changes before application. This allows efficient deployment by reusing modified files and avoiding complete image rebuilds, thereby reducing resource consumption while maintaining flexibility in updates.
Data Source
AI summary
Implementations provide for a source to image framework for a Platform-as-a-Service (PaaS) system in a distributed cluster system that can apply modifications to source code. A method of the disclosure includes invoking source-to-image (STI) methodology to execute an instance of an application image. The application image is associated with source code and an application framework of an application. A modification to the source code utilized in the instance is received and identified via the application framework utilized in the instance. The identified modification to the source code is applied during runtime of the instance in a container via the application framework.


