...
1# Copyright 2020 Google LLC
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15apiVersion: compute.cnrm.cloud.google.com/v1beta1
16kind: ComputeBackendService
17metadata:
18 name: computebackendservice-sample-internalmanagedloadbalancing
19spec:
20 description: Internal managed backend service with Maglev session affinity.
21 localityLbPolicy: MAGLEV
22 timeoutSec: 86400
23 consistentHash:
24 httpHeaderName: "Hash string"
25 healthChecks:
26 - healthCheckRef:
27 name: computebackendservice-dep-internalmanagedloadbalancing
28 loadBalancingScheme: INTERNAL_MANAGED
29 location: us-east1
30 protocol: HTTP
31 connectionDrainingTimeoutSec: 10
32 sessionAffinity: HEADER_FIELD
33 circuitBreakers:
34 connectTimeout:
35 nanos: 999999999
36 seconds: 0
37 maxConnections: 1024
38 maxPendingRequests: 1024
39 maxRequests: 1024
40 maxRequestsPerConnection: 1
41 maxRetries: 3
42 logConfig:
43 enable: false
44 outlierDetection:
45 consecutiveGatewayFailure: 5
46 enforcingConsecutiveErrors: 100
47 enforcingSuccessRate: 100
48 successRateMinimumHosts: 5
49 successRateRequestVolume: 100
50 baseEjectionTime:
51 nanos: 999999999
52 seconds: 29
53 consecutiveErrors: 5
54 enforcingConsecutiveGatewayFailure: 0
55 interval:
56 nanos: 999999999
57 seconds: 9
58 maxEjectionPercent: 10
59 successRateStdevFactor: 1900
60 backend:
61 - balancingMode: RATE
62 capacityScaler: 0.9
63 description: An instance group serving this backend with 90% of its capacity, as calculated by requests per second.
64 maxRate: 10000
65 group:
66 instanceGroupRef:
67 name: computebackendservice-dep-internalmanagedloadbalancing
View as plain text