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.

  1. Select the service on the MENU > SERVICES or the MENU > TOPOLOGY page.

  2. Select TRAFFIC MANAGEMENT > CREATE NEW.

    Traffic management Traffic management

  3. Scroll down and select MIRRORING.

  4. Set the destination of the mirrored traffic. You must set at least the destination host.

    Configure Traffic Management Configure Traffic Management

  5. Click Apply. The mirroring rule is listed in the ACTIONS field.

    Mirroring rule Mirroring rule

Mirroring using Istio resources

To configure mirroring from the Istio resources page, complete the following steps:

  1. Select the service on the MENU > ISTIO RESOURCES.

  2. Select CREATE NEW > DESTINATION RULE.

  3. Use the Subsets template to configure subsets for the service to use as destinations to route and mirror traffic.

    subset subset

  4. To configure the mirroring of traffic, start with the HTTP Destination Route Template. The mirror configuration is scoped to the route configuration. In the following example, 100% of the traffic to the bookings service is sent to the v1 workloads. The mirroring configuration indicates that 100% of the traffic should also be mirrored to the v2 workloads.

    Configure Configure

  5. Click Create. The mirroring rule is listed in the Istio-resources page.