전체 글 (197) 썸네일형 리스트형 tcp_tw_reuse와 tcp_tw_recycle 시스템 엔지니어에게 가장 골치 아픈 커널 파라미터가 뭐냐고 묻는다면 아마 위 두 값이라고 하시는 분들이 많으실 겁니다. 비슷하게 보이지만 차이점을 알기가 힘든 두 값에 대해 간단한 테스트를 통해 그 의미를 알아보는 시간을 마련해 보았습니다. 준비물 우선 두 대의 서버를 준비합니다. 편의상 client, server라고 지정합니다. 그리고 client에서는 net.ipv4.ip_local_port_range 값을 default 값에서 32768 32768로 고칩니다. server에서는 nginx를 yum으로 기본 설치해서 80만 띄워 놓습니다. tcp_tw_reuse 먼저 tcp_tw_reuse 에 대해 살펴보겠습니다. client에서 server로 curl 명령으로 페이지를 가져오면 방금 사용했던 포트는.. How to make High Available Load Balancer(L4/L7) with haproxy and Pacemaker - 1/4 1. Introduction 서비스의 부하 분산 및 고가용성을 위해 H/W Load Balancer를 필요로 하는 경우가 많지만 도입 비용이 크기때문에 예산상의 어려움도 많다. 반드시 H/W Load Balancer가 필요한 환경이 아니라면 여분의 Server를 활용하여 S/W Load Balancer를 구축할 수 있다. 일반적으로 사용자는 아래와 같은 Infrastructure를 통해 서비스를 받는다. 이때 Active Node에 장애가 발생하더라도 VIP는 Standby Node에서 Failover하므로 서비스는 중단되지 않으며 사용자는 최대 몇초간의 순단 현상만 경험하게 된다. 본 문서에서 다룰 내용은 Active/Standby Node 부분이다. 여기서 사용자의 Requests를 Real Node.. How to make High Available Load Balancer(L4/L7) with haproxy and Pacemaker - 2/4 3. Load Balancer(L4/L7) "haproxy" Build, Install and Configuration Active/Standby Node에 아래와 같은 과정을 통해 haproxy를 설치한다. Download haproxy Lastest version (2013년 2월 현재 1.4.22) http://haproxy.1wt.eu/download/1.4/src/haproxy-1.4.22.tar.gz Tarball 전개 (# (shop)은 root previlege를 의미한다.) # tar xvzf ./haproxy-1.4.22.tar.gz Build # make TARGET=linux26 ARCH=x86_64 Install # make install Make Configuration File.. How to make High Available Load Balancer(L4/L7) with haproxy and Pacemaker - 3/4 4. High Availability "Pacemaker" Install & Configuration Active/Standby Node에 아래와 같은 과정을 통해 Pacemaker를 설치한다. Install libraries # yum update # yum install libtool-ltdl.x86_64 openhpi-libs.x86_64 libibverbs.x86_64 librdmacm.x86_64 Download Packages (2013년 2월 기준) http://centos.karan.org/el5/extras/testing/x86_64/RPMS/libesmtp-1.0.4-6.el5.kb.x86_64.rpm http://www.clusterlabs.org/rpm/epel-5/x86_64/cl.. How to make High Available Load Balancer(L4/L7) with haproxy and Pacemaker - 4/4 5. Test to failover resources Test를 위해 migration-threshold = 3으로 설정 Case 1. Active Node 장애 Active Node에서 물리적/논리적 Server/Network 장애가 발생하면 Standby Node에서의 Heartbeat Check가 실패하므로 Resource를 Failover 장애 상황을 가정하여 Active Node의 Heartbeat Daemon을 정지 # /etc/init.d/heartbeat stop Stopping High-Availability services: [ OK ] Resource(VIP, haproxy)가 Standby Node에서 Failover 됨. Active Node가 "OFFLINE" 상태. ======.. ORACLE vs MS-SQL vs MariaDB // 오라클, MS-SQL, Mysql MariaDB 비교 ORACLE vs MS-SQL vs MariaDB RDBMS 라인업: 1. MariaDB 10.0.15 2. MS-SQL 2012 std 3. ORACLE 11.2.0.4 std 3개의 디비를 비교해 보려고 한다 MS-SQL을 위해 같은 Windows 버전으로 모두 준비했다 메모리는 1024MB로 주고 테스트를 진행했다 (오라클이 조금 불리하다) 원래는 테이블을 만들고 insert, update, delete를 해서 테스트를 해볼까 하다가 hammerDB라는 툴이 있어서 해당툴로 진행을 했다 http://hammerora.sourceforge.net/index.html 에서 다운받도록 하자 결과는 충격적이다 10674 transaction per minute 아직 까지 1위 104766 transacti.. Howto install GlusterFS 3.5.1 on CentOS 6.5 Howto install GlusterFS 3.5.1 on CentOS 6.5Posted on July 3, 2014 by Johan Sörell — No Comments ↓This is a guide to install GlusterFS 3.5.1 on CentOSRequirements:CentOS 6.x “I’m doing this on CentOS 6.5”Configured Networkwget installed on the OSResourses:GlusterFS DocumentationLet’s start the installation1. Go to /etc/yum.repolist.d 1cd/etc/yum.repolist.d2. Download the repo 1wget http://downloa.. Iptable QoS(DSCP) If our hardware/software (i.e. IP Phone, gateway) doesn’t set proper DSCP value it can be done using iptables in the nearest linux machine. In scenario there are two hosts:Ping Request is a linux (CentOS 5.3, 2.6.18-128.e15) with iptables v1.3.5Ping Response is Windows 7 with Wireshark on boardIn example, just for simplification, all traffic from Ping Request host is mark with DSCP value 46 (Cri.. DNS서버(bind9)를 MySQL로 관리하기 DNS서버(bind9)를 MySQL로 관리하기 DNS서버를 mysql로 손쉽게 관리해 보자~ 장점은네임서버를 손쉽게 관리 할 수 있고, 데몬을 재시작 안해도 바로 적용 된다는점~굳이 서버에 안드가고.. 웹에서 dns관리가 가능한점... 단점은리소스랑 퍼포먼스가.. 좀 구리다는점..하지만 관리하는 dns가 많이 없으니깐 장점이 더 좋다! 2일동안... 무척 애먹었는데..일단 세팅해보자~ Step1. BIND 받아서 설치하기 cd /usr/local/src wget http://ftp.isc.org/isc/bind9/9.7.0-P1/bind-9.7.0-P1.tar.gz tar zxvf bind-9.7.0-P1.tar.gz 작업하기 쉽게 디렉토리명을 바꿔주자 mv bind-9.7.0-P1 bind9 Step2.. 리눅스 상세 H/W정보 - dmidecode 리눅스 system 의 bios 및 디바이스 정보는 dmidecode 라는 프로그램으로 확인할 수 있다. dmidecode 보통 기본으로 설치되며, 만약 설치되지 않았을 경우 아래와 같이 설치한다. 설치방법1. ubuntu# apt-get install dmidecode2. fedora# yum -y install dmidecode3. source compile 방법사이트 : http://www.nongnu.org/dmidecode/소스 다운 후 압축해제-> make -> make install 수집방법# dmidecode -t processoror# dmidecode 수집가능한 데이터디바이스 타입(맨페이지 참조) -t 타입 -------------------------- 0 BIOS 1 System 2.. 이전 1 ··· 9 10 11 12 13 14 15 ··· 20 다음