Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
e96fdb58
Commit
e96fdb58
authored
Sep 19, 2017
by
Bert Young
Committed by
GitHub
Sep 19, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the little's law's hyperlink
parent
ce673b55
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
avalanche.md
docs/cn/avalanche.md
+1
-1
No files found.
docs/cn/avalanche.md
View file @
e96fdb58
...
...
@@ -17,5 +17,5 @@
对于brpc的用户来说,要防止雪崩,主要注意两点:
1.
评估server的最大并发,设置合理的max_concurrency值。这个默认是不设的,也就是不限制。无论程序是同步还是异步,用户都可以通过
**最大qps \* 非拥塞时的延时**
(秒)来评估最大并发,原理见
[
little's law
](
https://en.wikipedia.org/wiki/Little
)
,这两个量都可以在brpc中的内置服务中看到。max_concurrency与最大并发相等或大一些就行了。
1.
评估server的最大并发,设置合理的max_concurrency值。这个默认是不设的,也就是不限制。无论程序是同步还是异步,用户都可以通过
**最大qps \* 非拥塞时的延时**
(秒)来评估最大并发,原理见
[
little's law
](
https://en.wikipedia.org/wiki/Little
%27s_law
)
,这两个量都可以在brpc中的内置服务中看到。max_concurrency与最大并发相等或大一些就行了。
2.
注意考察重试发生时的行为,特别是在定制RetryPolicy时。如果你只是用默认的brpc重试,一般是安全的。但用户程序也常会自己做重试,比如通过一个Channel访问失败后,去访问另外一个Channel,这种情况下要想清楚重试发生时最差情况下请求量会放大几倍,服务是否可承受。
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment