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/>||
14
-
|[**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/>||
14
+
|[**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/>||
15
15
16
16
**Additional Properties:** not allowed
17
17
**Example**
@@ -66,8 +66,8 @@ supergraph:
66
66
traffic_shaping:
67
67
all:
68
68
dedupe_enabled: true
69
-
max_connections_per_host: 100
70
69
pool_idle_timeout_seconds: 50
70
+
max_connections_per_host: 100
71
71
72
72
```
73
73
@@ -1367,16 +1367,17 @@ Configuration for the traffic-shaper executor. Use these configurations to contr
1367
1367
1368
1368
|Name|Type|Description|Required|
1369
1369
|----|----|-----------|--------|
1370
-
|[**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/>||
1370
+
|[**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/>||
1371
+
|**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/>||
1371
1372
|[**subgraphs**](#traffic_shapingsubgraphs)|`object`|Optional per-subgraph configurations that will override the default configuration for specific subgraphs.<br/>||
1372
1373
1373
1374
**Example**
1374
1375
1375
1376
```yaml
1376
1377
all:
1377
1378
dedupe_enabled: true
1378
-
max_connections_per_host: 100
1379
1379
pool_idle_timeout_seconds: 50
1380
+
max_connections_per_host: 100
1380
1381
1381
1382
```
1382
1383
@@ -1391,15 +1392,13 @@ The default configuration that will be applied to all subgraphs, unless overridd
1391
1392
|Name|Type|Description|Required|
1392
1393
|----|----|-----------|--------|
1393
1394
|**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/>||
1394
-
|**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/>||
1395
1395
|**pool\_idle\_timeout\_seconds**|`integer`|Timeout for idle sockets being kept-alive.<br/>Default: `50`<br/>Format: `"uint64"`<br/>Minimum: `0`<br/>||
1396
1396
|**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/>||
1397
1397
1398
1398
**Example**
1399
1399
1400
1400
```yaml
1401
1401
dedupe_enabled: true
1402
-
max_connections_per_host: 100
1403
1402
pool_idle_timeout_seconds: 50
1404
1403
1405
1404
```
@@ -1424,15 +1423,13 @@ Optional per-subgraph configurations that will override the default configuratio
1424
1423
|Name|Type|Description|Required|
1425
1424
|----|----|-----------|--------|
1426
1425
|**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/>||
1427
-
|**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/>||
1428
1426
|**pool\_idle\_timeout\_seconds**|`integer`|Timeout for idle sockets being kept-alive.<br/>Default: `50`<br/>Format: `"uint64"`<br/>Minimum: `0`<br/>||
1429
1427
|**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