higress icon indicating copy to clipboard operation
higress copied to clipboard

对接 Skywalking 和 OTel 服务时强制为对应的 Cluster 启用 HTTP2 协议

Open CH3CHO opened this issue 5 months ago • 1 comments

Why do you need it?

在 Higress 配置了对接外部的 Skywalking 或者 OTel 服务时,由于目前通过 MCP 下发的 Cluster 配置在未配置路由的情况下,无法指定其对应的后端协议,而相关功能又依赖 gRPC 协议转发,无法正常工作。

How could it be?

通过修改 Controller 生成的 EnvoyFilter 配置,为对应的 Cluster Patch 上 以下配置:

"typed_extension_protocol_options": {
  "envoy.extensions.upstreams.http.v3.HttpProtocolOptions": {
    "@type": "type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions",
    "explicit_http_config": {
      "http2_protocol_options": {}
    }
  }
}

Other related information

https://github.com/alibaba/higress/issues/1314

CH3CHO avatar Sep 16 '24 04:09 CH3CHO