When configuring HA Proxy, how do you decide what values to assign to the timeouts? I've read a half dozen samples in various blogs, and everyone uses different timeouts and no one discusses why.
HAProxy seems specifically worried about client, connect, and server, which HAPRoxy throws a warning about if you leave completely unset:
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'.
The documentation is unhelpful in this regard: it suggests "slightly above multiples of 3 seconds" but not why you'd choose a multiple of 1 vs 100 or 42.
The RPM I'm using (Amazon Linux repository) sets these defaults:
timeout connect 10s timeout client 1m timeout server 1m
Two of which are exact multiples of 3 seconds, violating the only official advice I've seen.
If you don't have specific tuning advice, maybe an easier question is: what should I expect to go wrong with really short or really long timeouts?