openshift 504 Gateway Time-out The server didn't respond in time
今天给一个业务应用添加了route,这个应用的一个请求处理耗时比较长,在使用route访问的时候返回timeout,查了openshift 文档,有超时时间的相关配置:
# oc annotate route <route_name> \
--overwrite haproxy.router.openshift.io/timeout=<timeout><time_unit>
# oc annotate route myroute --overwrite haproxy.router.openshift.io/timeout=2s