Cluster Manager Scaling Stateful Services

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Managing and scaling clusters of server nodes hosting different stateful services is challenging due to varying load characteristics, as each service requires distinct scaling operations, which existing technologies fail to address effectively.

Innovation Solution

A cluster manager computer dynamically assesses and implements different scaling operations for each stateful service by evaluating unique metrics, such as email queue depth for email scanning services and CPU/memory utilization for attachment scanning services, allowing for tailored scaling actions based on predicted load patterns.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Device complexity

If a unified scaling approach is used for all stateful services in a cluster, then device complexity is reduced, but adaptability to different service load characteristics deteriorates

Engineering Contradiction:
Improvescaling management complexityVSAvoidadaptability to service-specific load characteristics
Core Design Contradiction:
Device complexityVSAdaptability or versatility

Solution Approach 1:

The patent segments the cluster into multiple service-specific groups, where each group is evaluated and scaled independently based on its own load characteristics. This allows different scaling policies to be applied to different services (e.g., email scanning vs. attachment scanning) without increasing overall system complexity, as each segment can be managed autonomously.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent implements local quality by allowing each service group to have its own scaling parameters and load evaluation metrics tailored to its specific characteristics. For example, email scanning services may be scaled based on message queue depth, while attachment scanning services may use different metrics, optimizing each service's performance according to its local requirements.

Inventive Principle:
Principle #3Local quality

2Adaptability or versatility

If scaling operations are performed frequently to adapt to changing loads, then adaptability improves, but loss of time due to scaling operations increases

Engineering Contradiction:
Improveresponsiveness to load changesVSAvoidtime lost to scaling operations
Core Design Contradiction:
Adaptability or versatilityVSLoss of time

Solution Approach 1:

The patent implements periodic action by evaluating scaling needs at scheduled intervals and applying scaling operations in batches rather than continuously. The cluster manager periodically assesses load characteristics across service groups and triggers scaling operations only when thresholds are met, reducing the frequency of scaling actions while maintaining adaptability to load changes.

Inventive Principle:
Principle #19Periodic action

Solution Approach 2:

The patent applies preliminary action by proactively scaling service groups before load peaks occur, based on predicted load patterns and historical data. This allows the system to anticipate demand changes and scale in advance, reducing the need for frequent reactive scaling operations and minimizing time loss.

Inventive Principle:
Principle #10Preliminary action

3Measurement precision

If detailed service-specific metrics are used for scaling decisions, then measurement precision improves, but device complexity increases

Engineering Contradiction:
Improveprecision of load assessmentVSAvoidcomplexity of monitoring and evaluation system
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent segments monitoring into service-specific domains, where each service group has its own set of relevant metrics collected and evaluated independently. This segmentation allows detailed measurement precision for each service type (e.g., queue depth for email scanning, CPU usage for attachment scanning) without requiring a single complex monitoring system to handle all metrics for all services.

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS11165859B1Scaling stateful services hosted in a cluster of server nodes
Publication Date: 2021.11.02 CLOUDFLARE INC
  • US11165859B1 patent drawing
  • US11165859B1 patent drawing
  • US11165859B1 patent drawing

AI summary

In an embodiment, the disclosed technologies implement scaling operations for clusters of server nodes hosting stateful services. An embodiment includes a cluster manager computer calling a first instance of scaling status functions for a first stateful service and a second instance of scaling status functions for a second stateful service, the first stateful service being programmed to implement a different service than the second stateful service. The cluster manager computer is programmed to implement different scaling operations for the first stateful service and the second stateful service, each set of the scaling operations being optimized for respective services.