xref: /aosp_15_r20/external/grpc-grpc-java/xds/third_party/envoy/src/main/proto/envoy/config/core/v3/backoff.proto (revision e07d83d3ffcef9ecfc9f7f475418ec639ff0e5fe)
1syntax = "proto3";
2
3package envoy.config.core.v3;
4
5import "google/protobuf/duration.proto";
6
7import "udpa/annotations/status.proto";
8import "udpa/annotations/versioning.proto";
9import "validate/validate.proto";
10
11option java_package = "io.envoyproxy.envoy.config.core.v3";
12option java_outer_classname = "BackoffProto";
13option java_multiple_files = true;
14option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/core/v3;corev3";
15option (udpa.annotations.file_status).package_version_status = ACTIVE;
16
17// [#protodoc-title: Backoff strategy]
18
19// Configuration defining a jittered exponential back off strategy.
20message BackoffStrategy {
21  option (udpa.annotations.versioning).previous_message_type = "envoy.api.v2.core.BackoffStrategy";
22
23  // The base interval to be used for the next back off computation. It should
24  // be greater than zero and less than or equal to :ref:`max_interval
25  // <envoy_v3_api_field_config.core.v3.BackoffStrategy.max_interval>`.
26  google.protobuf.Duration base_interval = 1 [(validate.rules).duration = {
27    required: true
28    gte {nanos: 1000000}
29  }];
30
31  // Specifies the maximum interval between retries. This parameter is optional,
32  // but must be greater than or equal to the :ref:`base_interval
33  // <envoy_v3_api_field_config.core.v3.BackoffStrategy.base_interval>` if set. The default
34  // is 10 times the :ref:`base_interval
35  // <envoy_v3_api_field_config.core.v3.BackoffStrategy.base_interval>`.
36  google.protobuf.Duration max_interval = 2 [(validate.rules).duration = {gt {}}];
37}
38