<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                ## 集群&集群發現 - [Cluster](#cluster) - [Cluster.EdsClusterConfig](#clusteredsclusterconfig) - [Cluster.OutlierDetection](#clusteroutlierdetection) - [Cluster.LbSubsetConfig](#clusterlbsubsetconfig) - [Cluster.LbSubsetConfig.LbSubsetSelector](#clusterlbsubsetconfiglbsubsetselector) - [Cluster.LbSubsetConfig.LbSubsetFallbackPolicy (Enum)](#clusterlbsubsetconfiglbsubsetfallbackpolicy-enum) - [Cluster.RingHashLbConfig](#clusterringhashlbconfig) - [Cluster.RingHashLbConfig.DeprecatedV](#clusterringhashlbconfigdeprecatedv) - [Cluster.DiscoveryType (Enum)](#clusterdiscoverytype-enum) - [Cluster.LbPolicy (Enum)](#clusterlbpolicy-enum) - [Cluster.DnsLookupFamily (Enum)](#clusterdnslookupfamily-enum) - [UpstreamBindConfig](#upstreambindconfig) - [CircuitBreakers](#circuitbreakers) - [CircuitBreakers.Thresholds](#circuitbreakersthresholds) ### Cluster [Cluster proto](https://github.com/envoyproxy/data-plane-api/blob/master/api/cds.proto#L33) ``` { "name": "...", "type": "...", "eds_cluster_config": "{...}", "connect_timeout": "{...}", "per_connection_buffer_limit_bytes": "{...}", "lb_policy": "...", "hosts": [], "health_checks": [], "max_requests_per_connection": "{...}", "circuit_breakers": "{...}", "tls_context": "{...}", "http_protocol_options": "{...}", "http2_protocol_options": "{...}", "dns_refresh_rate": "{...}", "dns_lookup_family": "...", "dns_resolvers": [], "outlier_detection": "{...}", "cleanup_interval": "{...}", "upstream_bind_config": "{...}", "lb_subset_config": "{...}", "ring_hash_lb_config": "{...}", "transport_socket": "{...}" } ``` - **name**<br /> ([string](https://developers.google.com/protocol-buffers/docs/proto#scalar), REQUIRED) 提供在所有群集中必須唯一的群集名稱。在發布統計信息時,會使用集群名稱。在發布任何統計信息時,集群名稱將被轉換為`_`。默認情況下,群集名稱的最大長度限制為60個字符。可通過`--max-obj-name-len`命令行參數,提高此上限。 - **type**<br /> ([Cluster.DiscoveryType](#clusterdiscoverytype-enum))) 用于解析群集的服務發現類型。 - **eds_cluster_config**<br /> ([Cluster.EdsClusterConfig](#clusteredsclusterconfig)) 用于群集的EDS更新配置。 - **connect_timeout**<br /> ([Duration](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#duration)) 連接到該群集中主機的超時時長。 - **per_connection_buffer_limit_bytes**<br /> ([UInt32Value](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#uint32value)) 連接集群的讀寫緩沖區大小。如果未指定,則使用默認值(1MB)。 - **lb_policy**<br /> ([Cluster.LbPolicy](#clusterlbpolicy-enum))) 在集群中選擇主機時使用的負載平衡器類型。 - **hosts**<br /> ([Address](../v2APIreference/Networkaddresses.md)) 如果服務發現類型是`STATIC`,`STRICT_DNS`或`LOGICAL_DNS`,則需要配置。 - **health_checks**<br /> ([HealthCheck](../v2APIreference/Healthcheck.md)) 群集可選的健康檢查配置。如果未指定配置,則不會執行健康檢查,并且假定所有群集成員都將始終處于健康狀態。 - **max_requests_per_connection**<br /> ([UInt32Value](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#uint32value)) 可選,單個上游連接的最大請求數。HTTP/1.1和HTTP/2連接池都遵守此參數。如果沒有指定,則沒有限制。若此參數設置為1將有效地禁用保活狀態的連接。 - **circuit_breakers**<br /> ([CircuitBreakers](#circuitbreakers)) 可選,集群熔斷配置。 - **tls_context**<br /> ([UpstreamTlsContext](../v2APIreference/CommonTLSconfiguration.md)) 連接到上游群集的TLS配置。如果沒有指定TLS配置,則新連接不會使用TLS。 - **http_protocol_options**<br /> ([Http1ProtocolOptions](../v2APIreference/Protocoloptions.md)) 處理HTTP1請求時的其他選項。 只能設置`http_protocol_options`和`http2_protocol_options`其中一個配置。 - **http2_protocol_options**<br /> ([Http2ProtocolOptions](../v2APIreference/Protocoloptions.md)) 即使需要默認的HTTP2協議選項,也必須設置此字段,以便Envoy將在創建新的HTTP連接池時,假定上游支持HTTP/2。目前,Envoy僅支持上游連接的先驗證。即使TLS與ALPN一起使用,也必須指定`http2_protocol_options`。另外,這允許HTTP/2通過純文本連接。 只能設置`http_protocol_options`和`http2_protocol_options`其中一個配置。 - **dns_refresh_rate**<br /> ([Duration](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#duration)) 指定DNS刷新率,在群集類型為`STRICT_DNS`或`LOGICAL_DNS`時,則將此值用作群集的DNS刷新率。如果未指定此設置,則此值默認為5000。對于`STRICT_DNS`和`LOGICAL_DNS`以外的群集類型,此設置將被忽略。 - **dns_lookup_family**<br /> ([Cluster.DnsLookupFamily](#clusterdnslookupfamily-enum))) DNS IP地址解析策略。 如果未指定此設置,則該值默認為`V4_ONLY`。 - **dns_resolvers**<br /> ([Address](../v2APIreference/Networkaddresses.md)) 如果指定了DNS解析程序,并且群集類型是`STRICT_DNS`或`LOGICAL_DNS`,則此值用于指定群集的dns解析程序。如果未指定此設置,則該值默認為使用`/etc/resolv.conf`配置的默認解析器。對于`STRICT_DNS`和`LOGICAL_DNS`以外的其他集群類型,此設置將被忽略。 - **outlier_detection**<br /> ([Cluster.OutlierDetection](#clusteroutlierdetection)) 如果指定,則會為此上游群集啟用異常值檢測。每個配置值都可以通過運行時配置覆蓋。 - **cleanup_interval**<br /> ([Duration](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#duration)) 從集群類型`ORIGINAL_DST`中刪除過期主機的時間間隔。如果主機在這段時間內沒有被用作上游目的地,則認為它們是陳舊的。隨著新的連接重定向到Envoy,新的主機將按需添加到原始目標集群,從而導致集群中的主機數量隨著時間而增長。沒有陳舊的主機(它們被主動用作目的地)被保存在群集中,從而允許與它們的連接保持打開狀態,從而節省了打開新連接所花費的等待時間。如果未指定此設置,則該值默認為5000毫秒。對于`ORIGINAL_DST`以外的其他群集類型,此設置將被忽略。 - **upstream_bind_config**<br /> ([BindConfig](../v2APIreference/Networkaddresses.md#BindConfig)) 用于綁定新建立的上游連接的可選配置。這將覆蓋`bootstrap proto`中指定的任何`bind_config`。如果地址和端口是空的,則不執行綁定。 - **lb_subset_config**<br /> ([Cluster.LbSubsetConfig](#clusterlbsubsetconfig)) 配置負載平衡子集。 - **ring_hash_lb_config**<br /> ([Cluster.RingHashLbConfig](#clusterringhashlbconfig)) 可選,配置環哈希負載平衡策略。只能設置一個`ring_hash_lb_config`。 - **transport_socket**<br /> ([TransportSocket](../v2APIreference/Commontypes.md#TransportSocket)) 請參閱 [base.TransportSocket](../v2APIreference/Commontypes.md#TransportSocket)描述。 ### Cluster.EdsClusterConfig [Cluster.EdsClusterConfig proto](https://github.com/envoyproxy/data-plane-api/blob/master/api/cds.proto#L74) 只有當集群發現類型是EDS時才有效。 ``` { "eds_config": "{...}", "service_name": "..." } ``` - **eds_config**<br /> ([ConfigSource](../v2APIreference/Commontypes.md#ConfigSource)) 此群集的EDS更新源的配置。 - **service_name**<br /> ([string](https://developers.google.com/protocol-buffers/docs/proto#scalar)) 可選,替代集群的名稱,提供給EDS服務。這與集群名稱沒有同樣的限制,即它可以是任意的長度。 ### Cluster.OutlierDetection [Cluster.OutlierDetection proto](https://github.com/envoyproxy/data-plane-api/blob/master/api/cds.proto#L217) 有關異常值檢測的更多信息,請參閱[架構概述](../Introduction/Architectureoverview/Outlierdetection.md)。 ``` { "consecutive_5xx": "{...}", "interval": "{...}", "base_ejection_time": "{...}", "max_ejection_percent": "{...}", "enforcing_consecutive_5xx": "{...}", "enforcing_success_rate": "{...}", "success_rate_minimum_hosts": "{...}", "success_rate_request_volume": "{...}", "success_rate_stdev_factor": "{...}", "consecutive_gateway_failure": "{...}", "enforcing_consecutive_gateway_failure": "{...}" } ``` - **consecutive_5xx**<br /> ([UInt32Value](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#uint32value)) 發生連續5xx逐出主機之前,連續5xx響應的數量。默認為5。 - **interval**<br /> ([Duration](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#duration)) 每次異常值分析掃描的時間間隔,這可能導致新拋出異常以及主機被重新添加到服務集群。默認為10000ms或10s。 - **base_ejection_time**<br /> ([Duration](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#duration)) 主機彈出的基準時間。實際時間等于基本時間乘以主機被逐出的次數。默認為30000ms或30s。 - **max_ejection_percent**<br /> ([UInt32Value](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#uint32value)) 由于異常檢測而逐出的主機占上游群集的最大百分比。默認為10%。 - **enforcing_consecutive_5xx**<br /> ([UInt32Value](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#uint32value)) 當通過連續5xx檢測到異常狀態時,主機實際被逐出的幾率百分比。這個設置可以用來禁止逐出或者緩慢地加速。默認為100。 - **enforcing_success_rate**<br /> ([UInt32Value](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#uint32value)) 通過成功率統計檢測到異常狀態時,主機實際被逐出的幾率百分比。這個設置可以用來禁止逐出或者緩慢地加速。默認為100。 - **success_rate_minimum_hosts**<br /> ([UInt32Value](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#uint32value)) 必須具有足夠的請求量來檢測成功率異常值的群集中的主機數量。如果主機數量小于此設置,則不會為群集中的任何主機執行通過成功率統計信息的異常值檢測。默認為5。 - **success_rate_request_volume**<br /> ([UInt32Value](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#uint32value)) 在一個時間間隔內(如上述定義的時間間隔)必須收集的最小請求總數,以便將此主機包含在基于成功率的異常值檢測中。如果低于此設置,則不會為該主機執行通過成功率統計的異常值檢測。默認為100。 - **success_rate_stdev_factor**<br /> ([UInt32Value](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#uint32value)) 這個因子被用來確定異常逐出成功率的閾值。逐出閾值是平均成功率與該因子與平均成功率的標準偏差的乘積之差:`mean - (stdev * success_rate_stdev_factor)`。 這個因素除以一千得到一個兩位小數值。也就是說,如果期望的因子是1.9,運行時間值應該是1900,默認為1900。 - **consecutive_gateway_failure**<br /> ([UInt32Value](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#uint32value)) 逐出之前連續發生的連續網關故障數量,包括(502,503,504狀態或連接錯誤,映射到其中一個狀態代碼)默認為5。 - **enforcing_consecutive_gateway_failure**<br /> ([UInt32Value](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#uint32value)) 當通過連續的網關故障檢測到異常狀態時,主機實際被逐出的幾率百分比。這個設置可以用來禁止逐出或者緩慢地加速。默認為0。 ### Cluster.LbSubsetConfig [Cluster.LbSubsetConfig proto](https://github.com/envoyproxy/data-plane-api/blob/master/api/cds.proto#L307) (可選)將此群集中的端口劃分為由端口元數據定義的子集,并按路由和加權群集元數據進行選擇。 ``` { "fallback_policy": "...", "default_subset": "{...}", "subset_selectors": [] } ``` - **fallback_policy**<br /> ([Cluster.LbSubsetConfig.LbSubsetFallbackPolicy](#clusterlbsubsetconfiglbsubsetfallbackpolicy)) 選定路由的元數據沒有響應的端口子集匹配時使用的行為。該值默認為[NO_FALLBACK](#NO_FALLBACK)。 - **default_subset**<br /> ([Struct](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)) 如果`fallback_policy`為`DEFAULT_SUBSET`,則指定在回退期間使用的端點的默認子集。將`default_subset`中的每個字段與`envoy.lb`命名空間下的匹配`LbEndpoint.Metadata進行比較。沒有主機匹配是有效的,在這種情況下,行為與`NO_FALLBACK`的`fallback_policy`相同。 - **subset_selectors**<br /> ([Cluster.LbSubsetConfig.LbSubsetSelector](#clusterlbsubsetconfiglbsubsetselector)) 對于每個條目,遍歷`LbEndpoint.Metadata`的`envoy.lb`命名空間,并為每個唯一的key和value組合創建一個子集。例如: ``` { "subset_selectors": [ { "keys": [ "version" ] }, { "keys": [ "stage", "hardware_type" ] } ]} ``` 當來自所選路由和加權群集的元數據包含與子集的元數據相同的key和value時,匹配子集。相同的主機可能出現在多個子集中。 ### Cluster.LbSubsetConfig.LbSubsetSelector [Cluster.LbSubsetConfig.LbSubsetSelector proto](https://github.com/envoyproxy/data-plane-api/blob/master/api/cds.proto#L336) 子集的規格 ``` { "keys": [] } ``` - **keys**<br /> ([string](https://developers.google.com/protocol-buffers/docs/proto#scalar)) 與加權的群集元數據匹配的key列表。 ### Cluster.LbSubsetConfig.LbSubsetFallbackPolicy (Enum) [Cluster.LbSubsetConfig.LbSubsetFallbackPolicy proto](https://github.com/envoyproxy/data-plane-api/blob/master/api/cds.proto#L314) 如果選擇`NO_FALLBACK`,則會報告等效于沒有健康主機的結果。如果選擇了`ANY_ENDPOINT`,則可能會返回任何群集端點(取決于策略,健康檢查等)。如果選擇`DEFAULT_SUBSET`,則在匹配來自`default_subset`字段的值的端口上執行負載平衡。 - **NO_FALLBACK**<br /> (DEFAULT) - **ANY_ENDPOINT** - **DEFAULT_SUBSET** ### Cluster.RingHashLbConfig [Cluster.RingHashLbConfig proto](https://github.com/envoyproxy/data-plane-api/blob/master/api/cds.proto#L363) [RingHash](../Introduction/Architectureoverview/Loadbalancing.md)負載均衡策略的具體配置。 ``` { "minimum_ring_size": "{...}", "deprecated_v1": "{...}" } ``` - **minimum_ring_size**<br /> ([UInt64Value](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#uint64value)) 最小哈希環大小,即總的虛擬節點。更大的尺寸將提供更好的請求分布,因為集群中的每個主機將具有更多的虛擬節點。默認為1024.在主機總數大于最小值的情況下,每個主機將被分配一個虛擬節點。 - **deprecated_v1**<br /> ([Cluster.RingHashLbConfig.DeprecatedV1](#clusterringhashlbconfigdeprecatedv1)) 已棄用的v1配置。 ### Cluster.RingHashLbConfig.DeprecatedV1 [Cluster.RingHashLbConfig.DeprecatedV1 proto](https://github.com/envoyproxy/data-plane-api/blob/master/api/cds.proto#L371) ``` { "use_std_hash": "{...}" } ``` - **use_std_hash**<br /> ([BoolValue](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#boolvalue)) 默認為`true`,這意味著`std::hash`用于將主機散列到`ketama`環上。`std::hash`可能因平臺而異。為此,Envoy默認最終會使用xxHash。該字段用于遷移目的,最終將被棄用。現在將其設置為`false`以使用`xxHash`。 ### Cluster.DiscoveryType (Enum) [Cluster.DiscoveryType proto](https://github.com/envoyproxy/data-plane-api/blob/master/api/cds.proto#L45) 有關每種類型的解釋,請參閱[服務發現類型](../Introduction/Architectureoverview/Servicediscovery.md)。 - **STATIC**<br /> (DEFAULT) 靜態發現類型 - **STRICT_DNS**<br /> 嚴格的DNS發現類型 - **LOGICAL_DNS**<br /> 邏輯DNS發現類型 - **EDS**<br /> 服務發現類型 - **ORIGINAL_DST**<br /> 原始目標發現類型 ### Cluster.LbPolicy (Enum) [Cluster.LbPolicy proto](https://github.com/envoyproxy/data-plane-api/blob/master/api/cds.proto#L95) 有關每種類型的信息,請參閱負載平衡器體系[架構概述](../Introduction/Architectureoverview/Loadbalancing.md)部分。 - **ROUND_ROBIN**<br /> (DEFAULT) 輪循負載平衡策略 - **LEAST_REQUEST**<br /> 最小請求負載平衡策略 - **RING_HASH**<br /> 環形散列負載平衡策略 - **RANDOM**<br /> 隨機負載平衡策略 - **ORIGINAL_DST_LB**<br /> 原始目標負載平衡策略 ### Cluster.DnsLookupFamily (Enum) [Cluster.DnsLookupFamily proto](https://github.com/envoyproxy/data-plane-api/blob/master/api/cds.proto#L192) 當選擇V4_ONLY時,DNS解析器將僅執行IPv4系列中的地址查找。如果選擇V6_ONLY,則DNS解析程序將僅執行IPv6系列中的地址查找。如果指定了AUTO,則DNS解析器將首先執行IPv6系列中的地址查找,然后回退到IPv4系列中的地址查找。對于`STRICT_DNS`和`LOGICAL_DNS`以外的集群類型,此設置將被忽略。 - **AUTO**<br /> (DEFAULT) - **V4_ONLY**<br /> - **V6_ONLY**<br /> ### UpstreamBindConfig [UpstreamBindConfig proto](https://github.com/envoyproxy/data-plane-api/blob/master/api/cds.proto#L410) 包含Envoy的可擴展地址結構,在與上游建立連接時綁定。 ``` { "source_address": "{...}" } ``` - **source_address**<br /> ([Address](../v2APIreference/Networkaddresses.md)) 建立上游連接時,Envoy應該綁定的地址。 ### CircuitBreakers [CircuitBreakers proto](https://github.com/envoyproxy/data-plane-api/blob/master/api/cds.proto#L417) 可以為每個定義的優先級單獨指定斷路設置。 ``` { "thresholds": [] } ``` - **thresholds**<br /> ([CircuitBreakers.Thresholds](#circuitbreakersthresholds)) 如果使用相同的`RoutingPriority`定義多個閾值,則使用列表中的第一個閾值。如果給定的`RoutingPriority`沒有定義`Thresholds`,則使用默認值。 ### CircuitBreakers.Thresholds [CircuitBreakers.Thresholds proto](https://github.com/envoyproxy/data-plane-api/blob/master/api/cds.proto#L421) 為RoutingPriority定義斷路閾值設置。 ``` { "priority": "...", "max_connections": "{...}", "max_pending_requests": "{...}", "max_requests": "{...}", "max_retries": "{...}" } ``` - **priority**<br /> ([RoutingPriority](../v2APIreference/Commontypes.md#RoutingPriority)) 設置指定斷路器的`RoutingPriority`。 - **max_connections**<br /> ([UInt32Value](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#uint32value)) Envoy將對上游群集進行的最大連接數。如果未指定,則默認值為1024。 - **max_pending_requests**<br /> ([UInt32Value](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#uint32value)) Envoy將允許上游集群的最大待處理請求數。如果未指定,則默認值為1024。 - **max_requests**<br /> ([UInt32Value](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#uint32value)) Envoy將對上游群集執行的最大并行請求數。如果未指定,則默認值為1024。 - **max_retries**<br /> ([UInt32Value](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#uint32value)) Envoy允許上游集群執行的最大并行重試次數。如果未指定,則默認值為3。 ## 返回 - [上一級](../v2APIreference.md) - [首頁目錄](../README.md)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看