Skip to content

Commit

Permalink
Fix: Correct the image path in doc 'overload_control_high_percentile' (
Browse files Browse the repository at this point in the history
  • Loading branch information
leolin49 authored Nov 15, 2024
1 parent c187965 commit 98bbeef
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/en/overload_control_high_percentile.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ The adaptive overload protection strategy based on concurrency utilizes a comple

## Diagram of Adaptive Overload Protection Based on Concurrency

![high_percenttile_limiter](../images/../high_percenttile_limiter.png)
![high_percenttile_limiter](../images/high_percenttile_limiter.png)
The core component in the diagram is the `HighPercentileServerFilter`, which plays a crucial role in comparing the current concurrency requests (`concurrency_reqs`) with the dynamically calculated maximum concurrency (`max_concurrency`) to determine whether to reject the incoming request (curr_req). The `max_concurrency` is calculated based on the principles of Little's Law.

## Implementation code
Expand Down
File renamed without changes
2 changes: 1 addition & 1 deletion docs/zh/overload_control_high_percentile.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ tRPC-Cpp 框架已支持:基于流量控制限流,并发请求限流,并

## 基于并发度的自适应过载保护原理图

![high_percenttile_limiter](../images/../high_percenttile_limiter.png)
![high_percenttile_limiter](../images/high_percenttile_limiter.png)
图中核心点就是 `HighPercentileServerFilter` ,它的主要作用是获取框架当前的并发请求数(`concurrency_reqs`)与动态计算的最大并发数(`max_concurrency`)进行比较来判断是否拒绝当前接收的新请求(`curr_req`),`max_concurrency` 是基于 little`s law 原理计算获取的。

## 实现代码
Expand Down

0 comments on commit 98bbeef

Please sign in to comment.