ratio #

Description #

The ratio filter is used to forward normal traffic to another flow proportionally. It can implement canary release, traffic migration and export, or switch some traffic to clusters of different versions for testing.

Configuration Example #

A simple example is as follows:

  - name: ratio_traffic_forward
      - ratio:
          ratio: 0.1
          flow: hello_world
          continue: true

Parameter Description #

ratiofloatProportion of traffic to be migrated
flowstringNew traffic processing flow
continueboolWhether to continue the previous flow after traffic is migrated. The gateway returns immediately after it is set to false. The default value is false.