-
Notifications
You must be signed in to change notification settings - Fork 5.2k
conn pool: added a new load shed when creating new connections to upstream #39685
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
conn pool: added a new load shed when creating new connections to upstream #39685
Conversation
Signed-off-by: Boteng Yao <boteng@google.com>
…d_shed_point Signed-off-by: Boteng Yao <boteng@google.com>
Signed-off-by: Boteng Yao <boteng@google.com>
Signed-off-by: Boteng Yao <boteng@google.com>
Signed-off-by: Boteng Yao <boteng@google.com>
|
/assign @yanavlasov |
yanavlasov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/wait-any
| return nullptr; | ||
| } else if (result == ConnectionResult::LoadShed) { | ||
| pending->cancel(Envoy::ConnectionPool::CancelPolicy::CloseExcess); | ||
| onPoolFailure(nullptr, absl::string_view(), ConnectionPool::PoolFailureReason::Overflow, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to create a new failure reason so we can distinguish load shed from just pool limits overflow?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I think that totally makes sense, and I tend to add an OverloadManager, but I realized that it will change a lot of other places that is associated with the enum, would you be okay to add a TODO that I will change it latter?
Signed-off-by: yanavlasov <yavlasov@google.com>
Added a load shed point when trying to create new connection in the connection pool.
Commit Message:
Additional Description:
Risk Level: low
Testing:
Docs Changes:
Release Notes: