lookupCache failed in 30 second, anyway to set the timeout shorter

Not applicable

We are running some load test on the API on ApiGee SaaS, seeing the cache hit failed in 30+ second. The API consumer sets API timeout in 3 second. Is there a way to set the timeout shorter?

Any tip is appreciated.

Thanks,

0 4 203
4 REPLIES 4

Not applicable

You may add a tag in the policy definition of CacheLookupTimeoutInSeconds which must be greater than 0.

adas
Participant V

The default is 30 seconds, you can set it to higher or lower depending on your requirement using the CacheLookupTimeoutInSeconds element in the lookup cache policy. You can find the documentation here: http://docs.apigee.com/api-services/reference/response-cache-policy

The CacheLookupTimeoutInSeconds element may not have been documented for the lookupcache policy but the same should work.

@docs , Can we CacheLookupTimeoutInSeconds information to LookUp Cache Policy also ? Thank you.

Hi Albert,

You need to change the setting of <TimeoutInSec>30000</TimeoutInSec> in cache creation script to <TimeoutInSec>300</TimeoutInSec>