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
Copy file name to clipboardExpand all lines: google-beta/resource_network_services_edge_cache_origin.go
+76-15Lines changed: 76 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -56,9 +56,9 @@ and all following characters must be a dash, underscore, letter or digit.`,
56
56
Required: true,
57
57
Description: `A fully qualified domain name (FQDN) or IP address reachable over the public Internet, or the address of a Google Cloud Storage bucket.
58
58
59
-
This address will be used as the origin for cache requests - e.g. FQDN: media-backend.example.com IPv4:35.218.1.1 IPv6:[2607:f8b0:4012:809::200e] Cloud Storage: gs://bucketname
59
+
This address will be used as the origin for cache requests - e.g. FQDN: media-backend.example.com, IPv4:35.218.1.1, IPv6:2607:f8b0:4012:809::200e, Cloud Storage: gs://bucketname
60
60
61
-
When providing an FQDN (hostname), it must be publicly resolvable (e.g. via Google public DNS) and IP addresses must be publicly routable.
61
+
When providing an FQDN (hostname), it must be publicly resolvable (e.g. via Google public DNS) and IP addresses must be publicly routable. It must not contain a protocol (e.g., https://) and it must not contain any slashes.
62
62
If a Cloud Storage bucket is provided, it must be in the canonical "gs://bucketname" format. Other forms, such as "storage.googleapis.com", will be rejected.`,
63
63
},
64
64
"description": {
@@ -94,8 +94,8 @@ retryConditions and failoverOrigin to control its own cache fill failures.
94
94
The total number of allowed attempts to cache fill across this and failover origins is limited to four.
95
95
The total time allowed for cache fill attempts across this and failover origins can be controlled with maxAttemptsTimeout.
96
96
97
-
The last validresponse from an origin will be returned to the client.
98
-
If no origin returns a valid response, an HTTP 503 will be returned to the client.
97
+
The last valid, non-retried response from all origins will be returned to the client.
98
+
If no origin returns a valid response, an HTTP 502 will be returned to the client.
99
99
100
100
Defaults to 1. Must be a value greater than 0 and less than 4.`,
101
101
},
@@ -135,10 +135,11 @@ Valid values are:
135
135
- HTTP_5XX: Retry if the origin responds with any 5xx response code, or if the origin does not respond at all, example: disconnects, reset, read timeout, connection failure, and refused streams.
136
136
- GATEWAY_ERROR: Similar to 5xx, but only applies to response codes 502, 503 or 504.
137
137
- RETRIABLE_4XX: Retry for retriable 4xx response codes, which include HTTP 409 (Conflict) and HTTP 429 (Too Many Requests)
138
-
- NOT_FOUND: Retry if the origin returns a HTTP 404 (Not Found). This can be useful when generating video content, and the segment is not available yet. Possible values: ["CONNECT_FAILURE", "HTTP_5XX", "GATEWAY_ERROR", "RETRIABLE_4XX", "NOT_FOUND"]`,
138
+
- NOT_FOUND: Retry if the origin returns a HTTP 404 (Not Found). This can be useful when generating video content, and the segment is not available yet.
139
+
- FORBIDDEN: Retry if the origin returns a HTTP 403 (Forbidden). Possible values: ["CONNECT_FAILURE", "HTTP_5XX", "GATEWAY_ERROR", "RETRIABLE_4XX", "NOT_FOUND", "FORBIDDEN"]`,
Description: `The maximum duration to wait for the origin connection to be established, including DNS lookup, TLS handshake and TCP/QUIC connection establishment.
155
+
Description: `The maximum duration to wait for a single origin connection to be established, including DNS lookup, TLS handshake and TCP/QUIC connection establishment.
155
156
156
-
Defaults to 5 seconds. The timeout must be a value between 1s and 15s.`,
Defaults to 5 seconds. The timeout must be a value between 1s and 15s.
158
+
159
+
The connectTimeout capped by the deadline set by the request's maxAttemptsTimeout. The last connection attempt may have a smaller connectTimeout in order to adhere to the overall maxAttemptsTimeout.`,
Description: `The maximum time across all connection attempts to the origin, including failover origins, before returning an error to the client. A HTTP 503 will be returned if the timeout is reached before a response is returned.
165
+
Description: `The maximum time across all connection attempts to the origin, including failover origins, before returning an error to the client. A HTTP 504 will be returned if the timeout is reached before a response is returned.
166
+
167
+
Defaults to 15 seconds. The timeout must be a value between 1s and 30s.
168
+
169
+
If a failoverOrigin is specified, the maxAttemptsTimeout of the first configured origin sets the deadline for all connection attempts across all failoverOrigins.`,
Description: `The maximum duration to wait between reads of a single HTTP connection/stream.
176
+
177
+
Defaults to 15 seconds. The timeout must be a value between 1s and 30s.
178
+
179
+
The readTimeout is capped by the responseTimeout. All reads of the HTTP connection/stream must be completed by the deadline set by the responseTimeout.
163
180
164
-
Defaults to 5 seconds. The timeout must be a value between 1s and 15s.`,
Defaults to 30 seconds. The timeout must be a value between 1s and 120s.
190
+
191
+
The responseTimeout starts after the connection has been established.
192
+
193
+
This also applies to HTTP Chunked Transfer Encoding responses, and/or when an open-ended Range request is made to the origin. Origins that take longer to write additional bytes to the response than the configured responseTimeout will result in an error being returned to the client.
194
+
195
+
If the response headers have already been written to the connection, the response will be truncated and logged.`,
@@ -95,8 +97,8 @@ The following arguments are supported:
95
97
*`origin_address` -
96
98
(Required)
97
99
A fully qualified domain name (FQDN) or IP address reachable over the public Internet, or the address of a Google Cloud Storage bucket.
98
-
This address will be used as the origin for cache requests - e.g. FQDN: media-backend.example.com IPv4:35.218.1.1 IPv6:[2607:f8b0:4012:809::200e] Cloud Storage: gs://bucketname
99
-
When providing an FQDN (hostname), it must be publicly resolvable (e.g. via Google public DNS) and IP addresses must be publicly routable.
100
+
This address will be used as the origin for cache requests - e.g. FQDN: media-backend.example.com, IPv4:35.218.1.1, IPv6:2607:f8b0:4012:809::200e, Cloud Storage: gs://bucketname
101
+
When providing an FQDN (hostname), it must be publicly resolvable (e.g. via Google public DNS) and IP addresses must be publicly routable. It must not contain a protocol (e.g., https://) and it must not contain any slashes.
100
102
If a Cloud Storage bucket is provided, it must be in the canonical "gs://bucketname" format. Other forms, such as "storage.googleapis.com", will be rejected.
101
103
102
104
*`name` -
@@ -135,8 +137,8 @@ The following arguments are supported:
135
137
retryConditions and failoverOrigin to control its own cache fill failures.
136
138
The total number of allowed attempts to cache fill across this and failover origins is limited to four.
137
139
The total time allowed for cache fill attempts across this and failover origins can be controlled with maxAttemptsTimeout.
138
-
The last validresponse from an origin will be returned to the client.
139
-
If no origin returns a valid response, an HTTP 503 will be returned to the client.
140
+
The last valid, non-retried response from all origins will be returned to the client.
141
+
If no origin returns a valid response, an HTTP 502 will be returned to the client.
140
142
Defaults to 1. Must be a value greater than 0 and less than 4.
141
143
142
144
*`failover_origin` -
@@ -160,7 +162,8 @@ The following arguments are supported:
160
162
- GATEWAY_ERROR: Similar to 5xx, but only applies to response codes 502, 503 or 504.
161
163
- RETRIABLE_4XX: Retry for retriable 4xx response codes, which include HTTP 409 (Conflict) and HTTP 429 (Too Many Requests)
162
164
- NOT_FOUND: Retry if the origin returns a HTTP 404 (Not Found). This can be useful when generating video content, and the segment is not available yet.
163
-
Each value may be one of `CONNECT_FAILURE`, `HTTP_5XX`, `GATEWAY_ERROR`, `RETRIABLE_4XX`, and `NOT_FOUND`.
165
+
- FORBIDDEN: Retry if the origin returns a HTTP 403 (Forbidden).
166
+
Each value may be one of `CONNECT_FAILURE`, `HTTP_5XX`, `GATEWAY_ERROR`, `RETRIABLE_4XX`, `NOT_FOUND`, and `FORBIDDEN`.
164
167
165
168
*`timeout` -
166
169
(Optional)
@@ -175,18 +178,30 @@ The following arguments are supported:
175
178
176
179
*`connect_timeout` -
177
180
(Optional)
178
-
The maximum duration to wait for the origin connection to be established, including DNS lookup, TLS handshake and TCP/QUIC connection establishment.
181
+
The maximum duration to wait for a single origin connection to be established, including DNS lookup, TLS handshake and TCP/QUIC connection establishment.
179
182
Defaults to 5 seconds. The timeout must be a value between 1s and 15s.
183
+
The connectTimeout capped by the deadline set by the request's maxAttemptsTimeout. The last connection attempt may have a smaller connectTimeout in order to adhere to the overall maxAttemptsTimeout.
180
184
181
185
*`max_attempts_timeout` -
182
186
(Optional)
183
-
The maximum time across all connection attempts to the origin, including failover origins, before returning an error to the client. A HTTP 503 will be returned if the timeout is reached before a response is returned.
184
-
Defaults to 5 seconds. The timeout must be a value between 1s and 15s.
187
+
The maximum time across all connection attempts to the origin, including failover origins, before returning an error to the client. A HTTP 504 will be returned if the timeout is reached before a response is returned.
188
+
Defaults to 15 seconds. The timeout must be a value between 1s and 30s.
189
+
If a failoverOrigin is specified, the maxAttemptsTimeout of the first configured origin sets the deadline for all connection attempts across all failoverOrigins.
185
190
186
191
*`response_timeout` -
187
192
(Optional)
188
-
The maximum duration to wait for data to arrive when reading from the HTTP connection/stream.
189
-
Defaults to 5 seconds. The timeout must be a value between 1s and 30s.
193
+
The maximum duration to wait for the last byte of a response to arrive when reading from the HTTP connection/stream.
194
+
Defaults to 30 seconds. The timeout must be a value between 1s and 120s.
195
+
The responseTimeout starts after the connection has been established.
196
+
This also applies to HTTP Chunked Transfer Encoding responses, and/or when an open-ended Range request is made to the origin. Origins that take longer to write additional bytes to the response than the configured responseTimeout will result in an error being returned to the client.
197
+
If the response headers have already been written to the connection, the response will be truncated and logged.
198
+
199
+
*`read_timeout` -
200
+
(Optional)
201
+
The maximum duration to wait between reads of a single HTTP connection/stream.
202
+
Defaults to 15 seconds. The timeout must be a value between 1s and 30s.
203
+
The readTimeout is capped by the responseTimeout. All reads of the HTTP connection/stream must be completed by the deadline set by the responseTimeout.
204
+
If the response headers have already been written to the connection, the response will be truncated and logged.
0 commit comments