티스토리 뷰

LAYER 4 & 7

HAPROXY HDR

초보의 CHOMAN 2018.04.11 13:06


HAPROXY HDR


: 분배 알고리즘의 하나, HTTP Header 패킷의 특정 값을 참조하여 분배 결정



 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 "haproxy.1wt.eu", only "1wt" will be considered.


                  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".

 




참고자료



https://httpd.apache.org/docs/2.4/mod/mod_proxy_balancer.html


https://kb.sucuri.net/firewall/Troubleshooting/same-user-ip


https://mig5.net/content/source-based-load-balancing-haproxy-based-x-forwarded-header 




'LAYER 4 & 7' 카테고리의 다른 글

haproxy client ip 추출  (0) 2018.04.11
HAPROXY SSL  (0) 2018.04.11
HAPROXY HDR  (0) 2018.04.11
centos7 ipvsadm  (0) 2018.04.10
mod_proxy_balancer  (0) 2018.04.10
haproxy health check 에러  (0) 2018.04.10
댓글
댓글쓰기 폼