<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    ivaneeo's blog

    自由的力量,自由的生活。

      BlogJava :: 首頁 :: 聯(lián)系 :: 聚合  :: 管理
      669 Posts :: 0 Stories :: 64 Comments :: 0 Trackbacks

    roundrobin  Each server is used in turns, according to their weights.
                     This is the smoothest and fairest algorithm when the server's
                     processing time remains equally distributed. This algorithm
                     is dynamic, which means that server weights may be adjusted
                     on the fly for slow starts for instance. It is limited by
                     design to 4128 active servers per backend. Note that in some
                     large farms, when a server becomes up after having been down
                     for a very short time, it may sometimes take a few hundreds
                     requests for it to be re-integrated into the farm and start
                     receiving traffic. This is normal, though very rare. It is
                     indicated here in case you would have the chance to observe
                     it, so that you don't worry.

                     roundrobin:每個(gè)server根據(jù)權(quán)重依次被輪詢,

    這個(gè)算法是動(dòng)態(tài)的,意味著
                     server的權(quán)重可以實(shí)時(shí)地被調(diào)整。對于每個(gè)haproxy的backend servers的數(shù)目
                     而言被限制在4128個(gè)活躍數(shù)目之內(nèi)。


         static-rr   Each server is used in turns, according to their weights.
                     This algorithm is as similar to roundrobin except that it is
                     static, which means that changing a server's weight on the
                     fly will have no effect. On the other hand, it has no design
                     limitation on the number of servers, and when a server goes
                     up, it is always immediately reintroduced into the farm, once
                     the full map is recomputed. It also uses slightly less CPU to
                     run (around -1%).
                     靜態(tài)roundrobin(static-rr):跟roundrobin類似,唯一的區(qū)別是不可以動(dòng)態(tài)實(shí)時(shí)
                     server權(quán)重和backend 的server數(shù)目沒有上限。

         leastconn   The server with the lowest number of connections receives the
                     connection. Round-robin is performed within groups of servers
                     of the same load to ensure that all servers will be used. Use
                     of this algorithm is recommended where very long sessions are
                     expected, such as LDAP, SQL, TSE, etc... but is not very well
                     suited for protocols using short sessions such as HTTP. This
                     algorithm is dynamic, which means that server weights may be
                     adjusted on the fly for slow starts for instance.
                     最小連接數(shù)目負(fù)載均衡策略(leastconn):round-robin適合于各個(gè)server負(fù)載相同的情況。
                     最小連接數(shù)目算法適合于長時(shí)間會(huì)話,如LDAP,SQL,TSE,但是并不適合于HTTP短連接的協(xié)議。

         source      The source IP address is hashed and divided by the total
                     weight of the running servers to designate which server will
                     receive the request. This ensures that the same client IP
                     address will always reach the same server as long as no
                     server goes down or up. If the hash result changes due to the
                     number of running servers changing, many clients will be
                     directed to a different server. This algorithm is generally
                     used in TCP mode where no cookie may be inserted. It may also
                     be used on the Internet to provide a best-effort stickiness
                     to clients which refuse session cookies. This algorithm is
                     static by default, which means that changing a server's
                     weight on the fly will have no effect, but this can be
                     changed using "hash-type".
                     源IP hash散列調(diào)度:將源ip地址進(jìn)行hash,再根據(jù)hasn求模或者一致性hash定位到
                     hash表中的server上。相同的ip地址的請求被分發(fā)到同一個(gè)server上。但當(dāng)server的數(shù)量變化時(shí),
                     來自于同一client的請求可能會(huì)被分發(fā)到不同的server上。這個(gè)算法通常用在沒有cookie的tcp模式下。

         uri         The left part of the URI (before the question mark) is hashed
                     and divided by the total weight of the running servers. The
                     result designates which server will receive the request. This
                     ensures that a same URI will always be directed to the same
                     server as long as no server goes up or down. This is used
                     with proxy caches and anti-virus proxies in order to maximize
                     the cache hit rate. Note that this algorithm may only be used
                     in an HTTP backend. This algorithm is static by default,
                     which means that changing a server's weight on the fly will
                     have no effect, but this can be changed using "hash-type".

                     This algorithm support two optional parameters "len" and
                     "depth", both followed by a positive integer number. These
                     options may be helpful when it is needed to balance servers
                     based on the beginning of the URI only. The "len" parameter
                     indicates that the algorithm should only consider that many
                     characters at the beginning of the URI to compute the hash.
                     Note that having "len" set to 1 rarely makes sense since most
                     URIs start with a leading "/".

                     The "depth" parameter indicates the maximum directory depth
                     to be used to compute the hash. One level is counted for each
                     slash in the request. If both parameters are specified, the
                     evaluation stops when either is reached.

         url_param   The URL parameter specified in argument will be looked up in
                     the query string of each HTTP GET request.

                     If the modifier "check_post" is used, then an HTTP POST
                     request entity will be searched for the parameter argument,
                     when it is not found in a query string after a question mark
                     ('?') in the URL. Optionally, specify a number of octets to
                     wait for before attempting to search the message body. If the
                     entity can not be searched, then round robin is used for each
                     request. For instance, if your clients always send the LB
                     parameter in the first 128 bytes, then specify that. The
                     default is 48. The entity data will not be scanned until the
                     required number of octets have arrived at the gateway, this
                     is the minimum of: (default/max_wait, Content-Length or first
                     chunk length). If Content-Length is missing or zero, it does
                     not need to wait for more data than the client promised to
                     send. When Content-Length is present and larger than
                     <max_wait>, then waiting is limited to <max_wait> and it is
                     assumed that this will be enough data to search for the
                     presence of the parameter. In the unlikely event that
                     Transfer-Encoding: chunked is used, only the first chunk is
                     scanned. Parameter values separated by a chunk boundary, may
                     be randomly balanced if at all.

                     If the parameter is found followed by an equal sign ('=') and
                     a value, then the value is hashed and divided by the total
                     weight of the running servers. The result designates which
                     server will receive the request.

                     This is used to track user identifiers in requests and ensure
                     that a same user ID will always be sent to the same server as
                     long as no server goes up or down. If no value is found or if
                     the parameter is not found, then a round robin algorithm is
                     applied. Note that this algorithm may only be used in an HTTP
                     backend. This algorithm is static by default, which means
                     that changing a server's weight on the fly will have no
                     effect, but this can be changed using "hash-type".

         hdr(name)   The HTTP header <name> will be looked up in each HTTP request.
                     Just as with the equivalent ACL 'hdr()' function, the header
                     name in parenthesis is not case sensitive. If the header is
                     absent or if it does not contain any value, the roundrobin
                     algorithm is applied instead.

                     An optional 'use_domain_only' parameter is available, for
                     reducing the hash algorithm to the main domain part with some
                     specific headers such as 'Host'. For instance, in the Host
                     value "
                     This algorithm is static by default, which means that
                     changing a server's weight on the fly will have no effect,
                     but this can be changed using "hash-type".

         rdp-cookie
         rdp-cookie(name)
                     The RDP cookie <name> (or "mstshash" if omitted) will be
                     looked up and hashed for each incoming TCP request. Just as
                     with the equivalent ACL 'req_rdp_cookie()' function, the name
                     is not case-sensitive. This mechanism is useful as a degraded
                     persistence mode, as it makes it possible to always send the
                     same user (or the same session ID) to the same server. If the
                     cookie is not found, the normal roundrobin algorithm is
                     used instead.

                     Note that for this to work, the frontend must ensure that an
                     RDP cookie is already present in the request buffer. For this
                     you must use 'tcp-request content accept' rule combined with
                     a 'req_rdp_cookie_cnt' ACL.

                     This algorithm is static by default, which means that
                     changing a server's weight on the fly will have no effect,
                     but this can be changed us
    主站蜘蛛池模板: 一级毛片成人免费看a| 亚洲国产AV无码专区亚洲AV| 亚洲人成电影在线观看青青| 美女视频黄的免费视频网页| 国产亚洲精品xxx| a毛片在线免费观看| 亚洲成在人线av| 131美女爱做免费毛片| 久久久久亚洲AV无码观看| 免费在线观看h片| 亚洲AV成人影视在线观看| 成人毛片18岁女人毛片免费看| 亚洲va成无码人在线观看| 好男人视频在线观看免费看片| 亚洲中文字幕久久无码| 国产精品免费看久久久无码| 免费无遮挡无码视频在线观看| 亚洲国产91精品无码专区| 波霸在线精品视频免费观看| 亚洲AV日韩AV永久无码绿巨人| 免费A级毛片无码A∨中文字幕下载| 亚洲高清视频在线播放| 免费黄色大片网站| 人妻巨大乳hd免费看| 久久亚洲国产精品一区二区| 91精品手机国产免费| 亚洲色大成网站www尤物| 亚洲AⅤ视频一区二区三区| 两个人看的www高清免费观看| 久久精品国产亚洲av高清漫画| 成年女人色毛片免费看| 一级毛片完整版免费播放一区| 亚洲福利视频一区| 免费看少妇作爱视频| 国产在线播放线91免费| 亚洲丝袜中文字幕| 国产精品亚洲w码日韩中文| 91九色视频无限观看免费| 色屁屁www影院免费观看视频| 亚洲成人在线网站| 四虎影视免费永久在线观看|