Static Configurations
By default, timeout values for the plugin are pre-configured in the default configuration.
The file to update depends on how the gateway is deployed:
- Host or Docker
- Kubernetes (Helm)
For host or Docker deployments, configure the following settings:
plugin_attr:
proxy-mirror:
timeout:
connect: 60s
read: 60s
send: 60s
Then reload the gateway for changes to take effect.
For Helm deployments, update the chart values that render plugin_attr.proxy-mirror. Keep the rest of your values file unchanged.
For the APISIX Helm chart, set the following values:
apisix:
pluginAttrs:
proxy-mirror:
timeout:
connect: 60s
read: 60s
send: 60s
For the API7 Gateway Helm chart, set the following values:
pluginAttrs:
proxy-mirror:
timeout:
connect: 60s
read: 60s
send: 60s
Then apply the values file with the chart used for this gateway release:
helm upgrade <release-name> <chart-name> -n <namespace> -f values.yaml
Parameters
See plugin common configurations for configuration options available to all plugins.
host
Address of the host to forward the mirrored traffic to. The address should contain the scheme but without the path, such as
http://127.0.0.1:8081.path
Path of the host to forward the mirrored traffic to. If unspecified, default to the current URI path of the route. Not applicable if the plugin is mirroring gRPC traffic.
path_concat_mode
vaild vaule:
replaceorprefixConcatenation mode when
pathis specified. When set toreplace, the configuredpathwould be directly used as the path of the host to forward the mirrored traffic to. When set toprefix, the path to forward to would be the configuredpath, appended by the requested URI path of the route. Not applicable if the plugin is mirroring gRPC traffic.sample_ratio
vaild vaule:
between 0.00001 and 1 inclusive
Ratio of the requests that will be mirrored. By default, all traffic are mirrored.