Per-route timeout settings define the maximum time Cloud-native API Gateway waits for a backend response. If no response is received within the specified duration, the gateway returns an HTTP 504 (Gateway Timeout) error to the client.
Procedure
-
Configure a timeout policy in either of the following ways:
API page
-
Log on to the Cloud-native API Gateway console. In the navigation pane on the left, click API. In the top navigation bar, select a region.
-
Click the target API, and then select the target instance or All instances from the Instance drop-down list at the top.
-
In the Routes list, select the target route.
Instance details page
-
Log on to the Cloud-native API Gateway console. In the navigation pane on the left, click Instance. In the top navigation bar, select a region.
-
On the Instance page, click the ID of the target gateway instance. Then, in the left-side navigation pane, click API and select the target API.
-
In the Routes list, select the target route.
-
-
Click the Configure Policy tab. In the Inbound Processing section, click Enable Policy/Plugin.
-
Click the Timeout card. In the Add Policy: Timeout panel, configure the parameters and click Add.
NoteAfter enabling the timeout policy, verify that it meets your business requirements.
Parameter
Description
Enable
Whether to enable the timeout policy for the route.
-
On: The timeout policy is enabled for the route.
-
Off: The timeout policy is disabled for the route.
Timeout Period
The timeout duration for the route, in seconds.
NoteIf this parameter is set to 0 or the timeout policy is disabled, the gateway waits indefinitely for a response.
-