Repository navigation
add support for tower's load-shed layer - #2189
Conversation
d7566a5 to
5250ea9
Compare
LucioFranco
left a comment
There was a problem hiding this comment.
Would be interesting to see if we could write a test for this?
i took my first shot on adding a integration test for resource_exhausted. not sure how much i should or should not expand on this. |
|
@LucioFranco any thoughts on the added tests? open this PR in feb, hope to get this merged soon and get back to using an official release of tonic in our projects. thx |
LucioFranco
left a comment
There was a problem hiding this comment.
Sorry for the delay, well get this into a release soon.
* chore: Use symbolic link for license file (grpc#2241) * chore: Use inline format argument (grpc#2260) * chore: Add `flake.nix` (grpc#2261) * chore: Fix interop test certs (grpc#2262) * chore: Fix interop test certs * fix bash script: * fix: tls config overwrite in endpoint (grpc#2252) * fix: tls config overwrite in endpoint PR grpc#1866 fixed the breaking change introduced in grpc#1731, but resets the TLS config without checking if `tls` is set. This patch resolves the regression and restores expected behaviour. * fix: cargo fmt whitespace check --------- Co-authored-by: vigneshwar.sm <[email protected]> Co-authored-by: Lucio Franco <[email protected]> * chore(tonic-bench): Fix failing bench (grpc#2207) Co-authored-by: Lucio Franco <[email protected]> * feat: expose creation of HealthService and HealthReporter (grpc#2251) * Expose creation of HealthService and HealthReporter * add default impl for HealthReporter * [spr] initial version (grpc#2264) Created using spr 1.3.6-beta.1 * Revert "[spr] initial version (grpc#2264)" (grpc#2265) * chore: Prepare `v0.13.1` release Reviewers: Pull Request: grpc#2266 * chore: Disable unused tower feature (grpc#2270) * chore(ci): Set RUSTFLAGS only on check job (grpc#2271) * chore: Update to webpki-roots 1 (grpc#2269) * chore(ci): Update to cargo-check-external-types 0.2 (grpc#2272) * chore(ci): Set token permission to read (grpc#2275) * chore(test): Remove cargo-machete config (grpc#2278) * chore: Remove unused dependency (grpc#2277) * feat: add support for tower's load-shed layer (grpc#2189) Refs: grpc#1616 * chore: box Status contents (grpc#2253) (grpc#2282) * chore: box Status contents (grpc#2253) * chore: use private into_status method * chore(doc): Fix outdated limit in comment (grpc#2297) * fix outdated limit in comment This mention was missed when the default changed in grpc#1335 * Add backquotes Co-authored-by: tottoto <[email protected]> --------- Co-authored-by: tottoto <[email protected]> * feat: Update to prost 0.14 (grpc#2300) * chore: Start development of version 0.14 (grpc#2303) * chore(build): Make empty client and server modules private (grpc#2291) Co-authored-by: Lucio Franco <[email protected]> Co-authored-by: tottoto <[email protected]> * chore(test): Simplify skip debug test (grpc#2305) * chore(ci): Exclude semver check of unreleased crate (grpc#2304) * feat(types): Update error_details.proto to a56cbf3b (grpc#2286) (grpc#2306) * chore(test): Remove unnecessary prost-build dependency (grpc#2307) * feat(transport): Allow setting TCP_KEEPINTVL and TCP_KEEPCNT (grpc#2299) * Allow setting TCP_KEEPINTVL and TCP_KEEPCNT * fix windows * fix clippy windows * fix(tonic): make `Streaming` `Sync` again (grpc#2293) The boxed `Decoder` inside `Streaming` need not be `Sync` since grpc#804. Unfortunately, that makes `Streaming` non-`Sync`, meaning that all the generated `tonic` futures cannot be awaited in `Sync` futures. In fact, the only times we use the `Decoder`, we have a `&mut` unique reference to it, so we are guaranteed not to require synchronization. The `sync_wrapper` crate encodes this reasoning, allowing us to safely make the `Streaming` type `Sync` regardless of whether the contained `Decoder` is `Sync` or not. * feat: preserve user-agent header (grpc#2290) Co-authored-by: Lucio Franco <[email protected]> * chore: Make publish script portable (grpc#2313) * feat(tls): Add tls handshake timeout support (grpc#2309) Co-authored-by: tottoto <[email protected]> * docs(tonic-build): remove doc-difference between `lib.rs` and Readme (grpc#2308) * doc: try to improve the doc-disparity between `tonic-build`'s `lib.rs` and the readme * Fix indentation * fix the doctests * fix a typo and retes an assumption * Change `compile_fail` to `ignore` Co-authored-by: tottoto <[email protected]> --------- Co-authored-by: tottoto <[email protected]> * Merge changes from next to master branch (grpc#2315) Co-authored-by: Arjan Singh Bal <[email protected]> Co-authored-by: Easwar Swaminathan <[email protected]> * chore(interop): Update to console 0.16 (grpc#2318) * chore(test): Remove unnecessary tokio-stream dependency (grpc#2311) * chore(test): Refactor default stubs test (grpc#2310) * chore(test): Use tempfile crate to handle temporary file (grpc#2325) * chore(grpc): Update to rand 0.9 (grpc#2324) --------- Co-authored-by: tottoto <[email protected]> Co-authored-by: Lucio Franco <[email protected]> Co-authored-by: Vigneshwar S <[email protected]> Co-authored-by: vigneshwar.sm <[email protected]> Co-authored-by: Rafael RL <[email protected]> Co-authored-by: Leon Hartley <[email protected]> Co-authored-by: Joe Roback <[email protected]> Co-authored-by: Raphael Taylor-Davies <[email protected]> Co-authored-by: Alexis Darrasse <[email protected]> Co-authored-by: Alex Steele <[email protected]> Co-authored-by: Kristopher Wuollett <[email protected]> Co-authored-by: Makro <[email protected]> Co-authored-by: James Kay <[email protected]> Co-authored-by: Darren Bolduc <[email protected]> Co-authored-by: Honsun Zhu <[email protected]> Co-authored-by: Frank Elsinga <[email protected]> Co-authored-by: Arjan Singh Bal <[email protected]> Co-authored-by: Easwar Swaminathan <[email protected]>
@LucioFranco I don't see a milestone beyond 0.13 in the issue tracker. Are there things I can do to help with getting to the next release? Load shedding would be great for my use case. |
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [tonic](https://redirect.github.com/grpc/grpc-rust) | dependencies | minor | `0.12.3` → `0.14.0` | --- ### Release Notes <details> <summary>grpc/grpc-rust (tonic)</summary> ### [`v0.14.9`](https://redirect.github.com/grpc/grpc-rust/releases/tag/tonic-v0.14.9) [Compare Source](https://redirect.github.com/grpc/grpc-rust/compare/tonic-v0.14.8...tonic-v0.14.9) ##### Added - *(transport)* expose h2 reset stream settings on Endpoint ([#​2972](https://redirect.github.com/grpc/grpc-rust/pull/2972)) ##### Fixed - *(server)* set a timer on HTTP/1 connections so hyper's header read timeout applies ([#​2980](https://redirect.github.com/grpc/grpc-rust/pull/2980)) ### [`v0.14.8`](https://redirect.github.com/grpc/grpc-rust/releases/tag/tonic-types-v0.14.8) [Compare Source](https://redirect.github.com/grpc/grpc-rust/compare/tonic-v0.14.7...tonic-v0.14.8) ##### Fixed - *(types)* Serialize `BadRequest::FieldViolation` `reason` and `localized_message` ([#​2461](https://redirect.github.com/grpc/grpc-rust/pull/2461)) - fix/silence all clippy warnings ([#​2807](https://redirect.github.com/grpc/grpc-rust/pull/2807)) ##### Other - fix changelog duplicate and update repository URLs ([#​2943](https://redirect.github.com/grpc/grpc-rust/pull/2943)) - License update ([#​2749](https://redirect.github.com/grpc/grpc-rust/pull/2749)) ### [`v0.14.7`](https://redirect.github.com/grpc/grpc-rust/releases/tag/tonic-reflection-v0.14.7) [Compare Source](https://redirect.github.com/grpc/grpc-rust/compare/tonic-v0.14.6...tonic-v0.14.7) ##### Fixed - *(reflection)* preserve custom options in served descriptors ([#​2730](https://redirect.github.com/grpc/grpc-rust/pull/2730)) ##### Other - fix changelog duplicate and update repository URLs ([#​2943](https://redirect.github.com/grpc/grpc-rust/pull/2943)) - enable missing feature for test build ([#​2820](https://redirect.github.com/grpc/grpc-rust/pull/2820)) - License update ([#​2749](https://redirect.github.com/grpc/grpc-rust/pull/2749)) ### [`v0.14.6`](https://redirect.github.com/grpc/grpc-rust/releases/tag/tonic-v0.14.6) [Compare Source](https://redirect.github.com/grpc/grpc-rust/compare/v0.14.5...tonic-v0.14.6) ##### Added - *(transport/channel)* expose ServerCertVerifier API ([#​2612](https://redirect.github.com/hyperium/tonic/pull/2612)) ##### Fixed - map no trailers ok status to unknown ([#​2543](https://redirect.github.com/hyperium/tonic/pull/2543)) ##### Other - add max_frame_size to client Endpoint ([#​2592](https://redirect.github.com/hyperium/tonic/pull/2592)) - Allow setting the HTTP/2 client header table size ([#​2582](https://redirect.github.com/hyperium/tonic/pull/2582)) - update rust edition and version to 2024 and 1.88, respectively ([#​2525](https://redirect.github.com/hyperium/tonic/pull/2525)) ### [`v0.14.5`](https://redirect.github.com/grpc/grpc-rust/releases/tag/v0.14.5) [Compare Source](https://redirect.github.com/grpc/grpc-rust/compare/v0.14.4...v0.14.5) #### What's Changed - Add max connections setting **Full Changelog**: <grpc/grpc-rust@v0.14.4...v0.14.5> ### [`v0.14.4`](https://redirect.github.com/grpc/grpc-rust/releases/tag/v0.14.4) [Compare Source](https://redirect.github.com/grpc/grpc-rust/compare/v0.14.3...v0.14.4) #### What's Changed - chore(doc): Replace doc_auto_cfg config with doc_cfg by [@​tottoto](https://redirect.github.com/tottoto) in [grpc/grpc-rust#2428](https://redirect.github.com/hyperium/tonic/pull/2428) - fix(web): allow space after `:` in `grpc-status` by [@​LucioFranco](https://redirect.github.com/LucioFranco) in [grpc/grpc-rust#2506](https://redirect.github.com/hyperium/tonic/pull/2506) #### New Contributors - [@​r0x0d](https://redirect.github.com/r0x0d) made their first contribution in [grpc/grpc-rust#2502](https://redirect.github.com/hyperium/tonic/pull/2502) **Full Changelog**: <grpc/grpc-rust@v0.14.3...v0.14.4> ### [`v0.14.3`](https://redirect.github.com/grpc/grpc-rust/releases/tag/v0.14.3) [Compare Source](https://redirect.github.com/grpc/grpc-rust/compare/v0.14.2...v0.14.3) #### Features - Expose `tcp_keepalive_interval` and `tcp_keepalive_retries` options on Server ([#​2472](https://redirect.github.com/grpc/grpc-rust/issues/2472)) - Allow configuration of `max_local_error_reset_streams` on Server ([#​2437](https://redirect.github.com/grpc/grpc-rust/issues/2437)) - Put source error into the `Display` impl of `Status` ([#​2417](https://redirect.github.com/grpc/grpc-rust/issues/2417)) - `Server::default()` now sets `TCP_NODELAY` to true ([#​2413](https://redirect.github.com/grpc/grpc-rust/issues/2413)) #### Bug Fixes - Respect `max_message_size` when decompressing a message ([#​2484](https://redirect.github.com/grpc/grpc-rust/issues/2484)) - Depend on http at least 1.1.0 ([#​2426](https://redirect.github.com/grpc/grpc-rust/issues/2426)) #### Documentation - Fix documentation links for timeout configuration ([#​2483](https://redirect.github.com/grpc/grpc-rust/issues/2483)) - Fix documentation typos and grammar issues in status.rs and codec/mod.rs ([#​2468](https://redirect.github.com/grpc/grpc-rust/issues/2468)) - Fix labels in `Display for Status` ([#​2414](https://redirect.github.com/grpc/grpc-rust/issues/2414)) - Fix features docs in tonic-build and tonic-prost-build ([#​2434](https://redirect.github.com/grpc/grpc-rust/issues/2434)) - Remove redundant word in tonic-build and tonic-prost-build README ([#​2425](https://redirect.github.com/grpc/grpc-rust/issues/2425)) ### [`v0.14.2`](https://redirect.github.com/grpc/grpc-rust/releases/tag/v0.14.2) [Compare Source](https://redirect.github.com/grpc/grpc-rust/compare/v0.14.1...v0.14.2) #### What's Changed - Improve `Status` formatting by [@​emilk](https://redirect.github.com/emilk) in [grpc/grpc-rust#2403](https://redirect.github.com/hyperium/tonic/pull/2403) - Separate out Tls ConnectInfo trait support into separate tls feature by [@​xumaple](https://redirect.github.com/xumaple) in [grpc/grpc-rust#2402](https://redirect.github.com/hyperium/tonic/pull/2402) #### New Contributors - [@​Shaun1](https://redirect.github.com/Shaun1) made their first contribution in [grpc/grpc-rust#2385](https://redirect.github.com/hyperium/tonic/pull/2385) - [@​emilk](https://redirect.github.com/emilk) made their first contribution in [grpc/grpc-rust#2403](https://redirect.github.com/hyperium/tonic/pull/2403) - [@​xumaple](https://redirect.github.com/xumaple) made their first contribution in [grpc/grpc-rust#2402](https://redirect.github.com/hyperium/tonic/pull/2402) **Full Changelog**: <grpc/grpc-rust@v0.14.1...v0.14.2> ### [`v0.14.1`](https://redirect.github.com/grpc/grpc-rust/releases/tag/v0.14.1) [Compare Source](https://redirect.github.com/grpc/grpc-rust/compare/v0.14.0...v0.14.1) Notable change is to relax the accidental MSRV bump in the last release. #### What's Changed - Add `service_generator` method to `Builder` by [@​koesie10](https://redirect.github.com/koesie10) in [grpc/grpc-rust#2364](https://redirect.github.com/hyperium/tonic/pull/2364) - Improve connection accept error message [@​stepancheg](https://redirect.github.com/stepancheg) in [grpc/grpc-rust#2366](https://redirect.github.com/hyperium/tonic/pull/2366) - Remove unconditional enable of tonic-build transport feature by [@​tottoto](https://redirect.github.com/tottoto) in [grpc/grpc-rust#2357](https://redirect.github.com/hyperium/tonic/pull/2357) - chore: relax msrv for most crates by [@​acrrd](https://redirect.github.com/acrrd) in [grpc/grpc-rust#2378](https://redirect.github.com/hyperium/tonic/pull/2378) #### New Contributors - [@​koesie10](https://redirect.github.com/koesie10) made their first contribution in [grpc/grpc-rust#2364](https://redirect.github.com/hyperium/tonic/pull/2364) - [@​stepancheg](https://redirect.github.com/stepancheg) made their first contribution in [grpc/grpc-rust#2366](https://redirect.github.com/hyperium/tonic/pull/2366) - [@​acrrd](https://redirect.github.com/acrrd) made their first contribution in [grpc/grpc-rust#2378](https://redirect.github.com/hyperium/tonic/pull/2378) **Full Changelog**: <grpc/grpc-rust@v0.14.0...v0.14.1> ### [`v0.14.0`](https://redirect.github.com/grpc/grpc-rust/releases/tag/v0.14.0) [Compare Source](https://redirect.github.com/grpc/grpc-rust/compare/v0.13.1...v0.14.0) This release marks an important milestone for tonic, "hopefully" this will be the last major breaking release of Tonic before we start to transition work into bringing the community a joint-effort `grpc-rust` implementation. For the moment, any new features for the core of tonic that are not related to the work towards `grpc-rust` will not be accepted (I believe tonic to be in quite a good spot, security features of course will be handled with the upmost importance). Stay tuned there will be more information the coming months on what is going on with the new project but you can already see some of the code in the `grpc` crate within the `tonic` repository. You can always watch [this video](https://www.youtube.com/watch?v=ux1xoUR9Xm8) for more info on `grpc-rust`. #### Breaking Changes - Prost updated to v0.14 - Prost has been extracted to their own crates #### Migration guide To migrate between `<=v0.13.1` to `v0.14` anything that used prost has now been moved into either `tonic-prost` or `tonic-prost-build`. All the previous types are still available but under these two new crates. #### What's Changed - add support for tower's load-shed layer by [@​joeroback](https://redirect.github.com/joeroback) in [grpc/grpc-rust#2189](https://redirect.github.com/hyperium/tonic/pull/2189) - Box Status contents to reduce enum size ([#​2253](https://redirect.github.com/grpc/grpc-rust/issues/2253)) by [@​tustvold](https://redirect.github.com/tustvold) in [grpc/grpc-rust#2282](https://redirect.github.com/hyperium/tonic/pull/2282) - Update to prost 0.14 by [@​tottoto](https://redirect.github.com/tottoto) in [grpc/grpc-rust#2300](https://redirect.github.com/hyperium/tonic/pull/2300) - Update generated code to `error_details.proto` `a56cbf3b` by [@​kriswuollett](https://redirect.github.com/kriswuollett) in [grpc/grpc-rust#2306](https://redirect.github.com/hyperium/tonic/pull/2306) - feat(transport): Allow setting TCP_KEEPINTVL and TCP_KEEPCNT by [@​xmakro](https://redirect.github.com/xmakro) in [grpc/grpc-rust#2299](https://redirect.github.com/hyperium/tonic/pull/2299) - fix(tonic): make `Streaming` `Sync` again by [@​Twey](https://redirect.github.com/Twey) in [grpc/grpc-rust#2293](https://redirect.github.com/hyperium/tonic/pull/2293) - feat: preserve user-agent header (for real) by [@​dbolduc](https://redirect.github.com/dbolduc) in [grpc/grpc-rust#2290](https://redirect.github.com/hyperium/tonic/pull/2290) - feat(tls): Add tls handshake timeout support by [@​honsunrise](https://redirect.github.com/honsunrise) in [grpc/grpc-rust#2309](https://redirect.github.com/hyperium/tonic/pull/2309) - Update socket2 to v0.6 by [@​Thomasdezeeuw](https://redirect.github.com/Thomasdezeeuw) in [grpc/grpc-rust#2329](https://redirect.github.com/hyperium/tonic/pull/2329) - feat: Extract prost into its own tonic based crates by [@​LucioFranco](https://redirect.github.com/LucioFranco) in [grpc/grpc-rust#2321](https://redirect.github.com/hyperium/tonic/pull/2321) - feat(build): allow to specify trait attributes by [@​ya7on](https://redirect.github.com/ya7on) in [grpc/grpc-rust#2348](https://redirect.github.com/hyperium/tonic/pull/2348) #### New Contributors - [@​joeroback](https://redirect.github.com/joeroback) made their first contribution in [grpc/grpc-rust#2189](https://redirect.github.com/hyperium/tonic/pull/2189) - [@​tustvold](https://redirect.github.com/tustvold) made their first contribution in [grpc/grpc-rust#2282](https://redirect.github.com/hyperium/tonic/pull/2282) - [@​darrasse](https://redirect.github.com/darrasse) made their first contribution in [grpc/grpc-rust#2297](https://redirect.github.com/hyperium/tonic/pull/2297) - [@​ADSteele916](https://redirect.github.com/ADSteele916) made their first contribution in [grpc/grpc-rust#2291](https://redirect.github.com/hyperium/tonic/pull/2291) - [@​kriswuollett](https://redirect.github.com/kriswuollett) made their first contribution in [grpc/grpc-rust#2306](https://redirect.github.com/hyperium/tonic/pull/2306) - [@​xmakro](https://redirect.github.com/xmakro) made their first contribution in [grpc/grpc-rust#2299](https://redirect.github.com/hyperium/tonic/pull/2299) - [@​Twey](https://redirect.github.com/Twey) made their first contribution in [grpc/grpc-rust#2293](https://redirect.github.com/hyperium/tonic/pull/2293) - [@​honsunrise](https://redirect.github.com/honsunrise) made their first contribution in [grpc/grpc-rust#2309](https://redirect.github.com/hyperium/tonic/pull/2309) - [@​CommanderStorm](https://redirect.github.com/CommanderStorm) made their first contribution in [grpc/grpc-rust#2308](https://redirect.github.com/hyperium/tonic/pull/2308) - [@​ya7on](https://redirect.github.com/ya7on) made their first contribution in [grpc/grpc-rust#2348](https://redirect.github.com/hyperium/tonic/pull/2348) **Full Changelog**: <grpc/grpc-rust@v0.13.1...v0.14.0> ### [`v0.13.1`](https://redirect.github.com/grpc/grpc-rust/releases/tag/v0.13.1) [Compare Source](https://redirect.github.com/grpc/grpc-rust/compare/v0.13.0...v0.13.1) #### What's Changed - Bump `h2` to `v0.4.10` by [@​LucioFranco](https://redirect.github.com/LucioFranco) [grpc/grpc-rust#2263](https://redirect.github.com/hyperium/tonic/pull/2263) - feat(web): relax bounds for inner service's response body by [@​bmwill](https://redirect.github.com/bmwill) in [grpc/grpc-rust#2245](https://redirect.github.com/hyperium/tonic/pull/2245) - feat: preserve request user-agent by [@​dbolduc](https://redirect.github.com/dbolduc) in [grpc/grpc-rust#2250](https://redirect.github.com/hyperium/tonic/pull/2250) - feat(server): Add method to get local addr to TcpIncoming by [@​tottoto](https://redirect.github.com/tottoto) in [grpc/grpc-rust#2233](https://redirect.github.com/hyperium/tonic/pull/2233) - feat: Expose Status as a Response extension by [@​tamasfe](https://redirect.github.com/tamasfe) in [grpc/grpc-rust#2145](https://redirect.github.com/hyperium/tonic/pull/2145) - fix: tls config overwrite in endpoint by [@​vigneshs-12](https://redirect.github.com/vigneshs-12) in [grpc/grpc-rust#2252](https://redirect.github.com/hyperium/tonic/pull/2252) - feat: expose creation of HealthService and HealthReporter by [@​LeonHartley](https://redirect.github.com/LeonHartley) in [grpc/grpc-rust#2251](https://redirect.github.com/hyperium/tonic/pull/2251) #### New Contributors - [@​dbolduc](https://redirect.github.com/dbolduc) made their first contribution in [grpc/grpc-rust#2250](https://redirect.github.com/hyperium/tonic/pull/2250) - [@​tamasfe](https://redirect.github.com/tamasfe) made their first contribution in [grpc/grpc-rust#2145](https://redirect.github.com/hyperium/tonic/pull/2145) - [@​vigneshs-12](https://redirect.github.com/vigneshs-12) made their first contribution in [grpc/grpc-rust#2252](https://redirect.github.com/hyperium/tonic/pull/2252) - [@​rafaeling](https://redirect.github.com/rafaeling) made their first contribution in [grpc/grpc-rust#2207](https://redirect.github.com/hyperium/tonic/pull/2207) - [@​LeonHartley](https://redirect.github.com/LeonHartley) made their first contribution in [grpc/grpc-rust#2251](https://redirect.github.com/hyperium/tonic/pull/2251) **Full Changelog**: <grpc/grpc-rust@v0.13.0...v0.13.1> ### [`v0.13.0`](https://redirect.github.com/grpc/grpc-rust/blob/HEAD/CHANGELOG.md#NOTE-ths-changelog-is-no-longer-used-and-from-version-v0130-onward-we-will-be-using-github-releases-and-the-changes-can-be-found-here-) [Compare Source](https://redirect.github.com/grpc/grpc-rust/compare/v0.12.3...v0.13.0) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/OhataKenji/zeal). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMjAuMCIsInVwZGF0ZWRJblZlciI6IjQ0LjIyMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: OhataKenji <[email protected]> Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
picking up from #1616 as that branch was out of date.
@abizjak
Text from original PR:
Add an option to enable load shedding for the service constructed for the connection.
Motivation
In the server we are implementing we want to load-shed when the service is overloaded, and we want to limit the number of concurrent requests per connection. We use tower::load_shed layer for load shedding, but this only applies to the entire service.
If we additionally apply the per-connection concurrency limit the issue is that this limit is typically hit first and so the service responds with "not ready". As a result the load-shed layer of the service is never reached meaning that requests just queue up.
Solution
The solution is to optionally add a load-shed layer to the per-connection service constructed by tonic.