離群值偵測記錄事件 (proto)

離群值偵測記錄.

data.cluster.v3.OutlierDetectionEvent

[data.cluster.v3.OutlierDetectionEvent proto]

{
  "type": ...,
  "timestamp": {...},
  "secs_since_last_action": {...},
  "cluster_name": ...,
  "upstream_url": ...,
  "action": ...,
  "num_ejections": ...,
  "enforced": ...,
  "eject_success_rate_event": {...},
  "eject_consecutive_event": {...},
  "eject_failure_percentage_event": {...}
}
type

(data.cluster.v3.OutlierEjectionType) 在彈出的情況下,表示發生的彈出類型。

timestamp

(Timestamp) 事件的時間戳記。

secs_since_last_action

(UInt64Value) 自上次動作(彈出或取消彈出)發生以來經過的秒數。

cluster_name

(string, 必要) 擁有被彈出主機的 叢集

upstream_url

(string, 必要) 被彈出主機的 URL。例如,tcp://1.2.3.4:80

action

(data.cluster.v3.Action) 發生的動作。

num_ejections

(uint32) 如果 actioneject,指定主機被彈出的次數(本地於該 Envoy,如果主機因任何原因從上游叢集中移除然後重新添加,則會重置)。

enforced

(bool) 如果 actioneject,指定是否強制執行彈出。true 表示主機已彈出。false 表示事件已記錄,但主機實際上並未彈出。

eject_success_rate_event

(data.cluster.v3.OutlierEjectSuccessRate)

必須設定 eject_success_rate_eventeject_consecutive_eventeject_failure_percentage_event 其中之一。

eject_consecutive_event

(data.cluster.v3.OutlierEjectConsecutive)

必須設定 eject_success_rate_eventeject_consecutive_eventeject_failure_percentage_event 其中之一。

eject_failure_percentage_event

(data.cluster.v3.OutlierEjectFailurePercentage)

必須設定 eject_success_rate_eventeject_consecutive_eventeject_failure_percentage_event 其中之一。

data.cluster.v3.OutlierEjectSuccessRate

[data.cluster.v3.OutlierEjectSuccessRate proto]

{
  "host_success_rate": ...,
  "cluster_average_success_rate": ...,
  "cluster_success_rate_ejection_threshold": ...
}
host_success_rate

(uint32) 主機在彈出事件發生時的成功率,範圍為 0-100。

cluster_average_success_rate

(uint32) 叢集中主機在彈出事件發生時的平均成功率,範圍為 0-100。

cluster_success_rate_ejection_threshold

(uint32) 彈出事件發生時的成功率彈出閾值。

data.cluster.v3.OutlierEjectConsecutive

[data.cluster.v3.OutlierEjectConsecutive proto]

data.cluster.v3.OutlierEjectFailurePercentage

[data.cluster.v3.OutlierEjectFailurePercentage proto]

{
  "host_success_rate": ...
}
host_success_rate

(uint32) 主機在彈出事件發生時的成功率,範圍為 0-100。

Enum data.cluster.v3.OutlierEjectionType

[data.cluster.v3.OutlierEjectionType proto]

發生的彈出類型

CONSECUTIVE_5XX

(預設) ⁣在上游主機返回特定數量的連續 5xx 時。如果 outlier_detection.split_external_local_origin_errorsfalse,所有類型的錯誤都被視為 HTTP 5xx 錯誤。有關詳細資訊,請參閱叢集離群值偵測文件。

CONSECUTIVE_GATEWAY_FAILURE

⁣在上游主機返回特定數量的連續閘道錯誤時

SUCCESS_RATE

⁣在叢集中每個主機的彙總成功率統計資料上執行,並選擇成功回覆比例偏離叢集中其他主機的主機。如果 outlier_detection.split_external_local_origin_errorsfalse,所有錯誤(外部和本地產生)都用於計算成功率統計資料。有關詳細資訊,請參閱叢集離群值偵測文件。

CONSECUTIVE_LOCAL_ORIGIN_FAILURE

⁣連續的本地來源失敗:連線失敗、重置、逾時等。只有在 outlier_detection.split_external_local_origin_errors 設定為 true 時,才會發生此類型的彈出。有關詳細資訊,請參閱叢集離群值偵測文件

SUCCESS_RATE_LOCAL_ORIGIN

⁣在叢集中所有主機的本地來源失敗的彙總成功率統計資料上執行,並選擇成功率偏離叢集中其他主機的主機。只有在 outlier_detection.split_external_local_origin_errors 設定為 true 時,才會發生此類型的彈出。有關詳細資訊,請參閱叢集離群值偵測文件

FAILURE_PERCENTAGE

⁣在叢集中每個主機的彙總成功率統計資料上執行,並選擇失敗回覆比例高於設定值的主機。

FAILURE_PERCENTAGE_LOCAL_ORIGIN

⁣在叢集中每個主機的本地來源失敗的彙總成功率統計資料上執行,並選擇失敗回覆比例高於設定值的主機。

Enum data.cluster.v3.Action

[data.cluster.v3.Action proto]

表示應用於上游主機的可能動作

EJECT

(預設) ⁣在主機被排除在服務之外時

UNEJECT

⁣在主機被恢復服務時