Mirroring
Traffic mirroring or shadowing is a feature that can be used to test new versions of a service with real traffic before rolling it out to the users with minimal risk or to monitor and audit traffic of existing services. Mirroring sends a copy of live traffic to a mirrored service.
Mirroring using the UI
To configure mirroring from the dashboard, complete the following steps.
-
Select the service on the MENU > SERVICES or the MENU > TOPOLOGY page.
-
Select TRAFFIC MANAGEMENT > CREATE NEW.
-
Scroll down and select MIRRORING.
-
Set the destination of the mirrored traffic. You must set at least the destination host.
-
Click Apply. The mirroring rule is listed in the ACTIONS field.
Mirroring using Istio resources
To configure mirroring from the Istio resources page, complete the following steps:
-
Select the service on the MENU > ISTIO RESOURCES.
-
Select CREATE NEW > DESTINATION RULE.
-
Use the Subsets template to configure subsets for the service to use as destinations to route and mirror traffic.
-
To configure the mirroring of traffic, start with the HTTP Destination Route Template. The
mirror
configuration is scoped to theroute
configuration. In the following example, 100% of the traffic to the bookings service is sent to thev1
workloads. The mirroring configuration indicates that 100% of the traffic should also be mirrored to thev2
workloads. -
Click Create. The mirroring rule is listed in the Istio-resources page.