I’m following the documentation instructions for setting up a gitlay cluster. I’m configuring the load balancer for Praefect using HAProxy, using a configuration similar to this one.
The load-balancer documentation contains this warning:
Long-running background jobs can maintain an idle connection with Praefect for up 6 hours. Set your load balancer timeout to be at least 6 hours long.
Ok. So any ideas about which of these timeout settings to use in HAProxy for this? I don’t think I want all of these set for 6 hours or this could lead to performance issues if a connection gets missed or something? Or perhaps I should just set all of them? These are the available timeouts with the default values below. Not sure which is best to use for this:
timeout http-request 10s timeout queue 1m timeout connect 10s timeout client 1m timeout server 1m timeout http-keep-alive 10s timeout check 10s
I do have tcp keep-alive enabled (options srvtcpka and clitcpka), so possibly none of the other timeouts are even relevant? Not sure really.