G
GuideDevOps
Lesson 3 of 9

Traffic Management

Part of the Service Mesh tutorial series.

Overview

Traffic management is one of the core features of a service mesh, allowing you to control how traffic flows between services without changing application code.

Key Features

  • Canary Deployments: Shift traffic percentages between different versions of a service.
  • Retries & Timeouts: Improve reliability by automatically retrying failed requests.
  • Circuit Breaking: Stop sending traffic to a failing service to prevent cascading failures.

Example: Traffic Shifting (Istio VirtualService)

apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
spec:
  hosts:
    - my-service
  http:
  - route:
    - destination:
        host: my-service
        subset: v1
      weight: 90
    - destination:
        host: my-service
        subset: v2
      weight: 10

Result: 90% of requests go to v1, and 10% go to v2.

Traffic split active: v1=90%, v2=10%