CoffeeSprout / ansible-role-haproxy

Setup HAProxy
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Allow settings timeouts with good defaults #7

Closed bvansomeren closed 3 years ago

bvansomeren commented 3 years ago

Right now the configuration is a bit bare and will emit the following warnings:

[WARNING] 115/120317 (86320) : config : missing timeouts for frontend '<fill in the blank>'. | While not properly invalid, you will certainly encounter various problems | with such a configuration. To fix this, please ensure that all following | timeouts are set to a non-zero value: 'client', 'connect', 'server'.

Implement sufficient timeouts to not get these warnings.

Additionally this is a good time to look at timeouts in general and more where they make sense. Some sources: https://delta.blue/blog/haproxy-timeouts/ https://www.haproxy.com/blog/the-four-essential-sections-of-an-haproxy-configuration/