"HAProxy"의 두 판 사이의 차이
둘러보기로 가기
검색하러 가기
잔글 (→HAProxy 설치) |
잔글 |
||
5번째 줄: | 5번째 줄: | ||
*플랫폼 : | *플랫폼 : | ||
− | ==HAProxy 개요== | + | == HAProxy 개요 == |
+ | |||
+ | |||
+ | |||
+ | HAProxy는 L4 Switch, L7 Switch와 Load Balance 기능을 소프트웨어적으로 제공 한다. | ||
+ | |||
+ | Load Balance 기술 | ||
+ | |||
+ | *NAT (Network Address Translation) | ||
+ | *DSR (Dynamic Source Routing) | ||
+ | *Tunneling | ||
+ | |||
+ | |||
+ | |||
+ | Load Balance 동작 모드 | ||
+ | |||
+ | *Bridge/Transparent Mode : 목적지 IP와 MAC 주소를 재설정 | ||
+ | *Router Mode : 출발지와 목적지의 IP와 MAC 주소를 재설정 | ||
+ | *One Arm Mode : <span style="line-height: 20.7999992370605px;">목적지 IP와 MAC 주소를 재설정, 응답시 IP pool의 주소를 사용</span> | ||
+ | *<span style="line-height: 20.7999992370605px;">DSR (Direct Server Return) Mode : 목적지 MAC 주소를 재설정</span> | ||
+ | |||
==HAProxy 설치== | ==HAProxy 설치== | ||
*HAProxy 설치 | *HAProxy 설치 |
2014년 9월 20일 (토) 13:01 판
LoadBalance와 Proxy 기능을 제공하는 HAProxy를 정리 합니다.
- 홈페이지 :
- 다운로드 :
- 라이선스 :
- 플랫폼 :
HAProxy 개요
HAProxy는 L4 Switch, L7 Switch와 Load Balance 기능을 소프트웨어적으로 제공 한다.
Load Balance 기술
- NAT (Network Address Translation)
- DSR (Dynamic Source Routing)
- Tunneling
Load Balance 동작 모드
- Bridge/Transparent Mode : 목적지 IP와 MAC 주소를 재설정
- Router Mode : 출발지와 목적지의 IP와 MAC 주소를 재설정
- One Arm Mode : 목적지 IP와 MAC 주소를 재설정, 응답시 IP pool의 주소를 사용
- DSR (Direct Server Return) Mode : 목적지 MAC 주소를 재설정
HAProxy 설치
- HAProxy 설치
yum install haproxy
- vi /etc/haproxy/haproxy.cfg
listen hiveprimary node201.hadoop.com:10000 balance leastconn mode tcp server hivethrift01 node211.hadoop.com:10000 check server hivethrift02 node212.hadoop.com:10000 check
- HAProxy 시작
service haproxy start #chkconfig haproxy on
참고 문헌
- L4/L7 스위치의 대안, 오픈 소스 로드 밸런서 HAProxy, 2013.02
- http://blog.daum.net/sssssssim/3
- http://blog.naver.com/PostView.nhn?blogId=junix&logNo=80190767095
- http://blog.silverbucket.net/post/31927044856/3-ways-to-configure-haproxy-for-websockets
- http://thoughts.z-dev.org/2013/05/07/haproxy-installation-and-configuration-on-centos-6-4-to-mitigate-abusive-clients/