Openshift Routes
Configuring the gateway timeout
Long-running functions that return a response from a web-app to a client are generally not recommended1. However, in some cases this might prove necessary.
To do so in Openshift, locate the app's Routes (e.g. for
CertHelper those are here).
To set the haproxy
's (which handles the routing) timeout, add an
annotation to the Route:
-
Click on Edit annotations:
-
Add a new key named
haproxy.router.openshift.io/timeout
with value the required timeout in either seconds or minutes, e.g.5m
:
-
If a server takes too long to respond, this usually raises a
504
HTTP error. ↩