"HAProxy"의 두 판 사이의 차이

오픈소스 비즈니스 컨설팅
둘러보기로 가기 검색하러 가기
잔글
잔글
24번째 줄: 24번째 줄:
 
*<span style="line-height: 20.7999992370605px;">DSR (Direct Server Return) Mode&nbsp;: 목적지 MAC 주소를 재설정</span>
 
*<span style="line-height: 20.7999992370605px;">DSR (Direct Server Return) Mode&nbsp;: 목적지 MAC 주소를 재설정</span>
  
==HAProxy 설치==
+
== HAProxy 설치 ==
 +
 
 
*HAProxy 설치
 
*HAProxy 설치
 +
 
  yum install haproxy
 
  yum install haproxy
 +
 +
*HAProxy 시작
 +
 +
service haproxy start
 +
#chkconfig  haproxy  on
  
 
*vi /etc/haproxy/haproxy.cfg
 
*vi /etc/haproxy/haproxy.cfg
 +
 
  listen hiveprimary node201.hadoop.com:10000
 
  listen hiveprimary node201.hadoop.com:10000
 
  balance leastconn
 
  balance leastconn
34번째 줄: 42번째 줄:
 
  server hivethrift01 node211.hadoop.com:10000 check
 
  server hivethrift01 node211.hadoop.com:10000 check
 
  server hivethrift02 node212.hadoop.com:10000 check
 
  server hivethrift02 node212.hadoop.com:10000 check
 
*HAProxy 시작
 
service haproxy start
 
#chkconfig  haproxy  on
 
  
 
== HAProxy 설정 ==
 
== HAProxy 설정 ==

2014년 9월 20일 (토) 13:13 판

LoadBalance와 Proxy 기능을 제공하는 HAProxy를 정리 합니다.

  • 홈페이지 :
  • 다운로드 :
  • 라이선스 :
  • 플랫폼 :

HAProxy 개요

HAProxy는 L4 Switch, L7 Switch와 Load Balance 기능을 소프트웨어적으로 제공 한다. 초당 8만건의 트래픽을 처리 한다.

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
  • HAProxy 시작
service haproxy start
#chkconfig  haproxy  on
  • 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 설정

참고 문헌