Dynamic Sidecar Sizing for Container Clusters

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional methods for managing sidecar resources in containerized systems, such as vertical pod autoscaling, horizontal pod autoscaling, and cluster autoscaling, are inadequate in addressing dynamic resource requirements due to variable traffic levels, leading to inefficient resource allocation, disruptions, and excessive pod churn.

Innovation Solution

A method for dynamically sizing sidecar containers based on monitored requests and usage data, including CPU and memory consumption, to optimize resource allocation and reduce the sidecar cluster footprint, allowing for continuous and environment-agnostic sizing throughout an application's lifecycle.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If conventional vertical pod autoscaling, horizontal pod autoscaling, or cluster autoscaling is used to manage sidecar resources, then resource allocation can be adjusted, but disruptions and excessive pod churn occur due to variable traffic levels

Engineering Contradiction:
Improveservice continuityVSAvoidpod churn
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent implements dynamic sidecar sizing that automatically adjusts resource allocation based on real-time traffic patterns and usage data. The system continuously monitors traffic levels and modifies sidecar container resources without causing pod disruptions or churn, resolving the contradiction between maintaining service reliability and avoiding excessive pod recreation

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The system employs feedback mechanisms by monitoring traffic patterns and usage data to continuously optimize sidecar resource allocation. This closed-loop control adjusts resources based on actual demand, preventing both over-provisioning and under-provisioning while maintaining service stability without triggering pod churn

Inventive Principle:
Principle #23Feedback

2Reliability

If sidecar containers are sized generously by default to ensure adequate functionality, then resource availability is improved, but infrastructure and resource costs increase by up to 50% for CPU and 80% for memory

Engineering Contradiction:
Improveresource adequacyVSAvoidresource cost
Core Design Contradiction:
ReliabilityVSLoss of energy

Solution Approach 1:

The patent transitions from static generous sizing to dynamic adaptive sizing. The system starts with adequate resources and automatically scales down based on monitored usage patterns, ensuring resource adequacy during high traffic while reducing costs during low traffic periods, eliminating the need to consistently over-provision

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The system changes resource allocation parameters dynamically based on traffic conditions and usage data. By adjusting CPU and memory allocations in response to actual demand rather than using fixed generous defaults, the system maintains reliability when needed while minimizing resource consumption and costs during normal operation

Inventive Principle:
Principle #35Parameter changes

3Loss of energy

If sidecar containers are sized small by default to avoid excess resources, then resource cost is reduced, but resource allocation becomes insufficient for variable traffic levels

Engineering Contradiction:
Improveresource costVSAvoidresource adequacy
Core Design Contradiction:
Loss of energyVSReliability

Solution Approach 1:

The system implements dynamic resource allocation that starts with conservative sizing and automatically scales up when traffic demands increase. This approach avoids the need to pre-provision for peak loads while ensuring adequate resources are available when needed, maintaining both cost efficiency and reliability

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The monitoring and feedback mechanism detects when traffic patterns indicate increased resource needs and triggers appropriate scaling actions. This ensures resources are allocated adequately in response to actual demand rather than being statically over-provisioned, maintaining reliability while minimizing unnecessary resource consumption

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS20240427621A1Dynamic sidecar sizing and deployment system
Publication Date: 2024.12.26 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US20240427621A1 patent drawing
  • US20240427621A1 patent drawing
  • US20240427621A1 patent drawing

AI summary

An approach is provided for sidecar sizing. An application running in a cluster of a containerized system is provided. The application includes at least one sidecar container having configuration data including a first size of the at least one sidecar container. Requests for the application over time and usage data for the application over time, including memory and/or CPU consumption, are monitored. The first size of the at least one sidecar container is evaluated, and a second size of the least one sidecar container is determined, based on the monitored requests for the application and usage data for the application. Updated configuration data for the at least one sidecar container, including the second size of the at least one sidecar container, is provided.