forked from hashicorp/consul
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Net 6820 customize mesh gateway limits (hashicorp#20945)
* add upstream limits to mesh gateway cluster generation * changelog * go mod tidy * readd changelog data * undo reversion from rebase * run codegen * Update .changelog/20945.txt Co-authored-by: Nathan Coleman <nathan.coleman@hashicorp.com> * address notes * gofmt * clean up * gofmt * Update agent/proxycfg/mesh_gateway.go * gofmt * nil check --------- Co-authored-by: Nathan Coleman <nathan.coleman@hashicorp.com>
- Loading branch information
1 parent
5e9f02d
commit 08761f1
Showing
13 changed files
with
506 additions
and
4 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,3 @@ | ||
```release-note:enhancement | ||
gateways: service defaults configuration entries can now be used to set default upstream limits for mesh-gateways | ||
``` |
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
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
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
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
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
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
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
151 changes: 151 additions & 0 deletions
151
agent/xds/testdata/clusters/mesh-gateway-with-limits.latest.golden
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,151 @@ | ||
{ | ||
"nonce": "00000001", | ||
"resources": [ | ||
{ | ||
"@type": "type.googleapis.com/envoy.config.cluster.v3.Cluster", | ||
"circuitBreakers": { | ||
"thresholds": [ | ||
{ | ||
"maxConnections": 1, | ||
"maxPendingRequests": 10, | ||
"maxRequests": 100 | ||
} | ||
] | ||
}, | ||
"connectTimeout": "5s", | ||
"edsClusterConfig": { | ||
"edsConfig": { | ||
"ads": {}, | ||
"resourceApiVersion": "V3" | ||
} | ||
}, | ||
"name": "bar.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul", | ||
"outlierDetection": {}, | ||
"type": "EDS" | ||
}, | ||
{ | ||
"@type": "type.googleapis.com/envoy.config.cluster.v3.Cluster", | ||
"circuitBreakers": { | ||
"thresholds": [ | ||
{ | ||
"maxConnections": 1, | ||
"maxPendingRequests": 10, | ||
"maxRequests": 100 | ||
} | ||
] | ||
}, | ||
"connectTimeout": "5s", | ||
"edsClusterConfig": { | ||
"edsConfig": { | ||
"ads": {}, | ||
"resourceApiVersion": "V3" | ||
} | ||
}, | ||
"name": "dc2.internal.11111111-2222-3333-4444-555555555555.consul", | ||
"outlierDetection": {}, | ||
"type": "EDS" | ||
}, | ||
{ | ||
"@type": "type.googleapis.com/envoy.config.cluster.v3.Cluster", | ||
"circuitBreakers": { | ||
"thresholds": [ | ||
{ | ||
"maxConnections": 1, | ||
"maxPendingRequests": 10, | ||
"maxRequests": 100 | ||
} | ||
] | ||
}, | ||
"connectTimeout": "5s", | ||
"dnsLookupFamily": "V4_ONLY", | ||
"dnsRefreshRate": "10s", | ||
"loadAssignment": { | ||
"clusterName": "dc4.internal.11111111-2222-3333-4444-555555555555.consul", | ||
"endpoints": [ | ||
{ | ||
"lbEndpoints": [ | ||
{ | ||
"endpoint": { | ||
"address": { | ||
"socketAddress": { | ||
"address": "123.us-west-2.elb.notaws.com", | ||
"portValue": 443 | ||
} | ||
} | ||
}, | ||
"healthStatus": "HEALTHY", | ||
"loadBalancingWeight": 1 | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"name": "dc4.internal.11111111-2222-3333-4444-555555555555.consul", | ||
"outlierDetection": {}, | ||
"type": "LOGICAL_DNS" | ||
}, | ||
{ | ||
"@type": "type.googleapis.com/envoy.config.cluster.v3.Cluster", | ||
"circuitBreakers": { | ||
"thresholds": [ | ||
{ | ||
"maxConnections": 1, | ||
"maxPendingRequests": 10, | ||
"maxRequests": 100 | ||
} | ||
] | ||
}, | ||
"connectTimeout": "5s", | ||
"dnsLookupFamily": "V4_ONLY", | ||
"dnsRefreshRate": "10s", | ||
"loadAssignment": { | ||
"clusterName": "dc6.internal.11111111-2222-3333-4444-555555555555.consul", | ||
"endpoints": [ | ||
{ | ||
"lbEndpoints": [ | ||
{ | ||
"endpoint": { | ||
"address": { | ||
"socketAddress": { | ||
"address": "123.us-east-1.elb.notaws.com", | ||
"portValue": 443 | ||
} | ||
} | ||
}, | ||
"healthStatus": "UNHEALTHY", | ||
"loadBalancingWeight": 1 | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"name": "dc6.internal.11111111-2222-3333-4444-555555555555.consul", | ||
"outlierDetection": {}, | ||
"type": "LOGICAL_DNS" | ||
}, | ||
{ | ||
"@type": "type.googleapis.com/envoy.config.cluster.v3.Cluster", | ||
"circuitBreakers": { | ||
"thresholds": [ | ||
{ | ||
"maxConnections": 1, | ||
"maxPendingRequests": 10, | ||
"maxRequests": 100 | ||
} | ||
] | ||
}, | ||
"connectTimeout": "5s", | ||
"edsClusterConfig": { | ||
"edsConfig": { | ||
"ads": {}, | ||
"resourceApiVersion": "V3" | ||
} | ||
}, | ||
"name": "foo.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul", | ||
"outlierDetection": {}, | ||
"type": "EDS" | ||
} | ||
], | ||
"typeUrl": "type.googleapis.com/envoy.config.cluster.v3.Cluster", | ||
"versionInfo": "00000001" | ||
} |
Oops, something went wrong.