티스토리 뷰

LAYER 4 & 7

HAPROXY HDR

CHOMAN 2018. 4. 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
centos7 ipvsadm  (0) 2018.04.10
mod_proxy_balancer  (0) 2018.04.10
haproxy health check 에러  (0) 2018.04.10
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/04   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
글 보관함