bradh352 opened a new issue, #12574: URL: https://github.com/apache/cloudstack/issues/12574
The HAProxy configuration has a very aggressive client and server timeout setting of 50s. This is likely ok for load balancing web requests, but a lot of applications that connect to things like databases may not be designed to handle such a short timeout. We experienced this issue when deploying cloudnative pg (postgresql) within k8s with applications that connect outside of k8s to the database. As a workaround I manually ssh'd into the VR and modified the HAProxy configuration to confirm it was the cause. It appears the configuration is here: https://github.com/apache/cloudstack/blob/a5b6bc3be620f2b2f14321fd69643cf1bdd7d16c/core/src/main/java/com/cloud/network/HAProxyConfigurator.java#L53 and gets written here: https://github.com/apache/cloudstack/blob/a5b6bc3be620f2b2f14321fd69643cf1bdd7d16c/core/src/main/java/com/cloud/network/HAProxyConfigurator.java#L634 with no overrides available. The only real override i see is maxconn a few lines above. I can create a PR to address this as a global config override kind of like maxconn, but I'm not sure if it is the right solution. This setting can also be applied via haproxy configuration at the pool level, but of course cloudstack doesn't support that either. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
