Skip to content

Commit dbc5e6a

Browse files
admin-docs: add some clarifications and use proper note annotations in admin-clusters docs (#39087)
Signed-off-by: Rohit Agrawal <rohit.agrawal@databricks.com> Mirrored from https://github.com/envoyproxy/envoy @ ea68d89822e40c3279392147e578348b2e88db28
1 parent cecd963 commit dbc5e6a

File tree

1 file changed

+51
-44
lines changed

1 file changed

+51
-44
lines changed

envoy/admin/v3/clusters.proto

Lines changed: 51 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,24 @@ message ClusterStatus {
4141
bool added_via_api = 2;
4242

4343
// The success rate threshold used in the last interval.
44-
// If
45-
// :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
46-
// is ``false``, all errors: externally and locally generated were used to calculate the threshold.
47-
// If
48-
// :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
49-
// is ``true``, only externally generated errors were used to calculate the threshold.
50-
// The threshold is used to eject hosts based on their success rate. See
51-
// :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for details.
5244
//
53-
// Note: this field may be omitted in any of the three following cases:
45+
// * If :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
46+
// is ``false``, all errors: externally and locally generated were used to calculate the threshold.
47+
// * If :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
48+
// is ``true``, only externally generated errors were used to calculate the threshold.
49+
//
50+
// The threshold is used to eject hosts based on their success rate. For more information, see the
51+
// :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation.
52+
//
53+
// .. note::
54+
//
55+
// This field may be omitted in any of the three following cases:
56+
//
57+
// 1. There were not enough hosts with enough request volume to proceed with success rate based outlier ejection.
58+
// 2. The threshold is computed to be < 0 because a negative value implies that there was no threshold for that
59+
// interval.
60+
// 3. Outlier detection is not enabled for this cluster.
5461
//
55-
// 1. There were not enough hosts with enough request volume to proceed with success rate based
56-
// outlier ejection.
57-
// 2. The threshold is computed to be < 0 because a negative value implies that there was no
58-
// threshold for that interval.
59-
// 3. Outlier detection is not enabled for this cluster.
6062
type.v3.Percent success_rate_ejection_threshold = 3;
6163

6264
// Mapping from host address to the host's current status.
@@ -67,16 +69,18 @@ message ClusterStatus {
6769
// This field should be interpreted only when
6870
// :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
6971
// is ``true``. The threshold is used to eject hosts based on their success rate.
70-
// See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
71-
// details.
7272
//
73-
// Note: this field may be omitted in any of the three following cases:
73+
// For more information, see the :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation.
74+
//
75+
// .. note::
76+
//
77+
// This field may be omitted in any of the three following cases:
78+
//
79+
// 1. There were not enough hosts with enough request volume to proceed with success rate based outlier ejection.
80+
// 2. The threshold is computed to be < 0 because a negative value implies that there was no threshold for that
81+
// interval.
82+
// 3. Outlier detection is not enabled for this cluster.
7483
//
75-
// 1. There were not enough hosts with enough request volume to proceed with success rate based
76-
// outlier ejection.
77-
// 2. The threshold is computed to be < 0 because a negative value implies that there was no
78-
// threshold for that interval.
79-
// 3. Outlier detection is not enabled for this cluster.
8084
type.v3.Percent local_origin_success_rate_ejection_threshold = 5;
8185

8286
// :ref:`Circuit breaking <arch_overview_circuit_break>` settings of the cluster.
@@ -103,19 +107,20 @@ message HostStatus {
103107
// The host's current health status.
104108
HostHealthStatus health_status = 3;
105109

106-
// Request success rate for this host over the last calculated interval.
107-
// If
108-
// :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
109-
// is ``false``, all errors: externally and locally generated were used in success rate
110-
// calculation. If
111-
// :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
112-
// is ``true``, only externally generated errors were used in success rate calculation.
113-
// See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
114-
// details.
110+
// The success rate for this host during the last measurement interval.
111+
//
112+
// * If :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
113+
// is ``false``, all errors: externally and locally generated were used in success rate calculation.
114+
// * If :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
115+
// is ``true``, only externally generated errors were used in success rate calculation.
116+
//
117+
// For more information, see the :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation.
118+
//
119+
// .. note::
120+
//
121+
// The message will be missing if the host didn't receive enough traffic to calculate a reliable success rate, or
122+
// if the cluster had too few hosts to apply outlier ejection based on success rate.
115123
//
116-
// Note: the message will not be present if host did not have enough request volume to calculate
117-
// success rate or the cluster did not have enough hosts to run through success rate outlier
118-
// ejection.
119124
type.v3.Percent success_rate = 4;
120125

121126
// The host's weight. If not configured, the value defaults to 1.
@@ -127,18 +132,20 @@ message HostStatus {
127132
// The host's priority. If not configured, the value defaults to 0 (highest priority).
128133
uint32 priority = 7;
129134

130-
// Request success rate for this host over the last calculated
131-
// interval when only locally originated errors are taken into account and externally originated
132-
// errors were treated as success.
133-
// This field should be interpreted only when
135+
// The success rate for this host during the last interval, considering only locally generated errors. Externally
136+
// generated errors are treated as successes.
137+
//
138+
// This field is only relevant when
134139
// :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
135-
// is ``true``.
136-
// See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
137-
// details.
140+
// is set to ``true``.
141+
//
142+
// For more information, see the :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation.
143+
//
144+
// .. note::
145+
//
146+
// The message will be missing if the host didn’t receive enough traffic to compute a success rate, or if the
147+
// cluster didn’t have enough hosts to perform outlier ejection based on success rate.
138148
//
139-
// Note: the message will not be present if host did not have enough request volume to calculate
140-
// success rate or the cluster did not have enough hosts to run through success rate outlier
141-
// ejection.
142149
type.v3.Percent local_origin_success_rate = 8;
143150

144151
// locality of the host.

0 commit comments

Comments
 (0)