개요
Crowd의 Data Center를 설치하는 방법을 설명합니다.
Data Center 설치
1. Crowd 설치
Note |
---|
경고
|
Info |
---|
Crowd 설치 참고 |
2. Shared Directory 구성
<CROWD_HOME>/shared
를 공유 디렉토리로 복사Code Block language bash mkdir /home/share/atlassian/crowd cd /home/share/atlassian/crowd cp -r /home/datacenter/atlassian/crowd/shared/ ./crowd/
<CROWD_HOME>/shared
심볼릭 링크 생성Code Block cd /home/datacenter/atlassian/crowd rm -rf shared ln -s /home/share/atlassian/crowd/shared/ shared
3. Crowd 설정
설정 > Trusted Proxy Servers > Trusted proxy servers > Apache 서버 추가
Base URL 변경
로드 밸런서 URL을 명시
4. 클러스터 추가
신규 노드에서 Master Node의 Installation 디렉토리 복사하여 설치
crowd-init.properties
에서 Crowd Home 설정위 내용을 참고하여
Shared
디렉토리 구성openidserver.xml
파일 삭제Code Block cd /opt/datacenter/atlassian/crowd/apache-tomcat/conf/Catalina/localhost rm openidserver.xml
해당 파일은 첫 번째 노드에서만 활성화 되어야 함.
5. Apache 구성
Code Block |
---|
<VirtualHost *:80> ProxyRequests off ServerName dccrowd.twoseed.co.kr Header add Set-Cookie "ROUTEID=.%{BALANCER_WORKER_ROUTE}e; path=/" env=BALANCER_ROUTE_CHANGED <Proxy balancer://crowdcluster> # Crowd node 1 (make sure there are no trailing slashes after port number) BalancerMember http://14.36.48.220/:7195 route=node1 # Crowd node 2 (make sure there are no trailing slashes after port number) BalancerMember http://175.197.124.236:7195 route=node2 # Security "we aren't blocking anyone but this the place to make those changes Order Deny,Allow Deny from none Allow from all # Load Balancer Settings # We are not really balancing anything in this setup, but need to configure this ProxySet lbmethod=byrequests ProxySet stickysession=ROUTEID </Proxy> # Here's how to enable the load balancer's management UI if desired <Location /balancer-manager> SetHandler balancer-manager # You SHOULD CHANGE THIS to only allow trusted ips to use the manager Order deny,allow Allow from all </Location> # Don't reverse-proxy requests to the management UI ProxyPass /balancer-manager ! # Reverse proxy all other requests to the Crowd cluster ProxyPass / balancer://crowdcluster/ ProxyPreserveHost on ProxyPassReverse / balancer://mycluster/ </VirtualHost> |
결과
설정 > Clustering
...