You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
106 lines
4.3 KiB
106 lines
4.3 KiB
5 years ago
|
syntax = "proto3";
|
||
|
|
||
5 years ago
|
package envoy.config.cluster.v3;
|
||
5 years ago
|
|
||
5 years ago
|
import "envoy/config/core/v3/base.proto";
|
||
|
import "envoy/type/v3/percent.proto";
|
||
5 years ago
|
|
||
|
import "google/protobuf/wrappers.proto";
|
||
|
|
||
5 years ago
|
import "udpa/annotations/versioning.proto";
|
||
5 years ago
|
|
||
5 years ago
|
import "validate/validate.proto";
|
||
|
|
||
5 years ago
|
option java_package = "io.envoyproxy.envoy.config.cluster.v3";
|
||
5 years ago
|
option java_outer_classname = "CircuitBreakerProto";
|
||
|
option java_multiple_files = true;
|
||
|
|
||
5 years ago
|
// [#protodoc-title: Circuit breakers]
|
||
|
|
||
|
// :ref:`Circuit breaking<arch_overview_circuit_break>` settings can be
|
||
|
// specified individually for each defined priority.
|
||
|
message CircuitBreakers {
|
||
5 years ago
|
option (udpa.annotations.versioning).previous_message_type =
|
||
5 years ago
|
"envoy.api.v2.cluster.CircuitBreakers";
|
||
|
|
||
5 years ago
|
// A Thresholds defines CircuitBreaker settings for a
|
||
5 years ago
|
// :ref:`RoutingPriority<envoy_api_enum_config.core.v3.RoutingPriority>`.
|
||
5 years ago
|
// [#next-free-field: 9]
|
||
5 years ago
|
message Thresholds {
|
||
5 years ago
|
option (udpa.annotations.versioning).previous_message_type =
|
||
5 years ago
|
"envoy.api.v2.cluster.CircuitBreakers.Thresholds";
|
||
|
|
||
5 years ago
|
message RetryBudget {
|
||
|
option (udpa.annotations.versioning).previous_message_type =
|
||
|
"envoy.api.v2.cluster.CircuitBreakers.Thresholds.RetryBudget";
|
||
|
|
||
|
// Specifies the limit on concurrent retries as a percentage of the sum of active requests and
|
||
|
// active pending requests. For example, if there are 100 active requests and the
|
||
|
// budget_percent is set to 25, there may be 25 active retries.
|
||
|
//
|
||
|
// This parameter is optional. Defaults to 20%.
|
||
5 years ago
|
type.v3.Percent budget_percent = 1;
|
||
5 years ago
|
|
||
|
// Specifies the minimum retry concurrency allowed for the retry budget. The limit on the
|
||
|
// number of active retries may never go below this number.
|
||
|
//
|
||
|
// This parameter is optional. Defaults to 3.
|
||
|
google.protobuf.UInt32Value min_retry_concurrency = 2;
|
||
|
}
|
||
|
|
||
5 years ago
|
// The :ref:`RoutingPriority<envoy_api_enum_config.core.v3.RoutingPriority>`
|
||
5 years ago
|
// the specified CircuitBreaker settings apply to.
|
||
5 years ago
|
core.v3.RoutingPriority priority = 1 [(validate.rules).enum = {defined_only: true}];
|
||
5 years ago
|
|
||
|
// The maximum number of connections that Envoy will make to the upstream
|
||
|
// cluster. If not specified, the default is 1024.
|
||
|
google.protobuf.UInt32Value max_connections = 2;
|
||
|
|
||
|
// The maximum number of pending requests that Envoy will allow to the
|
||
|
// upstream cluster. If not specified, the default is 1024.
|
||
|
google.protobuf.UInt32Value max_pending_requests = 3;
|
||
|
|
||
|
// The maximum number of parallel requests that Envoy will make to the
|
||
|
// upstream cluster. If not specified, the default is 1024.
|
||
|
google.protobuf.UInt32Value max_requests = 4;
|
||
|
|
||
|
// The maximum number of parallel retries that Envoy will allow to the
|
||
|
// upstream cluster. If not specified, the default is 3.
|
||
|
google.protobuf.UInt32Value max_retries = 5;
|
||
|
|
||
5 years ago
|
// Specifies a limit on concurrent retries in relation to the number of active requests. This
|
||
|
// parameter is optional.
|
||
|
//
|
||
|
// .. note::
|
||
|
//
|
||
|
// If this field is set, the retry budget will override any configured retry circuit
|
||
|
// breaker.
|
||
|
RetryBudget retry_budget = 8;
|
||
|
|
||
5 years ago
|
// If track_remaining is true, then stats will be published that expose
|
||
|
// the number of resources remaining until the circuit breakers open. If
|
||
|
// not specified, the default is false.
|
||
5 years ago
|
//
|
||
|
// .. note::
|
||
|
//
|
||
|
// If a retry budget is used in lieu of the max_retries circuit breaker,
|
||
|
// the remaining retry resources remaining will not be tracked.
|
||
5 years ago
|
bool track_remaining = 6;
|
||
|
|
||
|
// The maximum number of connection pools per cluster that Envoy will concurrently support at
|
||
|
// once. If not specified, the default is unlimited. Set this for clusters which create a
|
||
|
// large number of connection pools. See
|
||
|
// :ref:`Circuit Breaking <arch_overview_circuit_break_cluster_maximum_connection_pools>` for
|
||
|
// more details.
|
||
|
google.protobuf.UInt32Value max_connection_pools = 7;
|
||
|
}
|
||
|
|
||
5 years ago
|
// If multiple :ref:`Thresholds<envoy_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
|
||
5 years ago
|
// are defined with the same
|
||
5 years ago
|
// :ref:`RoutingPriority<envoy_api_enum_config.core.v3.RoutingPriority>`, the first one in the
|
||
|
// list is used. If no Thresholds is defined for a given
|
||
|
// :ref:`RoutingPriority<envoy_api_enum_config.core.v3.RoutingPriority>`, the default values
|
||
5 years ago
|
// are used.
|
||
|
repeated Thresholds thresholds = 1;
|
||
|
}
|