Bottleneck Detection in On-Demand Processing Pipelines

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional database systems are late in detecting bottlenecks, leading to widespread and prolonged performance issues due to their limited ability to detect application performance issues caused by database waits, which are not reflective of application performance degradation and often missed until they become significant.

Innovation Solution

A novel technique for early detection and warning of bottlenecks by correlating application and database metrics, using a multi-layered metrics correlation framework to identify potential database incidents and generate alerts for proactive mitigation before issues become widespread.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If conventional database monitoring techniques are used, then system simplicity is maintained, but bottleneck detection is delayed until performance issues become widespread

Engineering Contradiction:
Improvebottleneck detection timingVSAvoidmonitoring framework complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The monitoring framework is segmented into multiple layers: application layer metrics collection, database layer metrics collection, correlation layer for matching metrics, and alerting layer. This segmentation allows precise bottleneck detection at different stages without creating a monolithic complex system, resolving the contradiction by organizing complexity into manageable segments that each contribute to early detection

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system performs preliminary actions by establishing baseline metrics and correlation rules before bottlenecks occur. The multi-layered framework proactively collects and correlates metrics in advance, enabling early detection of performance degradation patterns before they become widespread issues, thus improving detection timing without proportionally increasing complexity

Inventive Principle:
Principle #10Preliminary action

2Loss of time

If multi-layered metrics correlation framework is implemented, then early bottleneck detection is achieved, but system complexity increases

Engineering Contradiction:
Improvetime to detect performance issuesVSAvoidmonitoring system architecture
Core Design Contradiction:
Loss of timeVSDevice complexity

Solution Approach 1:

The framework merges application layer metrics and database layer metrics into a unified correlation analysis. By combining these previously separate monitoring streams into a single correlated view, the system achieves early bottleneck detection through comprehensive analysis without requiring entirely separate monitoring systems, thus managing complexity through strategic merging of critical functions

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

The correlation framework acts as an intermediary layer between application metrics and database metrics. This intermediary correlates the two metric types to identify bottlenecks that would be invisible to either monitoring layer alone, enabling early detection while maintaining a clear architectural boundary that prevents exponential complexity growth

Inventive Principle:
Principle #24Intermediary (Mediator)

3Reliability

If conventional wait detection is used, then monitoring overhead is minimized, but performance degradation is not reflected accurately

Engineering Contradiction:
Improveperformance issue detection accuracyVSAvoidmetrics collection and correlation mechanism
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The framework implements feedback loops where correlated metrics continuously inform each other. Application wait metrics provide feedback about performance issues that are cross-referenced with database wait metrics, creating a feedback mechanism that improves detection accuracy by validating patterns across multiple layers, thus enhancing reliability through systematic feedback rather than simple threshold monitoring

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS11675758B2Early detection and warning for system bottlenecks in an on-demand environment
Publication Date: 2023.06.13 SALESFORCE INC
  • US11675758B2 patent drawing
  • US11675758B2 patent drawing
  • US11675758B2 patent drawing

AI summary

In accordance with embodiments, there are provided mechanisms and methods for facilitating early detection and warning for system bottlenecks in an on-demand services environment according to one embodiment. In one embodiment and by way of example, a method includes detecting waits during processing of a query within a processing pipeline, wherein the waits include one or more of application-specific waits and database-specific waits; diagnosing the waits to identify a wait that has turned into a bottleneck; classifying one or more types of issues causing the wait to turn into the bottleneck; generating an alert having associated information detailing the issues based on the one or more types and a location of the wait within the processing pipeline; and transmitting the alert to facilitate correction activities.