Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. NFS 설정 - NFS 설정 참조

  2. Apache Load Balancer 설정(root 계정 - Ubuntu 설정)

    Code Block
    languagebash
    $ cd /etc/apach2/sites-available
    $ sudo a2enmod headers proxy_balancer proxy_http proxy lbmethod_byrequests slotmem_shm    ## 모듈 활성화
    $ vi dcjira.twoseed.co.kr.conf    ## 원하는 이름으로 .conf 파일 생성
    ---------------------------
    <VirtualHost *:80>
            ServerName dcjira.twoseed.co.kr
            Header add Set-Cookie  "ROUTEID=.%{BALANCER_WORKER_ROUTE}e; path=/"  env=BALANCER_ROUTE_CHANGED
            <Proxy balancer://jiracluster>
                    BalancerMember http://14.36***.***.48.220:7180 route=node1
                    BalancerMember http://175.197***.***.124.236:7180 route=node2
                    
                    Order Allow,Deny
                    Allow from dcjira.twoseed.co.kr
                    Satisfy Any
            </Proxy>
            ProxyPass / balancer://jiracluster/ stickysession=ROUTEID
    </VirtualHost>
    ----------------------------
    $ sudo a2ensite dcjira.twoseed.co.kr.conf     ## 사이트 활성화
    $ sudo service apache2 reload     ## apach 서버 다시 시작

...