I have a SpringBoot app hosted on OpenShift-Enterprise. I have one request that takes significantly more time to process due to integration with other systems. That request started getting 504 Gateway timeout
error on browser exactly after the 30s.
On investigation, we found that OpenShift is using HA Proxy load-balancing, which has a client timeout of 30s.
defaults
timeout connect 10s
timeout client 30s
timeout server 30s
log global
mode http
option httplog
maxconn 3000
Now, we fixed the issue by increasing this value to some high number. But, DevOps has a concern that this might lead to the Stale Connection problem. I did not find any resource confirming that high value of HTTP timeouts could lead to such issues. We want to move new configuration to production.
Any thoughts?