Detailed profiles of defaults haproxy

Configuration example:

defaults
    mode http
    retries 3
    timeout connect 10s
    timeout client 20s
    timeout server 30s
    timeout check 5s

 

The following describes the meaning of each option:

mode: setting a default mode of operation HAProxy instance, there tcp, http, health three optional.

tcp mode: In this mode, will be established between the client and server side of a full-duplex connection, it will not do any kind of examination of the seven packets, tcp default mode, often used in SSL, SSH, SMTP applications.

http mode: In this mode, the client will be analyzed in depth before forwarding the request to the backend server, all is not compatible with RFC format requests are denied.

health modes: At present, this pattern has basically been abandoned, not to say.

retries: Set backend server connection failure retry count, the number of failed connections exceeds the value set here, the corresponding backend server will HAProxy marked as unavailable. This parameter can also be provided in a later section.

timeout connect: setting a successful connection to the servers maximum wait time, in milliseconds by default, but may use other suffixes time units.

timeout client: setting the maximum waiting time transmitted data connection the client, default milliseconds, may also use other time units suffix.

timeout server: Set the client waits for the server to respond to the longest transmission time of the data, the default milliseconds, may also use other time units suffix.

timeout check: setting the timeout detection back-end server, default milliseconds, may also use other time units suffix.

Guess you like

Origin www.cnblogs.com/yyxianren/p/10942952.html