Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add deadline for trace request #118

Merged
merged 1 commit into from
Sep 4, 2023

Conversation

ErosZy
Copy link
Contributor

@ErosZy ErosZy commented Sep 3, 2023

feat: add deadline for trace request

In our practice, we have found that when skywalking's backend service is under too much pressure to handle the request quickly, the trace request will stay alive by default and not be closed (the default value of grpc deadline is 2147483647). If the default maxBufferSize is used, a large number of requests per second will pile up, and slowly the client's memory will rise until it reaches the pod's limit and restarts. as shown:

截屏2023-09-03 下午9 47 09

This also causes frequent up and down for skywalking's backend services (because of RetryingCall), which is very dangerous!

265268504-ed146317-35a2-4399-93bc-aaef7aebabc4

@apache apache deleted a comment from tkNobug Sep 3, 2023
@wu-sheng wu-sheng requested a review from kezhenxu94 September 3, 2023 14:02
@wu-sheng wu-sheng added this to the 0.6.0 milestone Sep 3, 2023
@wu-sheng wu-sheng added the enhancement New feature or request label Sep 3, 2023
@kezhenxu94 kezhenxu94 merged commit c40e46d into apache:master Sep 4, 2023
@ErosZy ErosZy deleted the feat/add-trace-timeout branch September 4, 2023 06:05
@wu-sheng wu-sheng modified the milestones: 0.6.0, 0.7.0 Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants