HAPROXY timeout client timeout server and Mysql net_read_timeout net_write_timeout

Comments

3 comments

  • Official comment
    Avatar
    Krzysztof Ksiazek

    Hi,

    Yes, that's precisely what the recommendation is.

    Thanks,

    Krzysztof

    Comment actions Permalink
  • Avatar
    jba

    Thank you for your confirmation.

    I had doubts because Mysql instances deployed by CLusterControl have not these settings, and increase 30/50s to 10800s is pretty much !

    0
    Comment actions Permalink
  • Avatar
    Krzysztof Ksiazek

    Hi,

    To make it clear, the idea is to keep timeouts the same on both ends as otherwise it may be annoying to debug issues - you will look at the timeouts in MySQL and scratch your head while issue is triggered by HAProxy settings (or the other way around). You can as well make a change in the HAProxy, if that suits you better.
    Please keep in mind that there's no magic number which is the best setting for given variable. In one case longer timeouts may work better, in other case you would prefer shorter ones. This is up to you to decide what is the best setting for your environment, application and workload. It doesn't have to me 10800 seconds. It may be 30, 60, 3600 or anything else.

    Thanks,
    Krzysztof

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk