Proxy Process Decouples Daemon Lifecycle from Container Termination

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Container technology in computing environments is limited by the short lifespan of processes, which can terminate along with the container, and the inability to perform long-term functionalities beyond the container's lifecycle, especially in Kubernetes environments.

Innovation Solution

A proxy process is used to create and manage a daemon process on the host that survives beyond the container's lifecycle, allowing the daemon process to continue functioning independently and maintaining necessary functionalities.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If a process runs within a container, then the container provides isolation and portability, but the process life is limited to the container lifespan

Engineering Contradiction:
Improveprocess availabilityVSAvoidprocess lifespan
Core Design Contradiction:
ReliabilityVSDuration of action of stationary object

Solution Approach 1:

The system separates the container lifecycle from the daemon process lifecycle by using a proxy process. The proxy process is spawned by the container but lives independently on the host, allowing the daemon process to outlive the container. This segmentation resolves the contradiction by decoupling the process lifespan from the container lifespan while maintaining the isolation benefits of containers.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The proxy process acts as an intermediary between the container and the daemon process. It receives the daemon process PID from the container, spawns the daemon process on the host, and maintains the connection. This intermediary enables the daemon process to survive container termination while preserving the container's isolation advantages.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Productivity

If the container is terminated as part of its lifecycle, then resource management is improved, but the daemon process must also terminate

Engineering Contradiction:
Improveresource management efficiencyVSAvoiddaemon process continuity
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The system segments the process management by introducing a proxy process that independently manages the daemon process lifecycle from the container lifecycle. When the container terminates, the proxy process remains alive and continues to manage the daemon process, allowing the daemon to persist while the container is cleaned up for resource management.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The proxy process serves as an intermediary that decouples the termination of the container from the termination of the daemon process. It maintains the daemon process's continuity even after the container is terminated, ensuring reliability while allowing efficient resource management through container lifecycle control.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Duration of action of stationary object

If the container performs long-term functionality, then operational longevity is achieved, but the container must outlive its typical lifecycle

Engineering Contradiction:
Improvefunctional availabilityVSAvoidlifecycle flexibility
Core Design Contradiction:
Duration of action of stationary objectVSAdaptability or versatility

Solution Approach 1:

The system segments the functional availability from the container lifecycle by using a proxy process that manages daemon processes independently. This allows the container to maintain flexibility in its lifecycle (starting, stopping, scaling) while the daemon process provides long-term functional availability through the proxy's persistent management.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The proxy process acts as an intermediary that enables the container to maintain lifecycle flexibility while achieving operational longevity. It allows the container to be terminated or restarted without affecting the daemon process's long-term functionality, thus providing both adaptability and duration.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS20240289154A1Invoking a host process from within a container to outlive the container lifespan
Publication Date: 2024.08.29 DELL PROD LP
  • US20240289154A1 patent drawing
  • US20240289154A1 patent drawing
  • US20240289154A1 patent drawing

AI summary

Presented herein are embodiments for starting a host process from within a container via a proxy process. In one or more embodiments, the container delegates creation and maintenance of a host process (e.g., a daemon process) to the proxy process—thereby removing the host process's lifecycle dependent to the container's lifecycle. Thus, no service impact occurs when the container is terminated or restarted. In one or more embodiments, a host process, like an SSH server, may be used as a proxy process for creating, on behalf of a container, a host process (e.g., a daemon process), in which the host process's hierarchical dependency is not dependent on the container. Termination of the daemon process and any other controls may be (but do not have to be) done through the proxy process. In one or more embodiments, when the daemon process is running, it may provide its own communication/control interface.