Load Balancer Algorithm Switching for Black Hole Effect

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In distributed systems, load balancers using the 'least connections' algorithm can lead to the 'black hole effect' where a faulty host is overwhelmed with client traffic, causing performance issues due to disproportionate traffic routing.

Innovation Solution

Implement a load balancer management system that dynamically adjusts the load balancing algorithm from 'least connections' to 'round robin' or other algorithms based on performance metrics and component deployment, proactively or reactively, to mitigate performance deviations and restore the original configuration after a predetermined period or when performance issues are resolved.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If the least connections algorithm is used for load balancing, then traffic is routed to hosts with fewer active connections improving load distribution, but a faulty host handling requests quickly by failing them causes disproportionate traffic to be routed to it creating the black hole effect

Engineering Contradiction:
Improveload distribution efficiencyVSAvoidsystem stability
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The load balancing algorithm is made dynamic by allowing switching between least connections and round robin algorithms based on detected system conditions. The system monitors host performance and automatically changes the algorithm to prevent the black hole effect, transforming a static configuration into an adaptive one that responds to changing conditions.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The system implements feedback mechanisms by monitoring host performance metrics and using this information to determine when to switch load balancing algorithms. The monitoring component detects when a host is failing requests and triggers algorithm switching, creating a closed-loop control system that prevents the black hole effect.

Inventive Principle:
Principle #23Feedback

2Reliability

If the load balancer configuration is changed dynamically to prevent the black hole effect, then system reliability is improved, but the complexity of managing multiple algorithms and switching logic increases

Engineering Contradiction:
Improvesystem stabilityVSAvoidload balancer management complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The load balancer system performs self-service by automatically monitoring its own hosts and switching algorithms without external intervention. The system autonomously detects performance deviations and changes configuration, reducing the need for manual management while maintaining high reliability.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The system takes preliminary action by pre-configuring multiple load balancing algorithms and having switching logic ready before problems occur. This allows the system to respond quickly to detected issues without complex real-time decision-making, simplifying management while maintaining reliability.

Inventive Principle:
Principle #10Preliminary action

3Reliability

If performance monitoring and algorithm switching is implemented, then the black hole effect is prevented, but the system requires additional components and configuration management

Engineering Contradiction:
Improveperformance stabilityVSAvoidsystem component count
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The load balancer is designed with multi-functionality by integrating monitoring, algorithm selection, and traffic routing capabilities into a single system. This universal approach consolidates multiple functions that could be separate components, preventing the black hole effect without proportionally increasing system complexity.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentUS10455009B2Optimizing a load balancer configuration
Publication Date: 2019.10.22 AMAZON TECH INC
  • US10455009B2 patent drawing
  • US10455009B2 patent drawing
  • US10455009B2 patent drawing

AI summary

Methods, systems, and computer-readable media for optimizing a load balancer configuration are disclosed. A load balancer is configured to perform traffic management for a distributed system. A new component is deployed to the distributed system or a performance deviation is predicted in the distributed system. In response to the initiation of the deployment or the prediction of the performance deviation, the configuration of the load balancer is modified from a first state to a second state. Modifying the configuration of the load balancer modifies the traffic management for the distributed system. If the configuration was changed due to a deployment, the configuration of the load balancer is restored from the second state to the first state after a period of time has elapsed.