HAProxy

오픈소스 비즈니스 컨설팅
Pnuskgh (토론 | 기여)님의 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

참고 문헌