Apigee timeout settings in the Hybrid

Apigee timeout settings in the Hybrid.

Hi, 

I have to increase the timeout in Apigee because the issue is that apigee return the 504 gateway timeout after 1 minute, I would like to extend it to 3 minutes to get rid of this timeout error.

I found https://docs.apigee.com/how-to-guides/configuring-io-timeout-best-practices , but not sure if it works on the Apigee Hybrid.

Has anyone already solved such a task & can share the experience?

BR, thanks,

Optimism,

 

1 2 506
2 REPLIES 2

You may have to work with Google Apigee team, I heard they are working on a feature to support this. Also, I see on their page Limits it still shows as planned. 

I think this can help you

https://cloud.google.com/apigee/docs/api-platform/reference/endpoint-properties-reference

In my Target Endpoint file I have:

<HTTPTargetConnection>
        <Properties>
            <Property name="connect.timeout.millis">2000</Property>
            <Property name="io.timeout.millis">30000</Property>
            <Property name="keepalive.timeout.millis">35000</Property>
        </Properties>
        <SSLInfo>
            <Enabled>false</Enabled>
        </SSLInfo>
        <LoadBalancer>
            <Server name="XXXX"/>
        </LoadBalancer>
    </HTTPTargetConnection>

If you have only few paths that takes several minutes, you can customize your route rule to route to a new target endpoint with the same server but with different properties:

    <RouteRule name="SlowRoute">
        <Condition>
            (proxy.pathsuffix MatchesPath "/myapi/uploadfile") or 
            (proxy.pathsuffix MatchesPath "/myapi/downloadfile")
        </Condition>
        <TargetEndpoint>Slow-endpoint</TargetEndpoint>
    </RouteRule>