Skip to content

Commit

Permalink
fix: outlier detection disabled by default
Browse files Browse the repository at this point in the history
Passive health check need to explicitly enabled by a BackendTrafficPolicy 

Signed-off-by: Lars Sjöström <[email protected]>
  • Loading branch information
lsjostro committed Dec 9, 2024
1 parent b9f9a9f commit 5e71298
Show file tree
Hide file tree
Showing 153 changed files with 2 additions and 346 deletions.
1 change: 0 additions & 1 deletion internal/cmd/egctl/testdata/config/out/out.all.json
Original file line number Diff line number Diff line change
Expand Up @@ -2021,7 +2021,6 @@
]
},
"name": "default-backend-rule-0-match-0-www.example.com",
"outlierDetection": {},
"type": "STATIC"
},
"lastUpdated": "2023-02-23T09:05:38.443Z",
Expand Down
1 change: 0 additions & 1 deletion internal/cmd/egctl/testdata/config/out/out.all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1142,7 +1142,6 @@ default:
loadBalancingWeight: 1
locality: {}
name: default-backend-rule-0-match-0-www.example.com
outlierDetection: {}
type: STATIC
lastUpdated: "2023-02-23T09:05:38.443Z"
versionInfo: 2a0a1698a9d3e05b802047b0cd36b52a070afa49042e1ba267168c5265c7cabf
Expand Down
1 change: 0 additions & 1 deletion internal/cmd/egctl/testdata/config/out/out.cluster.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
]
},
"name": "default-backend-rule-0-match-0-www.example.com",
"outlierDetection": {},
"type": "STATIC"
},
"lastUpdated": "2023-02-23T09:05:38.443Z",
Expand Down
1 change: 0 additions & 1 deletion internal/cmd/egctl/testdata/config/out/out.cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ default:
loadBalancingWeight: 1
locality: {}
name: default-backend-rule-0-match-0-www.example.com
outlierDetection: {}
type: STATIC
lastUpdated: "2023-02-23T09:05:38.443Z"
versionInfo: 2a0a1698a9d3e05b802047b0cd36b52a070afa49042e1ba267168c5265c7cabf
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,6 @@ xds:
ignoreHealthOnHostRemoval: true
lbPolicy: LEAST_REQUEST
name: httproute/default/backend/rule/0
outlierDetection: {}
perConnectionBufferLimitBytes: 32768
type: EDS
- cluster:
Expand All @@ -801,7 +800,6 @@ xds:
ignoreHealthOnHostRemoval: true
lbPolicy: LEAST_REQUEST
name: grpcroute/default/backend/rule/0
outlierDetection: {}
perConnectionBufferLimitBytes: 32768
type: EDS
typedExtensionProtocolOptions:
Expand All @@ -828,7 +826,6 @@ xds:
ignoreHealthOnHostRemoval: true
lbPolicy: LEAST_REQUEST
name: tcproute/default/backend/rule/-1
outlierDetection: {}
perConnectionBufferLimitBytes: 32768
type: EDS
- cluster:
Expand All @@ -848,7 +845,6 @@ xds:
ignoreHealthOnHostRemoval: true
lbPolicy: LEAST_REQUEST
name: tlsroute/default/backend/rule/-1
outlierDetection: {}
perConnectionBufferLimitBytes: 32768
type: EDS
- cluster:
Expand All @@ -868,7 +864,6 @@ xds:
ignoreHealthOnHostRemoval: true
lbPolicy: LEAST_REQUEST
name: udproute/default/backend/rule/-1
outlierDetection: {}
perConnectionBufferLimitBytes: 32768
type: EDS
- '@type': type.googleapis.com/envoy.admin.v3.ListenersConfigDump
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,5 @@ xds:
ignoreHealthOnHostRemoval: true
lbPolicy: LEAST_REQUEST
name: httproute/envoy-gateway-system/backend/rule/0
outlierDetection: {}
perConnectionBufferLimitBytes: 32768
type: EDS
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,6 @@
"ignoreHealthOnHostRemoval": true,
"lbPolicy": "LEAST_REQUEST",
"name": "httproute/default/backend/rule/0",
"outlierDetection": {},
"perConnectionBufferLimitBytes": 32768,
"type": "EDS"
}
Expand Down Expand Up @@ -499,7 +498,6 @@
"ignoreHealthOnHostRemoval": true,
"lbPolicy": "LEAST_REQUEST",
"name": "grpcroute/default/backend/rule/0",
"outlierDetection": {},
"perConnectionBufferLimitBytes": 32768,
"type": "EDS",
"typedExtensionProtocolOptions": {
Expand Down Expand Up @@ -540,7 +538,6 @@
"ignoreHealthOnHostRemoval": true,
"lbPolicy": "LEAST_REQUEST",
"name": "tcproute/default/backend/rule/-1",
"outlierDetection": {},
"perConnectionBufferLimitBytes": 32768,
"type": "EDS"
}
Expand Down Expand Up @@ -570,7 +567,6 @@
"ignoreHealthOnHostRemoval": true,
"lbPolicy": "LEAST_REQUEST",
"name": "tlsroute/default/backend/rule/-1",
"outlierDetection": {},
"perConnectionBufferLimitBytes": 32768,
"type": "EDS"
}
Expand Down Expand Up @@ -600,7 +596,6 @@
"ignoreHealthOnHostRemoval": true,
"lbPolicy": "LEAST_REQUEST",
"name": "udproute/default/backend/rule/-1",
"outlierDetection": {},
"perConnectionBufferLimitBytes": 32768,
"type": "EDS"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,6 @@ xds:
ignoreHealthOnHostRemoval: true
lbPolicy: LEAST_REQUEST
name: httproute/default/backend/rule/0
outlierDetection: {}
perConnectionBufferLimitBytes: 32768
type: EDS
- cluster:
Expand All @@ -280,7 +279,6 @@ xds:
ignoreHealthOnHostRemoval: true
lbPolicy: LEAST_REQUEST
name: grpcroute/default/backend/rule/0
outlierDetection: {}
perConnectionBufferLimitBytes: 32768
type: EDS
typedExtensionProtocolOptions:
Expand All @@ -307,7 +305,6 @@ xds:
ignoreHealthOnHostRemoval: true
lbPolicy: LEAST_REQUEST
name: tcproute/default/backend/rule/-1
outlierDetection: {}
perConnectionBufferLimitBytes: 32768
type: EDS
- cluster:
Expand All @@ -327,7 +324,6 @@ xds:
ignoreHealthOnHostRemoval: true
lbPolicy: LEAST_REQUEST
name: tlsroute/default/backend/rule/-1
outlierDetection: {}
perConnectionBufferLimitBytes: 32768
type: EDS
- cluster:
Expand All @@ -347,7 +343,6 @@ xds:
ignoreHealthOnHostRemoval: true
lbPolicy: LEAST_REQUEST
name: udproute/default/backend/rule/-1
outlierDetection: {}
perConnectionBufferLimitBytes: 32768
type: EDS
- '@type': type.googleapis.com/envoy.admin.v3.ListenersConfigDump
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ xds:
ignoreHealthOnHostRemoval: true
lbPolicy: LEAST_REQUEST
name: httproute/default/backend/rule/0
outlierDetection: {}
perConnectionBufferLimitBytes: 32768
type: EDS
- cluster:
Expand All @@ -39,7 +38,6 @@ xds:
ignoreHealthOnHostRemoval: true
lbPolicy: LEAST_REQUEST
name: grpcroute/default/backend/rule/0
outlierDetection: {}
perConnectionBufferLimitBytes: 32768
type: EDS
typedExtensionProtocolOptions:
Expand All @@ -66,7 +64,6 @@ xds:
ignoreHealthOnHostRemoval: true
lbPolicy: LEAST_REQUEST
name: tcproute/default/backend/rule/-1
outlierDetection: {}
perConnectionBufferLimitBytes: 32768
type: EDS
- cluster:
Expand All @@ -86,7 +83,6 @@ xds:
ignoreHealthOnHostRemoval: true
lbPolicy: LEAST_REQUEST
name: tlsroute/default/backend/rule/-1
outlierDetection: {}
perConnectionBufferLimitBytes: 32768
type: EDS
- cluster:
Expand All @@ -106,6 +102,5 @@ xds:
ignoreHealthOnHostRemoval: true
lbPolicy: LEAST_REQUEST
name: udproute/default/backend/rule/-1
outlierDetection: {}
perConnectionBufferLimitBytes: 32768
type: EDS
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,6 @@
"ignoreHealthOnHostRemoval": true,
"lbPolicy": "LEAST_REQUEST",
"name": "httproute/envoy-gateway-system/backend/rule/0",
"outlierDetection": {},
"perConnectionBufferLimitBytes": 32768,
"type": "EDS"
}
Expand Down Expand Up @@ -408,7 +407,6 @@
]
},
"name": "raw_githubusercontent_com_443",
"outlierDetection": {},
"perConnectionBufferLimitBytes": 32768,
"respectDnsTtl": true,
"transportSocket": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ xds:
ignoreHealthOnHostRemoval: true
lbPolicy: LEAST_REQUEST
name: httproute/envoy-gateway-system/backend/rule/0
outlierDetection: {}
perConnectionBufferLimitBytes: 32768
type: EDS
- cluster:
Expand Down Expand Up @@ -232,7 +231,6 @@ xds:
locality:
region: raw_githubusercontent_com_443/backend/0
name: raw_githubusercontent_com_443
outlierDetection: {}
perConnectionBufferLimitBytes: 32768
respectDnsTtl: true
transportSocket:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ xds:
ignoreHealthOnHostRemoval: true
lbPolicy: LEAST_REQUEST
name: httproute/envoy-gateway-system/backend/rule/0
outlierDetection: {}
perConnectionBufferLimitBytes: 32768
type: EDS
- cluster:
Expand Down Expand Up @@ -47,7 +46,6 @@ xds:
locality:
region: raw_githubusercontent_com_443/backend/0
name: raw_githubusercontent_com_443
outlierDetection: {}
perConnectionBufferLimitBytes: 32768
respectDnsTtl: true
transportSocket:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ xds:
ignoreHealthOnHostRemoval: true
lbPolicy: LEAST_REQUEST
name: httproute/envoy-gateway-system/routes/rule/0
outlierDetection: {}
perConnectionBufferLimitBytes: 32768
type: EDS
- '@type': type.googleapis.com/envoy.admin.v3.ListenersConfigDump
Expand Down
1 change: 0 additions & 1 deletion internal/xds/translator/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ func buildXdsCluster(args *xdsClusterArgs) *clusterv3.Cluster {
LocalityWeightedLbConfig: &clusterv3.Cluster_CommonLbConfig_LocalityWeightedLbConfig{},
},
},
OutlierDetection: &clusterv3.OutlierDetection{},
PerConnectionBufferLimitBytes: buildBackandConnectionBufferLimitBytes(args.backendConnection),
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
ignoreHealthOnHostRemoval: true
lbPolicy: LEAST_REQUEST
name: http-route-dest
outlierDetection: {}
perConnectionBufferLimitBytes: 32768
type: EDS
- circuitBreakers:
Expand All @@ -31,7 +30,6 @@
ignoreHealthOnHostRemoval: true
lbPolicy: LEAST_REQUEST
name: tcp-route-dest
outlierDetection: {}
perConnectionBufferLimitBytes: 32768
type: EDS
- circuitBreakers:
Expand All @@ -49,7 +47,6 @@
ignoreHealthOnHostRemoval: true
lbPolicy: LEAST_REQUEST
name: udp-route-dest
outlierDetection: {}
perConnectionBufferLimitBytes: 32768
type: EDS
- loadAssignment:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
ignoreHealthOnHostRemoval: true
lbPolicy: LEAST_REQUEST
name: first-route-dest
outlierDetection: {}
perConnectionBufferLimitBytes: 32768
type: EDS
- loadAssignment:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
ignoreHealthOnHostRemoval: true
lbPolicy: LEAST_REQUEST
name: first-route-dest
outlierDetection: {}
perConnectionBufferLimitBytes: 32768
type: EDS
- loadAssignment:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
ignoreHealthOnHostRemoval: true
lbPolicy: LEAST_REQUEST
name: direct-route-dest
outlierDetection: {}
perConnectionBufferLimitBytes: 32768
type: EDS
- circuitBreakers:
Expand All @@ -39,7 +38,6 @@
locality:
region: accesslog-0/backend/0
name: accesslog-0
outlierDetection: {}
perConnectionBufferLimitBytes: 32768
respectDnsTtl: true
type: STRICT_DNS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
ignoreHealthOnHostRemoval: true
lbPolicy: LEAST_REQUEST
name: direct-route-dest
outlierDetection: {}
perConnectionBufferLimitBytes: 32768
trackClusterStats:
perEndpointStats: true
Expand Down Expand Up @@ -41,7 +40,6 @@
locality:
region: accesslog-0/backend/0
name: accesslog-0
outlierDetection: {}
perConnectionBufferLimitBytes: 32768
respectDnsTtl: true
trackClusterStats:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
ignoreHealthOnHostRemoval: true
lbPolicy: LEAST_REQUEST
name: direct-route-dest
outlierDetection: {}
perConnectionBufferLimitBytes: 32768
type: EDS
- circuitBreakers:
Expand All @@ -39,7 +38,6 @@
locality:
region: accesslog-0/backend/0
name: accesslog-0
outlierDetection: {}
perConnectionBufferLimitBytes: 32768
respectDnsTtl: true
type: STRICT_DNS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
ignoreHealthOnHostRemoval: true
lbPolicy: LEAST_REQUEST
name: direct-route-dest
outlierDetection: {}
perConnectionBufferLimitBytes: 32768
type: EDS
- circuitBreakers:
Expand All @@ -39,7 +38,6 @@
locality:
region: accesslog-0/backend/0
name: accesslog-0
outlierDetection: {}
perConnectionBufferLimitBytes: 32768
respectDnsTtl: true
type: STRICT_DNS
Expand Down
Loading

0 comments on commit 5e71298

Please sign in to comment.