본문 바로가기

반응형

전체 글

(197)
ats 모듈 만들기 http://mr100do.tistory.com/428 ex ) CD ./trafficserver/plugins/experimental/header_rewrite tsxs -v -C * .CPP -o header_rewrite.so /usr/local/etc/trafficserver/plugin.config header_rewrite.so /usr/local/libexec/trafficserver/header_rewrite.config 강제로 추가 아파치 트래픽 서버로 오는 30 분 동안 모든 응답을 캐시하려면 여기 한 예 cond %{READ_RESPONSE_HDR_HOOK} [AND] rm-header Cache-Control add-header Cache-Control max-age=1800 [L]..
Apache traffic server-5.2.1 install ## install pcre cd /usr/local/src wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.35.tar.gz tar zxvf pcre-8.35.tar.gz cd pcre-8.35 make clean ./configure --prefix=/usr/local --enable-unicode-properties=yes make make install yum install -y pkgconfig libtool gcc make openssl tcl expat pcre libcap flex lua hwloc tcl-dev tcl-dev* libxml2-devel yum install -y gcc gcc-c++ pkgconfig p..
Mysql 5.7.14 설치 및 replication cd /usr/local/src/ yum -y install gcc gcc-c++ ncurses ncurses-devel cmake wget http://downloads.sourceforge.net/project/boost/boost/1.59.0/boost_1_59_0.tar.gz tar xvfz boost_1_59_0.tar.gz wget http://ftp.kaist.ac.kr/mysql/Downloads/MySQL-5.7/mysql-5.7.14.tar.gz tar xvzf mysql-5.7.14.tar.gz cd mysql-5.7.14 cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql \ -DWITH_INNOBASE_STORAGE_ENGINE=1 \ -DWITH_A..
SOLR 5.5.2 단독형 설치 (with jdbc, arirang.lucene-analyzer) SOLR 5.5.2 단독형 설치 (with jdbc, arirang.lucene-analyzer) cd /usr/local/srcwget http://archive.apache.org/dist/lucene/solr/5.5.2(http://archive.apache.org/dist/lucene/solr/5.5.2/solr-5.5.2.tgz) tar xvf solr-5.5.2.tgzmv solr-5.5.2 /usr/local/solrcd /usr/local/solr bin/solr start (DB) core 생성bin/solr create_core –c CORE명(DB) http://IP:8983/solr 를 브라우져에서 실행하여 solr manager 화면이 나왔다면 성공! MySQL 연동을 위한 라이브..
Grumpy: Go running Python OverviewGrumpy is a Python to Go source code transcompiler and runtime that is intended to be a near drop in replacement for CPython 2.7. The key difference is that it compiles Python source code to Go source code which is then compiled to native code, rather than to bytecode. This means that Grumpy has no VM. The compiled Go source code is a series of calls to the Grumpy runtime, a Go library s..
LVM(Logical Volume Manage)이란? LVM(Logical Volume Manage)이란? -------------------------------------------------------------------------------------------(Virtual Volume Technology) - LVM(Logical Volume Manager), RAID(Redudant Array Inexpensive Disk)가상 볼륨 방식 장점: (ㄱ) 확장성, (ㄴ) 안정성, (ㄷ) 편의성(관리 용이) 물리적인 디스크를 논리적 볼륨그룹으로 구성해서 이 논리적인 볼륨그룹 내에 사용자가 원하는 크기 만큼의 논리볼륨을 할당하여 사용하는 방법으로, 여러 개의 디스크를 하나의 논리적인 볼륨그룹(VG)으로 구성할 수 있으며, 각 논리볼륨(LV)는 독립..
본딩 해쉬 알고리즘 관련한 글 라운드 로빈은 기계적으로 NIC을 돌려쓰기 때문에 트래픽간 편차가 클 경우 부하 분산이 어렵습니다. 고로 모드2나 4를 추천합니다. 다만 모드2는 송신만 부하분산이 되고 XOR스타일상 부하가 한쪽으로 몰릴 가능성이 있어서 성능으로만 보면 모드4를 선택하시는게 좋은데 이경우 상대편 스위치가 802.3ad설정이 가능하고 또 되어있어야 한다는 전제가 붙습니다. 부하분산은 기본적으로 해쉬값를 가지고 하는데,xmit_hash_policy옵션치 0 혹은 layer2는 데폴트값으로 MAC어드레스만 가지고 해쉬값을 생성합니다.xmit_hash_policy옵션치 1 혹은 layer3+4는 IP와 포트값을 가지고 해쉬값을 생성합니다. 주의점은 이 알고리즘의 경우 802.3ad에 대응하지 않습니다.xmit_hash_poli..
Linux Perfoment Tools 1. Top – Linux Process MonitoringLinux Top command is a performance monitoring program which is used frequently by many system administrators to monitor Linux performance and it is available under many Linux/Unix like operating systems. The top command used to dipslay all the running and active real-time processes in ordered list and updates it regularly. It display CPU usage, Memory usage, Swap..
CISCO L3 NAT 구성 ## Switch port ## -L2 port(switch port):(ip X)access/trunk/tunnel -L3 port:(ip 0)routed port / SVI 모델마다차이가있으나 ip 입력을했을때설정이안먹히면 L3 sw는 L2가기본적으로되어 L3 SW 설정을해줘야함. No switchport설정은 interface에들어갈때마다해야함 SW1(config)#int f 0/1 SW1(config-if)#no switchport SW1(config-if)#ip add 1.1.1.254 255.255.255.0 *Routing table 설정 SW1(config)#ip routing (sw routing 설정시입력해줘야함) SW1(config)#router rip SW1(config-router..
solr 솔라 reload #!/bin/bash # reloads a Solr coreif [ "$1" = "" ]; thenecho -n "Name of core to reload: "read nameelsename=$1fi if [ ! -d /var/lib/solr/data/$name ] || [ $name = "" ]; thenecho "Core doesn't exist"exitfi curl "http://127.0.0.1:8080/solr/admin/cores?action=RELOAD&core=$name"

반응형