You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[**supergraph**](#supergraph)|`object`|Configuration for the Federation supergraph source. By default, the router will use a local file-based supergraph source (`./supergraph.graphql`).<br/>Default: `{"path":"supergraph.graphql","source":"file"}`<br/>||
12
-
|[**traffic\_shaping**](#traffic_shaping)|`object`|Configuration for the traffic-shaper executor. Use these configurations to control how requests are being executed to subgraphs.<br/>Default: `{"all":{"dedupe_enabled":true,"max_connections_per_host":100,"pool_idle_timeout_seconds":50}}`<br/>||
12
+
|[**traffic\_shaping**](#traffic_shaping)|`object`|Configuration for the traffic-shaper executor. Use these configurations to control how requests are being executed to subgraphs.<br/>Default: `{"all":{"dedupe_enabled":true,"pool_idle_timeout_seconds":50},"max_connections_per_host":100}`<br/>||
13
13
14
14
**Additional Properties:** not allowed
15
15
**Example**
@@ -48,8 +48,8 @@ supergraph:
48
48
traffic_shaping:
49
49
all:
50
50
dedupe_enabled: true
51
-
max_connections_per_host: 100
52
51
pool_idle_timeout_seconds: 50
52
+
max_connections_per_host: 100
53
53
54
54
```
55
55
@@ -1125,16 +1125,17 @@ Configuration for the traffic-shaper executor. Use these configurations to contr
1125
1125
1126
1126
|Name|Type|Description|Required|
1127
1127
|----|----|-----------|--------|
1128
-
|[**all**](#traffic_shapingall)|`object`|The default configuration that will be applied to all subgraphs, unless overridden by a specific subgraph configuration.<br/>Default: `{"dedupe_enabled":true,"max_connections_per_host":100,"pool_idle_timeout_seconds":50}`<br/>||
1128
+
|[**all**](#traffic_shapingall)|`object`|The default configuration that will be applied to all subgraphs, unless overridden by a specific subgraph configuration.<br/>Default: `{"dedupe_enabled":true,"pool_idle_timeout_seconds":50}`<br/>||
1129
+
|**max\_connections\_per\_host**|`integer`|Limits the concurrent amount of requests/connections per host/subgraph.<br/>Default: `100`<br/>Format: `"uint"`<br/>Minimum: `0`<br/>||
1129
1130
|[**subgraphs**](#traffic_shapingsubgraphs)|`object`|Optional per-subgraph configurations that will override the default configuration for specific subgraphs.<br/>||
1130
1131
1131
1132
**Example**
1132
1133
1133
1134
```yaml
1134
1135
all:
1135
1136
dedupe_enabled: true
1136
-
max_connections_per_host: 100
1137
1137
pool_idle_timeout_seconds: 50
1138
+
max_connections_per_host: 100
1138
1139
1139
1140
```
1140
1141
@@ -1149,15 +1150,13 @@ The default configuration that will be applied to all subgraphs, unless overridd
1149
1150
|Name|Type|Description|Required|
1150
1151
|----|----|-----------|--------|
1151
1152
|**dedupe\_enabled**|`boolean`|Enables/disables request deduplication to subgraphs.<br/><br/>When requests exactly matches the hashing mechanism (e.g., subgraph name, URL, headers, query, variables), and are executed at the same time, they will<br/>be deduplicated by sharing the response of other in-flight requests.<br/>Default: `true`<br/>||
1152
-
|**max\_connections\_per\_host**|`integer`|Limits the concurrent amount of requests/connections per host/subgraph.<br/>Default: `100`<br/>Format: `"uint"`<br/>Minimum: `0`<br/>||
1153
1153
|**pool\_idle\_timeout\_seconds**|`integer`|Timeout for idle sockets being kept-alive.<br/>Default: `50`<br/>Format: `"uint64"`<br/>Minimum: `0`<br/>||
1154
1154
|**timeout**||Optional timeout configuration for requests to subgraphs.<br/><br/>Example with a fixed duration:<br/>```yaml<br/> timeout:<br/> duration: 5s<br/>```<br/><br/>Or with a VRL expression that can return a duration based on the operation kind:<br/>```yaml<br/> timeout:<br/> expression: \|<br/> if (.request.operation.type == "mutation") {<br/> 10000<br/> } else {<br/> 5000<br/> }<br/>```<br/>||
1155
1155
1156
1156
**Example**
1157
1157
1158
1158
```yaml
1159
1159
dedupe_enabled: true
1160
-
max_connections_per_host: 100
1161
1160
pool_idle_timeout_seconds: 50
1162
1161
1163
1162
```
@@ -1182,15 +1181,13 @@ Optional per-subgraph configurations that will override the default configuratio
1182
1181
|Name|Type|Description|Required|
1183
1182
|----|----|-----------|--------|
1184
1183
|**dedupe\_enabled**|`boolean`|Enables/disables request deduplication to subgraphs.<br/><br/>When requests exactly matches the hashing mechanism (e.g., subgraph name, URL, headers, query, variables), and are executed at the same time, they will<br/>be deduplicated by sharing the response of other in-flight requests.<br/>Default: `true`<br/>||
1185
-
|**max\_connections\_per\_host**|`integer`|Limits the concurrent amount of requests/connections per host/subgraph.<br/>Default: `100`<br/>Format: `"uint"`<br/>Minimum: `0`<br/>||
1186
1184
|**pool\_idle\_timeout\_seconds**|`integer`|Timeout for idle sockets being kept-alive.<br/>Default: `50`<br/>Format: `"uint64"`<br/>Minimum: `0`<br/>||
1187
1185
|**timeout**||Optional timeout configuration for requests to subgraphs.<br/><br/>Example with a fixed duration:<br/>```yaml<br/> timeout:<br/> duration: 5s<br/>```<br/><br/>Or with a VRL expression that can return a duration based on the operation kind:<br/>```yaml<br/> timeout:<br/> expression: \|<br/> if (.request.operation.type == "mutation") {<br/> 10000<br/> } else {<br/> 5000<br/> }<br/>```<br/>||
0 commit comments