Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Apigee router/nginx proxy_connect_timeout

Hi,

Can you clarify what is this "proxy_connect_timeout" setting is for? It is under "/opt/nginx/conf.d/0-default.conf". Is that the connection health check time interval that router does on MP? Also that looks like it is not a configurable option.

 

Solved Solved
0 4 1,457
1 ACCEPTED SOLUTION

As @API-Evangelist mentions, this corresponds to the nginx proxy connect timeout, which is how long nginx will wait to establish a new connection with the upstream proxied service, in this case, the Apigee message processor. As you note, the default is 5 seconds.

Only private cloud customers can adjust this, and it can be done by editing (create if it does not exist) file:

 

/opt/apigee/customer/application/router.properties

 

And adding attribute:

 

conf_load_balancing_load.balancing.driver.connect.timeout=3s

 

Which as an example would set this timeout value to be 3 seconds.

To take effect, restart the router:

 

/opt/apigee/apigee-service/bin/apigee-service edge-router restart

 

It is highly recommended to test this setting thoroughly in a lower-level/non-prod environment before adjusting in a production system.

 

 

 

View solution in original post

4 REPLIES 4