-
Notifications
You must be signed in to change notification settings - Fork 329
Provide a backpressure enabled pipeline #6486
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
Merged
Merged
Changes from all commits
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
bef5367
First draft of a backpressure enabled pipeline
6d80932
Obey the linter...
7491e1e
Merge branch 'next' into garypen/next-backpressure
718a870
Merge branch 'next' into garypen/next-backpressure
4c93a96
Merge branch 'next' into garypen/next-backpressure
716f7e5
Fix the rhai integration test
8b7653b
fix lint complaint
746d2c0
Add the new rhai testng config file
330f969
temporarily comment out one test
1b724d5
still experimenting to see how far away this approach is
f932806
Move limits to traffic shaping
3b8ed61
Rename http_server to router
81faed0
Fix formatting errors reported by lint
fc2e822
Fix the rate limiting test so that it works with new rate limiting
3155440
Rename some stuff to minimise change from 1.x
9bd0386
Try to restore the existing behaviour for reporting errors
5627dce
Clean up some of the failing tests
7432306
Fix lint complaints
d05619f
Remove 1/2 implemented little loadshedder
69e36f1
Merge branch 'next' into garypen/next-backpressure
b85ca4f
POC: Make supergraph creator clone a BoxCloneService
d5718f2
Fix AsyncCheckpoint and update tests for correct behaviour
5c72744
Fix the xtask lint complaints
a8a8950
POC: Make supergraph creator clone a BoxCloneService (#6540)
21dee20
Modify subgraph rate-limiting test to pass for now
00c1689
Merge branch 'next' into garypen/next-backpressure
6c239aa
Small tidying up to use `buffered`
f1cd40a
Document tower layers in router and supergraph services (#6549)
goto-bus-stop 6788915
List the plugin tower layers
goto-bus-stop 949ea23
Enforce backpressure between the router and qp services
9511057
traffic_shaping: remove subgraph_service_internal method
IvanGoncharov e573024
Merge branch 'garypen/next-backpressure' into i1g/next-traffic_shaping
f2303d6
traffic_shaping: remove subgraph_service_internal method (#6565)
0c3b6b0
Fix the batching test snapshots
98391f7
Bring subgraph rate-limiting to life
fadae7b
Fix remaining broken tests
83fd57c
xtask lint
6caaa56
Fix mock expectations in affected examples tests
ecf3aa9
Remove OneShotAsyncCheckpoint and associated functionality
2f5014f
Revert change to axum_http_server_factory.rs
77b2a59
Revert earlier changes to body limit layers and re-enable test
3ffe632
A compromise solution for Body Limits
11d19b2
Merge branch 'next' into garypen/next-backpressure
ee3bd5a
Merge branch 'dev' into garypen/next-backpressure
26364f6
Prepare PR for review.
034686f
Merge branch 'dev' into garypen/next-backpressure
57e8531
Add a helpful commit to explain the Mutex on make()
d2156ed
add a changeset
aac1492
Merge branch 'dev' into garypen/next-backpressure
2107729
Fix some readying issues in tests and deduplication
0bddcde
Found another inner service not following tower advice
2b3bed2
Make subgraph_name mandatory on Request and Response
f6525a8
Merge branch 'dev' into garypen/next-backpressure
f08f21d
xtask lint
339c502
Remove the comment because the name is no longer Option
f3944d1
Code review comments.
3b88d45
Spotted this dbg! in code review and should remove it
017b0f1
Fix mistakes made during code review changes.
9b75423
Replace our use of Mutex with a Buffer
ddad68d
Add to the migration guide and the router documentation.
c629fca
Merge branch 'dev' into garypen/next-backpressure
b2c236f
Remember the name of the concurrency limit
f5d3bdb
Fix the body limit layer.
95e22d8
Add a link to the appropriate PR for the migration changes
f748a93
wrap up `mock_subgraph_service_withf_panics_should_be_reported_as_ser…
goto-bus-stop 49fd09b
Fixup limits plugin tests
8ea3123
Fixup telemetry tests
bde4fb4
Merge branch 'dev' into garypen/next-backpressure
2a5a012
Revert this change from 8ea31233935e9b5d717d61e07dddf0b191cec2ef
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| ### Enabling back-pressure in the request processing pipeline ([PR #6486](https://github.com/apollographql/router/pull/6486)) | ||
|
|
||
| In Router 1.x, back-pressure was not maintained. Requests would be accepted by the router. This could cause issue for routers which were accepting high levels of traffic. | ||
|
|
||
| We are now improving the handling of back-pressure so that traffic shaping measures are more effective and integration with telemetry is improved. In particular, this means that telemetry events will not be lost due to traffic shaping and that traffic shaping now works more precisely. This will make the behaviour of the router more predictable. | ||
|
|
||
| For more details about how these improvements effect the router please refer to the [migrating from 1.x guide](reference/migration/from-router-v1.mdx). | ||
|
|
||
| By [@garypen](https://github.com/garypen) in https://github.com/apollographql/router/pull/6486 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.