본문 바로가기

IT-Consultant

Apache를 이용한 로드밸런서 설정 인터넷에 찾아보니 많이 복잡하게 설명되어 있어서 간단하게 정리한다. 1. Apache HTTPD Server 설치 - yum install httpd로 설치 가능 - 원래는 mod_proxy 설정을 해줘야하는데, yum으로 설치할 경우 별도 조치가 필요 없다. 2. httpd.conf 파일 수정 BalancerMember http://web1:80 BalancerMember http://web2:80 ProxyPass / balancer://mycluster/ ProxyPassReverse / balancer://mycluster/ 3. 브라우저에서 테스트해보면 된다. PHP의 경우 제대로 설정되었는지 확인해보려면 아래 코드를 만들어서 호출해보면 된다. 더보기
SVN 설치 간단 요약 [제품설치] OpenSSL 컴파일과 설치 zlib1g-dev, libxml2-dev, libexpat1-dev 설치 Subversion 설치 [제품설정] 저장소 만들기 : /home/svn# svnadmin create --fs-type fsfs sample 더보기
포인터 테스트 소스 /* ============================================================================ Name : PointerTest.c Author : Version : Copyright : Your copyright notice Description : Hello World in C, Ansi-style ============================================================================ */ #include #include void assign( int *p ); void user_strcpy( char *dst, const char *src); char *return_pstr(); void increas.. 더보기
Binary Search Tree C로 간단 구현 그러나.. 속도 무진장 느림.. Java의 Collections에 있는 binary_search의 1/100 도 안됨.. 튜닝 엄청나게 해야 될것 같음.. /* #include #include #include #include typedef struct _node { int elem; struct _node *left; struct _node *right; } node; node *insert( int key, node *base, int *num ); node *search( int key, node *base ); void initNode( int key, node *rootNode ); int main(void ) { clock_t startTime, endTime; double nProcessExc.. 더보기
Gluster file system의 장 단점 우선 장점부터 이야기한다면 당연히 NameNode가 없기 때문에, 안정적이다. NameNode가 없는 이유는 메타정보를 모든 노드에서 가지고 있기 때문이다. 그렇다면 Hadoop 보다 무조건 더 좋은 시스템인가? 라는 의문점이 생긴다. 그래서 관련 문서를 찾아보니 아래 글이 있었다. http://northernmost.org/blog/improving-glusterfs-performance/ 문서의 내용을 쭉 보면 여러가지 솔루션을 찾아본것중에 Gluster File System이 가장 좋다는것이다. 나도 이 부분에 대해서는 이견이 없다. 기본적인 셋팅으로 사용한다면 아주 작은 파일들을 사용하는 경우는 GlusterFS는 좋지 않다. 왜냐면 작은 파일 하나에도 큰 버퍼를 할당하기 때문에, 이런 문제로 작.. 더보기
SLE 인터뷰 예상 문제 Could you please introduce yourself? Tell me what you usually do the weekend. What do you do? Can you tell me a little about your job or what you are studing? What do you think was the best movie of the past twelve months? Do you think you handle stress well? What do you do to control your stress well? Besides your parents, who is the person who has had the greatest influence on you? Tell me abo.. 더보기
윈도우7, 작업표시줄 아이콘 정리하기! > Bins : http://www.oneupindustries.com/bins/default.aspx 위 링크로 접속하셔서 프로그램 파일을 다운로드 받으신 후 설치하기만 하면 별다른 설정없이 바로 활용이 가능합니다. 더보기
CakePHP 흐름.. 1. index.php 2. cake/dispatcher.php - load controller - fill controller 3. cache.php - call __destruct method 4. file.php - call __destruct 더보기
CakePHP 기본구조 ** 기본 구조 ** ** 예제를 이용한 설명 ** /blog 의 모든 URL을 BlogController 에 접속한다. 기본 액션은 BlogController::index() 가 된다. 더보기
CakePHP 버전 확인하는 방법 더보기