Skip to content

feat: add a service option to disable check eovercrowded on server side#2774

Merged
chenBright merged 4 commits into
apache:masterfrom
superhail:master
Oct 14, 2024
Merged

feat: add a service option to disable check eovercrowded on server side#2774
chenBright merged 4 commits into
apache:masterfrom
superhail:master

Conversation

@superhail

Copy link
Copy Markdown
Contributor

What problem does this PR solve?

Issue Number:

Problem Summary: Sometimes we need to disable check eovercrowded for some methods

What is changed and the side effects?

Changed: add a method/service level option to disable check eovercrowded on server side

Side effects:

  • Performance effects(性能影响): zero/or little

  • Breaking backward compatibility(向后兼容性): no breaking


Check List:

  • Please make sure your changes are compilable(请确保你的更改可以通过编译).
  • When providing us with a new feature, it is best to add related tests(如果你向我们增加一个新的功能, 请添加相关测试).
  • Please follow Contributor Covenant Code of Conduct.(请遵循贡献者准则).

Comment thread src/brpc/policy/baidu_rpc_protocol.cpp Outdated
Comment thread src/brpc/server.h
Comment thread src/brpc/server.h Outdated
Comment thread src/brpc/server.h Outdated
@wwbmmm

wwbmmm commented Oct 7, 2024

Copy link
Copy Markdown
Contributor

What is the usage scenario of this feature?

@superhail

Copy link
Copy Markdown
Contributor Author

@wwbmmm we have some control-frame methods which we hope will not fail in case of eovercrowded.

@superhail

Copy link
Copy Markdown
Contributor Author

@chenBright please help check

@chenBright chenBright left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ignore_eovercrowded should also be supported in the HTTP protocol.

@superhail

Copy link
Copy Markdown
Contributor Author

@chenBright http2 needed as well?

Comment thread src/brpc/server.cpp Outdated
@chenBright

Copy link
Copy Markdown
Contributor

@chenBright http2 needed as well?

http2 also use ProcessHttpRequest.

Protocols that use the is_overcrowded function need as well.

@superhail

Copy link
Copy Markdown
Contributor Author

@wwbmmm @chenBright all done

@wwbmmm

wwbmmm commented Oct 14, 2024

Copy link
Copy Markdown
Contributor

LGTM

@chenBright chenBright left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chenBright chenBright merged commit 667b96a into apache:master Oct 14, 2024
@superhail superhail changed the title [feat][WIP] add a method option to disable check eovercrowded on server side [feat]: add a method option to disable check eovercrowded on server side Oct 15, 2024
@superhail superhail changed the title [feat]: add a method option to disable check eovercrowded on server side feat: add a method option to disable check eovercrowded on server side Oct 15, 2024
@superhail superhail changed the title feat: add a method option to disable check eovercrowded on server side feat: add a service option to disable check eovercrowded on server side Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants