Use the Upstream Timeout plugin to configure route-specific timeouts. This plugin overrides any service-level timeout settings.
Configuration Reference
This plugin is compatible with DB-less mode.
Example plugin configuration
Parameters
Here's a list of all the parameters which can be used in this plugin's configuration:
Form Parameter | Description |
---|---|
name
required Type: string |
The name of the plugin, in this case upstream-timeout . |
route.name or route.id
Type: string |
The name or ID of the route the plugin targets.
Set one of these parameters if adding the plugin to a route through the top-level /plugins endpoint.
Not required if using /routes/ROUTE_NAME|ROUTE_ID/plugins . |
enabled
Type: boolean Default value: true |
Whether this plugin will be applied. |
config.connect_timeout
optional Type: integer |
The timeout, in milliseconds, for establishing a connection to the upstream server.
Overrides the service object |
config.send_timeout
optional Type: integer |
The timeout, in milliseconds, between two
successive write operations when sending a request to the upstream server.
Overrides the service object |
config.read_timeout
optional Type: integer |
The timeout, in milliseconds, between two
successive read operations when receiving a response from the upstream server.
Overrides the service object |