-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
144 changed files
with
4,799 additions
and
2,220 deletions.
There are no files selected for viewing
This file contains 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,28 @@ | ||
### Add ability to configure DNS resolution strategy ([PR #6109](https://github.com/apollographql/router/pull/6109)) | ||
|
||
The router now supports choosing a DNS resolution strategy for the coprocessor's and subgraph's URLs. | ||
The new option is called `dns_resolution_strategy` and supports the following values: | ||
* `ipv4_only` - Only query for `A` (IPv4) records. | ||
* `ipv6_only` - Only query for `AAAA` (IPv6) records. | ||
* `ipv4_and_ipv6` - Query for both `A` (IPv4) and `AAAA` (IPv6) records in parallel. | ||
* `ipv6_then_ipv4` - Query for `AAAA` (IPv6) records first; if that fails, query for `A` (IPv4) records. | ||
* `ipv4_then_ipv6`(default) - Query for `A` (IPv4) records first; if that fails, query for `AAAA` (IPv6) records. | ||
|
||
To change the DNS resolution strategy applied to the subgraph's URL: | ||
```yaml title="router.yaml" | ||
traffic_shaping: | ||
all: | ||
dns_resolution_strategy: ipv4_then_ipv6 | ||
|
||
``` | ||
|
||
You can also change the DNS resolution strategy applied to the coprocessor's URL: | ||
```yaml title="router.yaml" | ||
coprocessor: | ||
url: http://coprocessor.example.com:8081 | ||
client: | ||
dns_resolution_strategy: ipv4_then_ipv6 | ||
|
||
``` | ||
|
||
By [@IvanGoncharov](https://github.com/IvanGoncharov) in https://github.com/apollographql/router/pull/6109 |
This file contains 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,5 @@ | ||
### Add a subgraph request id ([PR #5858](https://github.com/apollographql/router/pull/5858)) | ||
|
||
This is a unique string identifying a subgraph request and response, allowing plugins and coprocessors to keep some state per subgraph request by matching on this id. It is available in coprocessors as `subgraphRequestId` and rhai scripts as `request.subgraph.id` and `response.subgraph.id`. | ||
|
||
By [@Geal](https://github.com/Geal) in https://github.com/apollographql/router/pull/5858 |
7 changes: 7 additions & 0 deletions
7
.changesets/fix_garypen_log_less_error_for_subgraph_batching.md
This file contains 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,7 @@ | ||
### If subgraph batching, do not log response data for notification failure ([PR #6150](https://github.com/apollographql/router/pull/6150)) | ||
|
||
A subgraph response may contain a lot of data and/or PII data. | ||
|
||
For a subgraph batching operation, we should not log out the entire subgraph response when failing to notify a waiting batch participant. | ||
|
||
By [@garypen](https://github.com/garypen) in https://github.com/apollographql/router/pull/6150 |
This file contains 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,5 @@ | ||
### Remove noisy demand control logs ([PR #6192](https://github.com/apollographql/router/pull/6192)) | ||
|
||
Demand control no longer logs warnings when a subgraph response is missing a requested field. | ||
|
||
By [@tninesling](https://github.com/tninesling) in https://github.com/apollographql/router/pull/6192 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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.