可以使用Envoy将传入的gRPC流复制到2个输出流吗? 我基于Envoy文档的假设是,您可以为复制方案使用多个虚拟主机(又名Apache Web服务器),每个虚拟主机名在相同前缀上匹配,并将其发送到S2的相同集群service1_grpc和相同集群service1_grpc带有标题以过滤您要发送到该集群的内容2。是否读过Envoy在第一个完全匹配的路由上匹配,但是我可以使用2个域名称和前缀URL匹配的两个主机名将数据复制到2个流中吗?
virtual_hosts:
- name: local_dup_service1
domains: ["???"]
routes:
- match:
prefix: "/routing.RoutingService/S1"
route:
cluster: service1_grpc
- name: local_dup_service2
domains: ["*"]
routes:
- match:
prefix: "/routing.RoutingService/S1"
route:
cluster: service1_grpc
- name: local_filtered_service2
domains: ["*"]
routes:
- match:
prefix: "/routing.RoutingService/S1"
headers:
- name: "camera_id"
exact_match: "0"
route:
cluster: service1_grpc