Hi all,
I'm doing shadow mirroring by using the request_mirror_policy. My config (simplified) looks like this:
static_resources:
listeners:
- name: listener_0
filter_chains:
- filters:
- name: envoy.http_connection_manager
config:
stat_prefix: ingress_http
route_config:
name: local_route
virtual_hosts:
- name: main-host
domains: ["*"]
routes:
- match:
prefix: "/"
query_parameters: [ { name: "somequeryarg", value: "value", regex: true } ]
route:
cluster: main-cluster
request_mirror_policy:
cluster: mirror-cluster
runtime_fraction: { default_value: { numerator: 10 } }
clusters:
- name: main-cluster
type: STRICT_DNS
- name: mirror-cluster
type: STRICT_DNS
So I'm mirroring 10% of the traffic to mirror-cluster.
If I understand the docs correctly, when Envoy sends the mirrored requests, it appends -shadow to Host header.
Is there any way to customize this, and specify a different Host header for the mirrored requests?
Thanks!
Mark Vincze